wok-6.x annotate mediawiki/receipt @ rev 18399
open-vm-tools: fix depmod call
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Sat Sep 19 03:27:30 2015 +0000 (2015-09-19) |
parents | ecbe574923cc |
children | 6e8b1bcb30e2 |
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" |
pascal@15003 | 8 LICENSE="GPL2" |
slaxemulator@13200 | 9 WEB_SITE="http://www.mediawiki.org/wiki/MediaWiki" |
slaxemulator@13200 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@13200 | 11 WGET_URL="http://download.wikimedia.org/mediawiki/${VERSION:0:4}/$TARBALL" |
slaxemulator@13200 | 12 |
slaxemulator@13200 | 13 DEPENDS="php" |
slaxemulator@13200 | 14 |
slaxemulator@13200 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@13200 | 16 genpkg_rules() |
slaxemulator@13200 | 17 { |
slaxemulator@13200 | 18 mkdir -p $fs/usr/share/webapps $fs/etc/webapps/mediawiki |
slaxemulator@13200 | 19 cp -a $src $fs/usr/share/webapps/mediawiki |
slaxemulator@13200 | 20 sed -i -e 's#is_executable#is_file#' -e 's#is_executable#is_file#'$fs/includes/Math.php |
slaxemulator@13200 | 21 echo "deny from all" >> $fs/etc/webapps/mediawiki/.htaccess |
slaxemulator@13200 | 22 ln -sf /etc/webapps/mediawiki/.htaccess $fs/usr/share/webapps/mediawiki/.htaccess |
slaxemulator@13200 | 23 # move cache and images to /var |
slaxemulator@13200 | 24 install -vdm0755 -o www -g www $fs/var/cache/mediawiki |
slaxemulator@13200 | 25 install -vdm0755 -o www -g www $fs/var/lib/mediawiki |
slaxemulator@13200 | 26 cd $fs/usr/share/webapps/mediawiki |
slaxemulator@13200 | 27 mv cache/.htaccess $fs/var/cache/mediawiki |
slaxemulator@13200 | 28 rmdir cache |
slaxemulator@13200 | 29 ln -sf /var/cache/mediawiki cache |
slaxemulator@13200 | 30 |
slaxemulator@13200 | 31 mv images/* $fs/var/lib/mediawiki |
slaxemulator@13200 | 32 mv images/.htaccess $fs/var/lib/mediawiki |
slaxemulator@13200 | 33 rmdir images |
slaxemulator@13200 | 34 ln -sf /var/lib/mediawiki images |
slaxemulator@13200 | 35 } |