Compile lighttpd with ssl
This commit is contained in:
@@ -10,9 +10,12 @@ export_env LIGHTTPD_VERSION $LIGHTTPD_VERSION_MAJOR.$LIGHTTPD_VERSION_MINOR
|
|||||||
export_env LIGHTTPD_CONFIG /etc/lighttpd/lighttpd.conf
|
export_env LIGHTTPD_CONFIG /etc/lighttpd/lighttpd.conf
|
||||||
export_env LIGHTTPD_LOG /host/var/log/lighttpd/error.log
|
export_env LIGHTTPD_LOG /host/var/log/lighttpd/error.log
|
||||||
|
|
||||||
|
## SSL
|
||||||
|
apt_install_permanent libssl-dev
|
||||||
|
|
||||||
## Lighthttpd
|
## Lighthttpd
|
||||||
apt_install_permanent lighttpd
|
apt_install_permanent lighttpd
|
||||||
apt build-dep -y lighttpd
|
apt-get build-dep -y lighttpd
|
||||||
apt_install_temporary automake
|
apt_install_temporary automake
|
||||||
cd /opt
|
cd /opt
|
||||||
wget http://download.lighttpd.net/lighttpd/releases-$LIGHTTPD_VERSION_MAJOR.x/lighttpd-$LIGHTTPD_VERSION.tar.gz
|
wget http://download.lighttpd.net/lighttpd/releases-$LIGHTTPD_VERSION_MAJOR.x/lighttpd-$LIGHTTPD_VERSION.tar.gz
|
||||||
@@ -21,7 +24,7 @@ cd lighttpd-$LIGHTTPD_VERSION/src
|
|||||||
sed -i "s,\(pwd->pw_uid\s==\s\)0,\1-1," server.c
|
sed -i "s,\(pwd->pw_uid\s==\s\)0,\1-1," server.c
|
||||||
sed -i "s,\(grp->gr_gid\s==\s\)0,\1-1," server.c
|
sed -i "s,\(grp->gr_gid\s==\s\)0,\1-1," server.c
|
||||||
cd ..
|
cd ..
|
||||||
./configure
|
./configure --with-openssl
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user