wok-next diff phproxy/receipt @ rev 21051

Small updates.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 30 01:34:53 2018 +0200 (2018-11-30)
parents c4e53a39395a
children 262dccc5e3ed
line diff
     1.1 --- a/phproxy/receipt	Fri Mar 02 12:12:14 2018 +0200
     1.2 +++ b/phproxy/receipt	Fri Nov 30 01:34:53 2018 +0200
     1.3 @@ -4,36 +4,32 @@
     1.4  SOURCE="PHProxy"
     1.5  VERSION="0.5b2"
     1.6  CATEGORY="network"
     1.7 -SHORT_DESC="A proxy HTTP."
     1.8 +SHORT_DESC="A proxy HTTP"
     1.9  MAINTAINER="pascal.bellard@slitaz.org"
    1.10  LICENSE="GPL2"
    1.11  WEB_SITE="http://sebsauvage.net/wiki/doku.php?id=phproxy"
    1.12 +
    1.13  TARBALL="$SOURCE%20$VERSION%20mod%20SSE+ARKA%2020100825.7z"
    1.14  WGET_URL="http://sebsauvage.net/temp/$TARBALL"
    1.15  
    1.16 -DEPENDS="php"
    1.17  BUILD_DEPENDS="p7zip"
    1.18  
    1.19 -# Rules to configure and make the package.
    1.20 -compile_rules()
    1.21 -{
    1.22 +compile_rules() {
    1.23  	dos2unix *
    1.24 -	mkdir -p $DESTDIR/usr/share/$PACKAGE
    1.25 -	cp *.php *.css $DESTDIR/usr/share/$PACKAGE
    1.26 +	mkdir -p $install/usr/share/$PACKAGE
    1.27 +	cp *.php *.css $install/usr/share/$PACKAGE
    1.28  }
    1.29  
    1.30 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 -genpkg_rules()
    1.32 -{
    1.33 +genpkg_rules() {
    1.34  	cp -a $install/* $fs
    1.35 +	DEPENDS="php"
    1.36  }
    1.37  
    1.38 -post_install()
    1.39 -{
    1.40 +post_install() {
    1.41  	# Configure lighttpd server
    1.42  	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
    1.43  		if ! grep -q /usr/share/phproxy/ "$1/etc/lighttpd/lighttpd.conf"; then
    1.44 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phproxy/" => "/usr/share/phproxy/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
    1.45 +			sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phproxy/" => "/usr/share/phproxy/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
    1.46  			if [ -z "$1" ]; then
    1.47  				# Start Web server.
    1.48  				/etc/init.d/lighttpd stop