wok view wikiss/receipt @ rev 11256

Add from wok-undigest: perl-crypt-ssleay perl-gtk2-perl perl-gtk2-trayicon perl-lwp-useragent
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 07 17:10:45 2011 +0100 (2011-11-07)
parents 0f28e0b1beea
children 99b42fdb85c9
line source
1 # SliTaz package receipt.
3 PACKAGE="wikiss"
4 VERSION="0.3"
5 CATEGORY="office"
6 SHORT_DESC="Tiny Wiki Engine in french."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 TARBALL="$VERSION.tgz"
9 WEB_SITE="http://wikiss.tuxfamily.org/"
10 WGET_URL="http://download.tuxfamily.org/$PACKAGE/${VERSION%.*}.x/$TARBALL"
11 DEPENDS="lighttpd php"
12 CONFIG_FILES="/var/www/wikiss/_config.php"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 mv $PACKAGE $src 2> /dev/null
18 cd $src
19 sed -i -e 's/strpos(\$CONTENT/true || &/' \
20 -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
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/var/www
27 cp -a $src $fs/var/www/wikiss
28 rm -f $fs/var/www/wikiss/historique/*/*.bak
29 cp -a $stuff/* $fs/var/www/wikiss/
30 chown -R www.www $fs/var/www/wikiss
31 }