wok-next diff lighttpd/receipt @ rev 19986

softgun, lighttpd: update deps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 19 19:25:50 2017 +0200 (2017-10-19)
parents 3630f18392bd
children 8dbfcd66c5a7
line diff
     1.1 --- a/lighttpd/receipt	Mon May 23 11:34:06 2016 +0200
     1.2 +++ b/lighttpd/receipt	Thu Oct 19 19:25:50 2017 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="lighttpd"
     1.8  VERSION="1.4.35"
     1.9 @@ -6,29 +6,12 @@
    1.10  SHORT_DESC="Fast and light HTTP Web server."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12  LICENSE="BSD"
    1.13 -SUGGESTED="lighttpd-modules php perl python"
    1.14  TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.15  WEB_SITE="http://www.lighttpd.net/"
    1.16  WGET_URL="http://download.lighttpd.net/lighttpd/releases-${VERSION%.*}.x/$TARBALL"
    1.17 -CONFIG_FILES="/etc/lighttpd/vhosts.conf /etc/lighttpd/lighttpd.conf"
    1.18  HOST_ARCH="i486 arm"
    1.19  
    1.20 -DEPENDS="pcre"
    1.21 -BUILD_DEPENDS="pcre-dev bzip2-dev"
    1.22 -
    1.23 -# Modules include in this package. Other modules are splited in
    1.24 -# the lighttpd-modules packages.
    1.25 -BASE_MODULES="
    1.26 -access
    1.27 -accesslog
    1.28 -alias
    1.29 -cgi
    1.30 -dirlisting
    1.31 -indexfile
    1.32 -staticfile
    1.33 -rewrite
    1.34 -status
    1.35 -userdir"
    1.36 +BUILD_DEPENDS="pcre-dev bzip2-dev zlib-dev"
    1.37  
    1.38  # Rules to configure and make the package.
    1.39  compile_rules()
    1.40 @@ -49,24 +32,67 @@
    1.41  # On SliTaz Lighttpd runs as user/group : www/www or 80/80.
    1.42  genpkg_rules()
    1.43  {
    1.44 -	mkdir -p $fs/usr
    1.45 -	#cp -a $install/usr/bin $fs/usr
    1.46 -	cp -a $install/usr/sbin $fs/usr
    1.47 +	case $PACKAGE in
    1.48 +	lighttpd)
    1.49 +		CONFIG_FILES="/etc/lighttpd/vhosts.conf /etc/lighttpd/lighttpd.conf"
    1.50 +		SUGGESTED="lighttpd-modules php perl python"
    1.51 +		DEPENDS="pcre"
    1.52 +		# Modules include in this package. Other modules are splited in
    1.53 +		# the lighttpd-modules packages.
    1.54 +		BASE_MODULES="
    1.55 +access
    1.56 +accesslog
    1.57 +alias
    1.58 +cgi
    1.59 +dirlisting
    1.60 +indexfile
    1.61 +staticfile
    1.62 +rewrite
    1.63 +status
    1.64 +userdir"
    1.65 +		mkdir -p $fs/usr
    1.66 +		#cp -a $install/usr/bin $fs/usr
    1.67 +		cp -a $install/usr/sbin $fs/usr
    1.68  
    1.69 -	# Modules.
    1.70 -	mkdir -p $fs/usr/lib/lighttpd
    1.71 -	for module in $BASE_MODULES; do
    1.72 -		cp $install/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd
    1.73 -		echo -n "Copying : mod_${module}.so" && status
    1.74 -	done
    1.75 +		# Modules.
    1.76 +		mkdir -p $fs/usr/lib/lighttpd
    1.77 +		for module in $BASE_MODULES; do
    1.78 +			cp $install/usr/lib/lighttpd/mod_${module}.so $fs/usr/lib/lighttpd
    1.79 +			echo -n "Copying : mod_${module}.so" && status
    1.80 +		done
    1.81  
    1.82 -	# Config file.
    1.83 -	cp -a $stuff/etc $fs
    1.84 -	chown -R 0.0 $fs/etc
    1.85 +		# Config file.
    1.86 +		cp -a $stuff/etc $fs
    1.87 +		chown -R 0.0 $fs/etc
    1.88  
    1.89 -	# Logs directory.
    1.90 -	mkdir -p $fs/var/log/lighttpd
    1.91 -	chown 80.80 $fs/var/log/lighttpd
    1.92 +		# Logs directory.
    1.93 +		mkdir -p $fs/var/log/lighttpd
    1.94 +		chown 80.80 $fs/var/log/lighttpd
    1.95 +		;;
    1.96 +	lighttpd-modules)
    1.97 +		CAT="network|Complementary modules for LightTPD Web server."
    1.98 +		DEPENDS="lighttpd bzip2 zlib"
    1.99 +		BASE_MODULES="
   1.100 +access
   1.101 +accesslog
   1.102 +alias
   1.103 +cgi
   1.104 +dirlisting
   1.105 +indexfile
   1.106 +staticfile
   1.107 +rewrite
   1.108 +status
   1.109 +userdir"
   1.110 +		# Modules.
   1.111 +		mkdir -p $fs/usr/
   1.112 +		cp -a $install/usr/lib $fs/usr
   1.113 +		for module in $BASE_MODULES
   1.114 +		do
   1.115 +			rm -f $fs/usr/lib/lighttpd/mod_${module}.so
   1.116 +		done
   1.117 +		rm -f $fs/usr/lib/lighttpd/*.la
   1.118 +		;;
   1.119 +	esac
   1.120  }
   1.121  
   1.122  # Make sur it as cross compile properly
   1.123 @@ -77,7 +103,7 @@
   1.124  
   1.125  # Pre and post install commands for Tazpkg.
   1.126  # We stop the server by default in case of upgarde.
   1.127 -pre_install()
   1.128 +pre_install_lighttpd()
   1.129  {
   1.130  	[ -z "$1" ] && for i in httpd ngnix apache cherokee $PACKAGE ; do
   1.131  		[ -f /etc/init.d/$i ] && /etc/init.d/$i stop
   1.132 @@ -88,7 +114,7 @@
   1.133  	fi
   1.134  }
   1.135  
   1.136 -post_install()
   1.137 +post_install_lighttpd()
   1.138  {
   1.139  	# Restore original config.
   1.140  	if [ -d "$1/etc/lighttpd.bak" ]; then