wok-6.x view mediawiki/receipt @ rev 16702
Up: lxpanel (0.6.2) and sed cpu plugin to match default desktop color
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon May 26 20:20:32 2014 +0200 (2014-05-26) |
parents | ecbe574923cc |
children | 6e8b1bcb30e2 |
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 LICENSE="GPL2"
9 WEB_SITE="http://www.mediawiki.org/wiki/MediaWiki"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://download.wikimedia.org/mediawiki/${VERSION:0:4}/$TARBALL"
13 DEPENDS="php"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/share/webapps $fs/etc/webapps/mediawiki
19 cp -a $src $fs/usr/share/webapps/mediawiki
20 sed -i -e 's#is_executable#is_file#' -e 's#is_executable#is_file#'$fs/includes/Math.php
21 echo "deny from all" >> $fs/etc/webapps/mediawiki/.htaccess
22 ln -sf /etc/webapps/mediawiki/.htaccess $fs/usr/share/webapps/mediawiki/.htaccess
23 # move cache and images to /var
24 install -vdm0755 -o www -g www $fs/var/cache/mediawiki
25 install -vdm0755 -o www -g www $fs/var/lib/mediawiki
26 cd $fs/usr/share/webapps/mediawiki
27 mv cache/.htaccess $fs/var/cache/mediawiki
28 rmdir cache
29 ln -sf /var/cache/mediawiki cache
31 mv images/* $fs/var/lib/mediawiki
32 mv images/.htaccess $fs/var/lib/mediawiki
33 rmdir images
34 ln -sf /var/lib/mediawiki images
35 }