wok-next diff lighttpd/receipt @ rev 20678

Up clisp (2.50)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 15 02:59:03 2018 +0300 (2018-05-15)
parents c4e53a39395a
children 342b30daff76
line diff
     1.1 --- a/lighttpd/receipt	Fri Mar 02 12:12:14 2018 +0200
     1.2 +++ b/lighttpd/receipt	Tue May 15 02:59:03 2018 +0300
     1.3 @@ -3,35 +3,32 @@
     1.4  PACKAGE="lighttpd"
     1.5  VERSION="1.4.35"
     1.6  CATEGORY="network"
     1.7 -SHORT_DESC="Fast and light HTTP Web server."
     1.8 +SHORT_DESC="Fast and light HTTP Web server"
     1.9  MAINTAINER="pankso@slitaz.org"
    1.10  LICENSE="BSD"
    1.11 +WEB_SITE="http://www.lighttpd.net/"
    1.12 +
    1.13  TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.14 -WEB_SITE="http://www.lighttpd.net/"
    1.15  WGET_URL="http://download.lighttpd.net/lighttpd/releases-${VERSION%.*}.x/$TARBALL"
    1.16  
    1.17  BUILD_DEPENDS="pcre-dev bzip2-dev zlib-dev"
    1.18  SPLIT="lighttpd lighttpd-modules"
    1.19  
    1.20 -# Rules to configure and make the package.
    1.21 -compile_rules()
    1.22 -{
    1.23 +compile_rules() {
    1.24  	sed -i '/addrs_left/d' src/mod_extforward.c
    1.25 +
    1.26  	./configure \
    1.27  		--enable-shared \
    1.28  		--disable-ipv6 \
    1.29 -		--prefix=/usr \
    1.30  		--libdir=/usr/lib/lighttpd \
    1.31 -		--mandir=/usr/share/man \
    1.32 -	$CONFIGURE_ARGS &&
    1.33 +		$CONFIGURE_ARGS &&
    1.34 +	fix libtool &&
    1.35  	make &&
    1.36  	make DESTDIR=$DESTDIR install
    1.37  }
    1.38  
    1.39 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.40  # On SliTaz Lighttpd runs as user/group : www/www or 80/80.
    1.41 -genpkg_rules()
    1.42 -{
    1.43 +genpkg_rules() {
    1.44  	case $PACKAGE in
    1.45  	lighttpd)
    1.46  		CONFIG_FILES="/etc/lighttpd/vhosts.conf /etc/lighttpd/lighttpd.conf"
    1.47 @@ -95,16 +92,13 @@
    1.48  	esac
    1.49  }
    1.50  
    1.51 -# Make sur it as cross compile properly
    1.52 -testsuite()
    1.53 -{
    1.54 +# Make sure it as cross compile properly
    1.55 +testsuite() {
    1.56  	readelf -h $install/usr/sbin/$PACKAGE
    1.57  }
    1.58  
    1.59 -# Pre and post install commands for Tazpkg.
    1.60  # We stop the server by default in case of upgarde.
    1.61 -pre_install_lighttpd()
    1.62 -{
    1.63 +pre_install_lighttpd() {
    1.64  	[ -z "$1" ] && for i in httpd ngnix apache cherokee $PACKAGE ; do
    1.65  		[ -f /etc/init.d/$i ] && /etc/init.d/$i stop
    1.66  	done
    1.67 @@ -114,8 +108,7 @@
    1.68  	fi
    1.69  }
    1.70  
    1.71 -post_install_lighttpd()
    1.72 -{
    1.73 +post_install_lighttpd() {
    1.74  	# Restore original config.
    1.75  	if [ -d "$1/etc/lighttpd.bak" ]; then
    1.76  		rm -rf "$1/etc/lighttpd"