wok diff lighttpd/receipt @ rev 23809

linld: add isoboot (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun May 24 16:43:25 2020 +0000 (2020-05-24)
parents ea835222df2a
children ede1d184d5c5
line diff
     1.1 --- a/lighttpd/receipt	Sun Apr 21 09:57:43 2019 +0100
     1.2 +++ b/lighttpd/receipt	Sun May 24 16:43:25 2020 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="lighttpd"
     1.7 -VERSION="1.4.53"
     1.8 +VERSION="1.4.55"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Fast and light HTTP Web server."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 @@ -14,6 +14,7 @@
    1.13  SUGGESTED="lighttpd-modules perl php python"
    1.14  DEPENDS="pcre"
    1.15  BUILD_DEPENDS="bzip2-dev pcre-dev"
    1.16 +
    1.17  CONFIG_FILES="/etc/lighttpd/vhosts.conf /etc/lighttpd/lighttpd.conf"
    1.18  
    1.19  HOST_ARCH="i486 arm"
    1.20 @@ -38,11 +39,11 @@
    1.21  	sed -i '/addrs_left/d' src/mod_extforward.c
    1.22  
    1.23  	./configure				\
    1.24 -		--enable-shared			\
    1.25 -		--disable-ipv6			\
    1.26  		--prefix=/usr			\
    1.27  		--libdir=/usr/lib/lighttpd	\
    1.28  		--mandir=/usr/share/man		\
    1.29 +		--disable-ipv6			\
    1.30 +		 --enable-shared		\
    1.31  		$CONFIGURE_ARGS &&
    1.32  	make -j 1 &&
    1.33  	make DESTDIR=$DESTDIR install
    1.34 @@ -53,19 +54,21 @@
    1.35  genpkg_rules()
    1.36  {
    1.37  	mkdir -p $fs/usr
    1.38 -	#cp -a $install/usr/bin $fs/usr
    1.39 -	cp -a $install/usr/sbin $fs/usr
    1.40 +	#cp -a $install/usr/bin	$fs/usr
    1.41 +	cp -a $install/usr/sbin	$fs/usr
    1.42  
    1.43  	# Modules.
    1.44  	mkdir -p $fs/usr/lib/lighttpd
    1.45 -	for module in $BASE_MODULES; do
    1.46 -		cp $install/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd
    1.47 +	for module in $BASE_MODULES
    1.48 +	  do
    1.49 +		cp $install/usr/lib/lighttpd/mod_${module}.so \
    1.50 +			$fs/usr/lib/lighttpd
    1.51  		echo -n "Copying : mod_${module}.so" && status
    1.52 -	done
    1.53 +	  done
    1.54  
    1.55  	# Configuration file.
    1.56 -	cp -a $stuff/etc $fs
    1.57 -	chown -R 0.0 $fs/etc
    1.58 +	cp -a $stuff/etc	$fs
    1.59 +	chown -R 0.0		$fs/etc
    1.60  
    1.61  	# Logs directory.
    1.62  	mkdir -p $fs/var/log/lighttpd
    1.63 @@ -82,11 +85,15 @@
    1.64  # We stop the server by default in case of upgrade.
    1.65  pre_install()
    1.66  {
    1.67 -	[ -z "$1" ] && for i in httpd ngnix apache cherokee $PACKAGE ; do
    1.68 +	[ -z "$1" ] &&
    1.69 +	for i in httpd ngnix apache cherokee $PACKAGE
    1.70 +	  do
    1.71  		[ -f /etc/init.d/$i ] && /etc/init.d/$i stop
    1.72 -	done
    1.73 +	  done
    1.74 +
    1.75  	# Backup configuration file.
    1.76 -	if [ -d "$1/etc/lighttpd" ]; then
    1.77 +	if [ -d "$1/etc/lighttpd" ]
    1.78 +	  then
    1.79  		cp -a "$1/etc/lighttpd" "$1/etc/lighttpd.bak"
    1.80  	fi
    1.81  }
    1.82 @@ -94,7 +101,8 @@
    1.83  post_install()
    1.84  {
    1.85  	# Restore original configuration file.
    1.86 -	if [ -d "$1/etc/lighttpd.bak" ]; then
    1.87 +	if [ -d "$1/etc/lighttpd.bak" ]
    1.88 +	  then
    1.89  		rm -rf "$1/etc/lighttpd"
    1.90  		mv "$1/etc/lighttpd.bak" "$1/etc/lighttpd"
    1.91  	fi