wok-current view mediawiki/receipt @ rev 21021
updated gvpe (2.25 -> 3.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Mar 10 15:17:47 2019 +0100 (2019-03-10) |
parents | 02efefc5d9de |
children | d52746146def |
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="https://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 }