wok-6.x annotate wikiss/receipt @ rev 15488
Up: firefox-dev (17.0.10esr)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Sun Nov 17 16:28:53 2013 +0100 (2013-11-17) |
parents | 99b42fdb85c9 |
children | d51b2411e55e |
rev | line source |
---|---|
pascal@5488 | 1 # SliTaz package receipt. |
pascal@5488 | 2 |
pascal@5488 | 3 PACKAGE="wikiss" |
pascal@5488 | 4 VERSION="0.3" |
pascal@5488 | 5 CATEGORY="office" |
pascal@5488 | 6 SHORT_DESC="Tiny Wiki Engine in french." |
pascal@5488 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15001 | 8 LICENSE="GPL2" |
pascal@14355 | 9 TARBALL="$PACKAGE-$VERSION.tgz" |
pascal@5488 | 10 WEB_SITE="http://wikiss.tuxfamily.org/" |
pascal@14355 | 11 WGET_URL="http://download.tuxfamily.org/$PACKAGE/${VERSION%.*}.x/$VERSION.tgz" |
pascal@15001 | 12 CONFIG_FILES="/var/www/wikiss/_config.php" |
pascal@15001 | 13 |
pascal@5488 | 14 DEPENDS="lighttpd php" |
pascal@5488 | 15 |
pascal@5488 | 16 # Rules to configure and make the package. |
pascal@5488 | 17 compile_rules() |
pascal@5488 | 18 { |
pascal@5488 | 19 mv $PACKAGE $src 2> /dev/null |
pascal@5488 | 20 cd $src |
pascal@5531 | 21 sed -i -e 's/strpos(\$CONTENT/true || &/' \ |
pascal@5531 | 22 -e 's|^.*cC.*$|\t $CONTENT = preg_replace("/\\([eE]\\)/Umsi", "\€", $CONTENT); // (e)\n\t $CONTENT = preg_replace("/\\([yY]\\)/Umsi", "\¥", $CONTENT); // (y)\n&|' index.php |
pascal@5488 | 23 } |
pascal@5488 | 24 |
pascal@5488 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5488 | 26 genpkg_rules() |
pascal@5488 | 27 { |
pascal@5488 | 28 mkdir -p $fs/var/www |
pascal@5488 | 29 cp -a $src $fs/var/www/wikiss |
pascal@5488 | 30 rm -f $fs/var/www/wikiss/historique/*/*.bak |
pascal@10787 | 31 cp -a $stuff/* $fs/var/www/wikiss/ |
pascal@5488 | 32 chown -R www.www $fs/var/www/wikiss |
pascal@5488 | 33 } |