wok-next diff lighttpd-ssl/receipt @ rev 21253

updated duplicity (0.6.20 -> 0.8.07)
author Hans-G?nter Theisgen
date Fri Dec 06 09:07:53 2019 +0100 (2019-12-06)
parents df20b2110f7e
children 1840e5b15cc0
line diff
     1.1 --- a/lighttpd-ssl/receipt	Wed Jul 11 02:06:34 2018 +0300
     1.2 +++ b/lighttpd-ssl/receipt	Fri Dec 06 09:07:53 2019 +0100
     1.3 @@ -4,7 +4,7 @@
     1.4  VERSION="1.4.35"
     1.5  CATEGORY="network"
     1.6  SHORT_DESC="Fast and light HTTP Web server with SSL support"
     1.7 -MAINTAINER="pankso@slitaz.org"
     1.8 +MAINTAINER="devel@slitaz.org"
     1.9  LICENSE="BSD"
    1.10  WEB_SITE="http://www.lighttpd.net/"
    1.11  REPOLOGY="lighttpd"
    1.12 @@ -37,7 +37,7 @@
    1.13  		$CONFIGURE_ARGS &&
    1.14  	fix libtool &&
    1.15  	make &&
    1.16 -	make DESTDIR=$DESTDIR install
    1.17 +	make DESTDIR=$install install
    1.18  }
    1.19  
    1.20  # On SliTaz Lighttpd runs as user/group : www/www or 80/80.
    1.21 @@ -49,8 +49,8 @@
    1.22  	# Modules.
    1.23  	mkdir -p $fs/usr/lib/lighttpd
    1.24  	for module in $BASE_MODULES; do
    1.25 -		action 'Copying : mod_${module}.so'
    1.26 -		cp $install/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd
    1.27 +		action 'Copying : mod_$module.so'
    1.28 +		cp $install/usr/lib/lighttpd/mod_$module.so $fs/usr/lib/lighttpd
    1.29  		status
    1.30  	done
    1.31  
    1.32 @@ -88,7 +88,8 @@
    1.33  
    1.34  # We stop the server by default in case of upgarde.
    1.35  pre_install() {
    1.36 -	[ -z "$1" ] && for i in httpd lighttpd ngnix apache cherokee $PACKAGE ; do
    1.37 +	[ -z "$1" ] &&
    1.38 +	for i in httpd lighttpd ngnix apache cherokee lighttpd-ssl; do
    1.39  		[ -f /etc/init.d/$i ] && /etc/init.d/$i stop
    1.40  	done
    1.41  	# Backup config file.
    1.42 @@ -97,14 +98,13 @@
    1.43  	fi
    1.44  }
    1.45  
    1.46 -post_install()
    1.47 -{
    1.48 +post_install() {
    1.49  	if [ ! -f "$1/etc/ssl/lighttpd/lighttpd.pem" ]; then
    1.50  		openssl req -new -x509 \
    1.51  			-keyout "$1/etc/ssl/lighttpd/lighttpd.pem" \
    1.52  			-out "$1/etc/ssl/lighttpd/lighttpd.pem" \
    1.53  			-days 3650 -nodes <<EOT
    1.54 -$(. "$1/etc/locale.conf" ; echo ${LANG#*_})
    1.55 +$(. "$1/etc/locale.conf"; echo ${LANG#*_})
    1.56  $(cat "$1/etc/TZ")
    1.57  
    1.58  $(cat "$1/etc/hostname")