wok-next rev 21336

updated lighttpd-ssl (1.4.35 -> 1.5.54)
author Hans-G?nter Theisgen
date Fri Dec 13 14:49:06 2019 +0100 (2019-12-13)
parents 346d8936719b
children 98b407a89e6d
files lighttpd-ssl/receipt
line diff
     1.1 --- a/lighttpd-ssl/receipt	Fri Dec 13 14:32:31 2019 +0100
     1.2 +++ b/lighttpd-ssl/receipt	Fri Dec 13 14:49:06 2019 +0100
     1.3 @@ -1,18 +1,18 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="lighttpd-ssl"
     1.7 -VERSION="1.4.35"
     1.8 +VERSION="1.4.54"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Fast and light HTTP Web server with SSL support"
    1.11 -MAINTAINER="devel@slitaz.org"
    1.12 +MAINTAINER="maintainer@slitaz.org"
    1.13  LICENSE="BSD"
    1.14 -WEB_SITE="http://www.lighttpd.net/"
    1.15 +WEB_SITE="https://www.lighttpd.net/"
    1.16  REPOLOGY="lighttpd"
    1.17  
    1.18  TARBALL="lighttpd-$VERSION.tar.xz"
    1.19  WGET_URL="http://download.lighttpd.net/lighttpd/releases-${VERSION%.*}.x/$TARBALL"
    1.20  
    1.21 -BUILD_DEPENDS="pcre-dev bzip2-dev openssl-dev zlib-dev"
    1.22 +BUILD_DEPENDS="bzip2-dev openssl-dev pcre-dev zlib-dev"
    1.23  
    1.24  BASE_MODULES="
    1.25  access
    1.26 @@ -26,14 +26,15 @@
    1.27  status
    1.28  userdir"
    1.29  
    1.30 -compile_rules() {
    1.31 +compile_rules()
    1.32 +{
    1.33  	sed -i '/addrs_left/d' src/mod_extforward.c
    1.34  
    1.35 -	./configure \
    1.36 -		--enable-shared \
    1.37 -		--disable-ipv6 \
    1.38 -		--with-openssl \
    1.39 -		--libdir=/usr/lib/lighttpd \
    1.40 +	./configure				\
    1.41 +		--enable-shared			\
    1.42 +		--disable-ipv6			\
    1.43 +		--with-openssl			\
    1.44 +		--libdir=/usr/lib/lighttpd	\
    1.45  		$CONFIGURE_ARGS &&
    1.46  	fix libtool &&
    1.47  	make &&
    1.48 @@ -41,21 +42,24 @@
    1.49  }
    1.50  
    1.51  # On SliTaz Lighttpd runs as user/group : www/www or 80/80.
    1.52 -genpkg_rules() {
    1.53 +genpkg_rules()
    1.54 +{
    1.55  	mkdir -p $fs/usr
    1.56 +
    1.57  	#cp -a $install/usr/bin $fs/usr
    1.58  	cp -a $install/usr/sbin $fs/usr
    1.59  
    1.60  	# Modules.
    1.61  	mkdir -p $fs/usr/lib/lighttpd
    1.62 -	for module in $BASE_MODULES; do
    1.63 +	for module in $BASE_MODULES
    1.64 +	  do
    1.65  		action 'Copying : mod_$module.so'
    1.66  		cp $install/usr/lib/lighttpd/mod_$module.so $fs/usr/lib/lighttpd
    1.67  		status
    1.68 -	done
    1.69 +	  done
    1.70  
    1.71 -	# Server root and config file.
    1.72 -	cp -a $WOK/lighttpd/stuff/etc $fs
    1.73 +	# Server root and configuration file.
    1.74 +	cp -a $WOK/lighttpd/stuff/etc	$fs
    1.75  	chown -R 0.0 $fs/etc
    1.76  	mkdir -p $fs/etc/ssl/lighttpd
    1.77  	cat >> $fs/etc/lighttpd/lighttpd.conf <<EOT
    1.78 @@ -75,31 +79,37 @@
    1.79  	# Logs directory.
    1.80  	mkdir -p $fs/var/log/lighttpd
    1.81  	chown 80.80 $fs/var/log/lighttpd
    1.82 -	DEPENDS="pcre openssl"
    1.83 +	DEPENDS="openssl pcre"
    1.84  	PROVIDE="lighttpd"
    1.85  	SUGGESTED="lighttpd-modules php perl python"
    1.86  	CONFIG_FILES="/etc/lighttpd/vhosts.conf /etc/lighttpd/lighttpd.conf /etc/ssl/lighttpd"
    1.87  }
    1.88  
    1.89  # Make sure it as cross compile properly
    1.90 -testsuite() {
    1.91 +testsuite()
    1.92 +{
    1.93  	readelf -h $install/usr/sbin/lighttpd
    1.94  }
    1.95  
    1.96  # We stop the server by default in case of upgarde.
    1.97 -pre_install() {
    1.98 +pre_install()
    1.99 +{
   1.100  	[ -z "$1" ] &&
   1.101 -	for i in httpd lighttpd ngnix apache cherokee lighttpd-ssl; do
   1.102 +	for i in httpd lighttpd ngnix apache cherokee lighttpd-ssl
   1.103 +	  do
   1.104  		[ -f /etc/init.d/$i ] && /etc/init.d/$i stop
   1.105 -	done
   1.106 -	# Backup config file.
   1.107 -	if [ -d "$1/etc/lighttpd" ]; then
   1.108 +	  done
   1.109 +	# Backup configuration file.
   1.110 +	if [ -d "$1/etc/lighttpd" ]
   1.111 +	  then
   1.112  		cp -a "$1/etc/lighttpd" "$1/etc/lighttpd.bak"
   1.113  	fi
   1.114  }
   1.115  
   1.116 -post_install() {
   1.117 -	if [ ! -f "$1/etc/ssl/lighttpd/lighttpd.pem" ]; then
   1.118 +post_install()
   1.119 +{
   1.120 +	if [ ! -f "$1/etc/ssl/lighttpd/lighttpd.pem" ]
   1.121 +	  then
   1.122  		openssl req -new -x509 \
   1.123  			-keyout "$1/etc/ssl/lighttpd/lighttpd.pem" \
   1.124  			-out "$1/etc/ssl/lighttpd/lighttpd.pem" \
   1.125 @@ -113,12 +123,15 @@
   1.126  
   1.127  EOT
   1.128  	fi
   1.129 +
   1.130  	# Just in case.
   1.131  	chown www.www "$1/var/log/lighttpd"
   1.132 -	if [ -z "$1" ]; then
   1.133 -		for i in apache ; do
   1.134 +	if [ -z "$1" ]
   1.135 +	  then
   1.136 +		for i in apache
   1.137 +		  do
   1.138  			[ -f /etc/init.d/$i ] && /etc/init.d/$i stop
   1.139 -		done
   1.140 +		  done
   1.141  		/etc/init.d/lighttpd start
   1.142  	fi
   1.143  }