-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick-install.sh
More file actions
executable file
·57 lines (49 loc) · 1.62 KB
/
quick-install.sh
File metadata and controls
executable file
·57 lines (49 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
#
# DSSSL Quick Install Script
# One-command installation with optimal settings
#
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "🚀 DSSSL Quick Install - Enhanced Build System"
echo "=============================================="
echo ""
# Check if running on supported platform
if ! command -v lsb_release &> /dev/null && ! [[ -f /etc/os-release ]]; then
echo "❌ Unsupported platform. DSSSL requires Linux."
exit 1
fi
# Detect if we're running with appropriate permissions for system install
if [[ $EUID -eq 0 ]]; then
echo "✅ Running as root - full system integration available"
INSTALL_MODE="--replace-system"
else
echo "ℹ️ Running as user - local installation to /usr/local"
echo " For system-wide installation: sudo $0"
INSTALL_MODE="--prefix=/usr/local"
fi
echo ""
echo "🔧 Starting DSSSL installation with optimal settings..."
echo " • METEOR hardware-aware optimization"
echo " • Thermal management (105°C/110°C limits)"
echo " • OQS provider for post-quantum crypto"
echo " • Build resume capability"
echo ""
# Run the full build pipeline
"$SCRIPT_DIR/build.sh" \
--all \
--with-oqs-provider \
--thermal-max=105 \
--thermal-critical=110 \
$INSTALL_MODE \
"$@"
echo ""
echo "🎉 DSSSL installation complete!"
echo ""
echo "📖 Next steps:"
echo " 1. Restart your shell or run: source ~/.bashrc"
echo " 2. Test DSSSL: openssl version"
echo " 3. Check providers: openssl list -providers"
echo ""
echo "📚 Documentation: $SCRIPT_DIR/README.md"
echo "📋 Build log: Check the latest log file in $SCRIPT_DIR/"