wok-next diff phpeasyvcs/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 9e01bc6321ea
children
line diff
     1.1 --- a/phpeasyvcs/receipt	Sun Dec 20 15:13:45 2015 +0100
     1.2 +++ b/phpeasyvcs/receipt	Sat Nov 21 14:32:44 2020 +0100
     1.3 @@ -1,37 +1,31 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="phpeasyvcs"
     1.8 -SOURCE="phpEasyVCS"
     1.9  VERSION="1.0"
    1.10  CATEGORY="network"
    1.11 -SHORT_DESC="A simple version control system (VCS) and WebDAV server."
    1.12 +SHORT_DESC="A simple version control system (VCS) and WebDAV server"
    1.13  MAINTAINER="pascal.bellard@slitaz.org"
    1.14  LICENSE="GPL3"
    1.15  WEB_SITE="http://phpeasyvcs.sourceforge.net/"
    1.16 -TARBALL="$SOURCE-$VERSION.zip"
    1.17 +
    1.18 +TARBALL="phpEasyVCS-$VERSION.zip"
    1.19  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.20  
    1.21 -DEPENDS="php"
    1.22 -
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 -	cd $src
    1.27 +compile_rules() {
    1.28 +	mkdir -p $install/usr/share
    1.29 +	cp -a $src $install/usr/share/phpeasyvcs
    1.30  }
    1.31  
    1.32 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.33 -genpkg_rules()
    1.34 -{
    1.35 -	mkdir -p $fs/usr/share
    1.36 -	cp -a $src $fs/usr/share/phpeasyvcs
    1.37 +genpkg_rules() {
    1.38 +	copy @std
    1.39 +	DEPENDS="php"
    1.40  }
    1.41  
    1.42 -post_install()
    1.43 -{
    1.44 +post_install() {
    1.45  	# Configure lighttpd server
    1.46  	if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then
    1.47  		if ! grep -q /usr/share/phpeasyvcs/ "$1/etc/lighttpd/lighttpd.conf"; then
    1.48 -	    		sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpeasyvcs/" => "/usr/share/phpeasyvcs/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
    1.49 +			sed -e 's|.*"/examples/" => "/usr/share/examples/",|    "/examples/" => "/usr/share/examples/",\n    "/phpeasyvcs/" => "/usr/share/phpeasyvcs/",|g' -i "$1/etc/lighttpd/lighttpd.conf"
    1.50  			if [ -z "$1" ]; then
    1.51  				# Start Web server.
    1.52  				/etc/init.d/lighttpd stop