wok-next view mediawiki/receipt @ rev 15909

Up: lxpanel (0.6.1) and remove dep on libwnck --> lxpanel-extra (save space on core ISO)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Feb 15 13:07:07 2014 +0100 (2014-02-15)
parents ecbe574923cc
children 68d93367f930
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 }