wok annotate mediawiki/receipt @ rev 14794
catfish: fix genpkg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jul 08 20:42:48 2013 +0000 (2013-07-08) |
parents | |
children | 02efefc5d9de |
rev | line source |
---|---|
slaxemulator@13200 | 1 # SliTaz package receipt. |
slaxemulator@13200 | 2 |
slaxemulator@13200 | 3 PACKAGE="mediawiki" |
slaxemulator@13200 | 4 VERSION="1.19.0" |
slaxemulator@13200 | 5 CATEGORY="network" |
slaxemulator@13200 | 6 SHORT_DESC="MediaWiki engine" |
slaxemulator@13200 | 7 MAINTAINER="slaxemulator@gmail.com" |
slaxemulator@13200 | 8 WEB_SITE="http://www.mediawiki.org/wiki/MediaWiki" |
slaxemulator@13200 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@13200 | 10 WGET_URL="http://download.wikimedia.org/mediawiki/${VERSION:0:4}/$TARBALL" |
slaxemulator@13200 | 11 |
slaxemulator@13200 | 12 DEPENDS="php" |
slaxemulator@13200 | 13 |
slaxemulator@13200 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@13200 | 15 genpkg_rules() |
slaxemulator@13200 | 16 { |
slaxemulator@13200 | 17 mkdir -p $fs/usr/share/webapps $fs/etc/webapps/mediawiki |
slaxemulator@13200 | 18 cp -a $src $fs/usr/share/webapps/mediawiki |
slaxemulator@13200 | 19 sed -i -e 's#is_executable#is_file#' -e 's#is_executable#is_file#'$fs/includes/Math.php |
slaxemulator@13200 | 20 echo "deny from all" >> $fs/etc/webapps/mediawiki/.htaccess |
slaxemulator@13200 | 21 ln -sf /etc/webapps/mediawiki/.htaccess $fs/usr/share/webapps/mediawiki/.htaccess |
slaxemulator@13200 | 22 # move cache and images to /var |
slaxemulator@13200 | 23 install -vdm0755 -o www -g www $fs/var/cache/mediawiki |
slaxemulator@13200 | 24 install -vdm0755 -o www -g www $fs/var/lib/mediawiki |
slaxemulator@13200 | 25 cd $fs/usr/share/webapps/mediawiki |
slaxemulator@13200 | 26 mv cache/.htaccess $fs/var/cache/mediawiki |
slaxemulator@13200 | 27 rmdir cache |
slaxemulator@13200 | 28 ln -sf /var/cache/mediawiki cache |
slaxemulator@13200 | 29 |
slaxemulator@13200 | 30 mv images/* $fs/var/lib/mediawiki |
slaxemulator@13200 | 31 mv images/.htaccess $fs/var/lib/mediawiki |
slaxemulator@13200 | 32 rmdir images |
slaxemulator@13200 | 33 ln -sf /var/lib/mediawiki images |
slaxemulator@13200 | 34 } |