wok-next diff wikiss/receipt @ rev 21171

Up shaarli (0.10.3), nms (0.3.3), freealut (1.1.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 14 14:13:19 2019 +0200 (2019-04-14)
parents c4e53a39395a
children
line diff
     1.1 --- a/wikiss/receipt	Fri Mar 02 12:12:14 2018 +0200
     1.2 +++ b/wikiss/receipt	Sun Apr 14 14:13:19 2019 +0200
     1.3 @@ -1,33 +1,31 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="wikiss"
     1.8  VERSION="0.3"
     1.9  CATEGORY="office"
    1.10 -SHORT_DESC="Tiny Wiki Engine in french."
    1.11 +SHORT_DESC="Tiny Wiki Engine in French"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 +WEB_SITE="http://wikiss.tuxfamily.org/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tgz"
    1.17 -WEB_SITE="http://wikiss.tuxfamily.org/"
    1.18  WGET_URL="http://download.tuxfamily.org/$PACKAGE/${VERSION%.*}.x/$VERSION.tgz"
    1.19 -CONFIG_FILES="/var/www/wikiss/_config.php"
    1.20  
    1.21 -DEPENDS="lighttpd php"
    1.22 -
    1.23 -# Rules to configure and make the package.
    1.24 -compile_rules()
    1.25 -{
    1.26 -	mv $PACKAGE $src 2> /dev/null
    1.27 +compile_rules() {
    1.28 +	mv $PACKAGE $src 2>/dev/null
    1.29  	cd $src
    1.30  	sed -i -e 's/strpos(\$CONTENT/true || &/' \
    1.31  	       -e 's|^.*cC.*$|\t $CONTENT = preg_replace("/\\([eE]\\)/Umsi", "\&euro;", $CONTENT); // (e)\n\t $CONTENT = preg_replace("/\\([yY]\\)/Umsi", "\&yen;", $CONTENT); // (y)\n&|' index.php
    1.32 +
    1.33 +	mkdir -p          $install/var/www
    1.34 +	cp    -a $src     $install/var/www/wikiss
    1.35 +	rm    -f          $install/var/www/wikiss/historique/*/*.bak
    1.36 +	cp    -a $stuff/* $install/var/www/wikiss/
    1.37 +	chown -R www.www  $install/var/www/wikiss
    1.38  }
    1.39  
    1.40 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.41 -genpkg_rules()
    1.42 -{
    1.43 -	mkdir -p $fs/var/www
    1.44 -	cp -a $src $fs/var/www/wikiss
    1.45 -	rm -f $fs/var/www/wikiss/historique/*/*.bak
    1.46 -	cp -a $stuff/* $fs/var/www/wikiss/
    1.47 -	chown -R www.www $fs/var/www/wikiss
    1.48 +genpkg_rules() {
    1.49 +	copy @std
    1.50 +	DEPENDS="lighttpd php"
    1.51 +	CONFIG_FILES="/var/www/wikiss/_config.php"
    1.52  }