wok-6.x view 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 source
1 # SliTaz package receipt.
3 PACKAGE="mediawiki"
4 VERSION="1.19.0"
5 CATEGORY="network"
6 SHORT_DESC="MediaWiki engine"
7 MAINTAINER="slaxemulator@gmail.com"
8 WEB_SITE="http://www.mediawiki.org/wiki/MediaWiki"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WGET_URL="http://download.wikimedia.org/mediawiki/${VERSION:0:4}/$TARBALL"
12 DEPENDS="php"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 genpkg_rules()
16 {
17 mkdir -p $fs/usr/share/webapps $fs/etc/webapps/mediawiki
18 cp -a $src $fs/usr/share/webapps/mediawiki
19 sed -i -e 's#is_executable#is_file#' -e 's#is_executable#is_file#'$fs/includes/Math.php
20 echo "deny from all" >> $fs/etc/webapps/mediawiki/.htaccess
21 ln -sf /etc/webapps/mediawiki/.htaccess $fs/usr/share/webapps/mediawiki/.htaccess
22 # move cache and images to /var
23 install -vdm0755 -o www -g www $fs/var/cache/mediawiki
24 install -vdm0755 -o www -g www $fs/var/lib/mediawiki
25 cd $fs/usr/share/webapps/mediawiki
26 mv cache/.htaccess $fs/var/cache/mediawiki
27 rmdir cache
28 ln -sf /var/cache/mediawiki cache
30 mv images/* $fs/var/lib/mediawiki
31 mv images/.htaccess $fs/var/lib/mediawiki
32 rmdir images
33 ln -sf /var/lib/mediawiki images
34 }