wok-6.x diff mediawiki/receipt @ rev 14074
coreutils: add cp
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 22 15:32:40 2013 +0100 (2013-02-22) |
parents | |
children | 02efefc5d9de |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mediawiki/receipt Fri Feb 22 15:32:40 2013 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="mediawiki" 1.7 +VERSION="1.19.0" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="MediaWiki engine" 1.10 +MAINTAINER="slaxemulator@gmail.com" 1.11 +WEB_SITE="http://www.mediawiki.org/wiki/MediaWiki" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WGET_URL="http://download.wikimedia.org/mediawiki/${VERSION:0:4}/$TARBALL" 1.14 + 1.15 +DEPENDS="php" 1.16 + 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + mkdir -p $fs/usr/share/webapps $fs/etc/webapps/mediawiki 1.21 + cp -a $src $fs/usr/share/webapps/mediawiki 1.22 + sed -i -e 's#is_executable#is_file#' -e 's#is_executable#is_file#'$fs/includes/Math.php 1.23 + echo "deny from all" >> $fs/etc/webapps/mediawiki/.htaccess 1.24 + ln -sf /etc/webapps/mediawiki/.htaccess $fs/usr/share/webapps/mediawiki/.htaccess 1.25 + # move cache and images to /var 1.26 + install -vdm0755 -o www -g www $fs/var/cache/mediawiki 1.27 + install -vdm0755 -o www -g www $fs/var/lib/mediawiki 1.28 + cd $fs/usr/share/webapps/mediawiki 1.29 + mv cache/.htaccess $fs/var/cache/mediawiki 1.30 + rmdir cache 1.31 + ln -sf /var/cache/mediawiki cache 1.32 + 1.33 + mv images/* $fs/var/lib/mediawiki 1.34 + mv images/.htaccess $fs/var/lib/mediawiki 1.35 + rmdir images 1.36 + ln -sf /var/lib/mediawiki images 1.37 +}