# HG changeset patch # User Pascal Bellard # Date 1228058915 0 # Node ID d04d6857c1c58ca8300b02815002bba7744a7043 # Parent d699aa373d79ff2347d45aaa9236bacd1c1fdb6a Add lighttpd-ssl diff -r d699aa373d79 -r d04d6857c1c5 lighttpd-ssl/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lighttpd-ssl/receipt Sun Nov 30 15:28:35 2008 +0000 @@ -0,0 +1,95 @@ +# SliTaz package receipt. + +PACKAGE="lighttpd-ssl" +VERSION="1.4.20" +CATEGORY="network" +SHORT_DESC="Fast and light HTTP Web server with SSL support." +MAINTAINER="pankso@slitaz.org" +DEPENDS="pcre openssl" +BUILD_DEPENDS="pcre-dev bzip2-dev openssl-dev" +SUGGESTED="lighttpd-modules php perl python" +SOURCE="lighttpd" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="http://www.lighttpd.net/" +#WGET_URL="http://www.lighttpd.net/download/$TARBALL" +WGET_URL="http://mirror.slitaz.org/sources/packages/l/$TARBALL" +CONFIG_FILES="/etc/lighttpd/lighttpd.conf /etc/lighttpd/vhosts.conf" +PROVIDE="lighttpd" +BASE_MODULES=" +access +accesslog +alias +cgi +dirlisting +indexfile +staticfile +rewrite +status +userdir" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + if [ ! done.fastcgi_detach.patch ]; then + patch -i ../stuff/fastcgi_detach.patch || exit 1 + touch done.fastcgi_detach.patch + fi + ./configure \ + --enable-shared \ + --disable-ipv6 \ + --with-openssl \ + --prefix=/usr \ + --libdir=/usr/lib/lighttpd \ + --mandir=/usr/share/man \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +# On SliTaz Lighttpd runs as user/group : www/www or 80/80. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/sbin $fs/usr + + # Modules. + mkdir -p $fs/usr/lib/lighttpd + for module in $BASE_MODULES + do + cp $_pkg/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd + echo -n "Copying : mod_${module}.so" && status + done + strip -s $fs/usr/bin/* + strip -s $fs/usr/sbin/* + strip -s $fs/usr/lib/lighttpd/* + + # Server root and config file. + cp -a stuff/var $fs + cp -a stuff/etc $fs + chown -R 0.0 $fs/var/www + chown -R 0.0 $fs/etc + + # Logs directory. + mkdir -p $fs/var/log/lighttpd + chown 80.80 $fs/var/log/lighttpd +} + +# Pre and post install commands for Tazpkg. +# We stop the server by default in case of upgarde. +pre_install() +{ + echo "Processing pre-install commands..." + [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop +} +post_install() +{ + local root + root=$1 + echo "Processing post-install commands..." + # Just in case. + chown www.www $root/var/log/$PACKAGE + /etc/init.d/$PACKAGE start +} diff -r d699aa373d79 -r d04d6857c1c5 lighttpd-ssl/stuff --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lighttpd-ssl/stuff Sun Nov 30 15:28:35 2008 +0000 @@ -0,0 +1,1 @@ +../lighttpd/stuff \ No newline at end of file