forked from reqshark/h2oinitd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·23 lines (22 loc) · 925 Bytes
/
configure
File metadata and controls
executable file
·23 lines (22 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
APT=`which apt`
if [ -x "$APT" ]; then
echo "apt is executable, it's ubuntu or debian..."; sleep 1;
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install git build-essential cmake zlib1g-dev python-sphinx \
libcunit1-dev libgmp-dev libgmpxx4ldbl libmpfr-dev libyaml-dev checkinstall \
libtool gawk locate autoconf pkg-config -y
wget https://ftp.gnu.org/gnu/nettle/nettle-3.4.tar.gz && tar xzvf nettle-3.4.tar.gz
cd nettle-3.4 && ./configure && make && make check && sudo make install && sudo /sbin/ldconfig
cd .. && rm -rf nettle-3.*
echo "deps up-to-date"; echo ".."; echo "configured";
exit 0;
else
echo "this isnt a debian or ubuntu"
echo "please install:"
echo "zlib git make libc gcc g++ cmake libyaml gettext gawk"
echo "locate autoconf automake pkg-config libtool, etc."
echo "..."
echo "and the wslay dependencies: python-sphinx libcunit1 nettle"
exit 1;
fi