wok-6.x view mediawiki/receipt @ rev 22510

updated astromenace again (1.3.2 -> 1.4.1)
author Hans-G?nter Theisgen
date Wed Jan 01 15:19:37 2020 +0100 (2020-01-01)
parents d52746146def
children c9ea8c14470e
line source
1 # SliTaz package receipt.
3 PACKAGE="mediawiki"
4 VERSION="1.32.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"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://download.wikimedia.org/mediawiki/${VERSION%.*}/$TARBALL"
14 DEPENDS="php"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mkdir -p $fs/usr/share/webapps
20 mkdir -p $fs/etc/webapps/mediawiki
22 cp -a $src $fs/usr/share/webapps/mediawiki
23 # sed -i -e 's#is_executable#is_file#' $fs/includes/Math.php
24 echo "deny from all" >> $fs/etc/webapps/mediawiki/.htaccess
25 ln -sf /etc/webapps/mediawiki/.htaccess $fs/usr/share/webapps/mediawiki/.htaccess
27 # move cache and images to /var
28 install -vdm0755 -o www -g www $fs/var/cache/mediawiki
29 install -vdm0755 -o www -g www $fs/var/lib/mediawiki
30 cd $fs/usr/share/webapps/mediawiki
31 mv cache/.htaccess $fs/var/cache/mediawiki
32 rmdir cache
33 ln -sf /var/cache/mediawiki cache
35 mv images/* $fs/var/lib/mediawiki
36 mv images/.htaccess $fs/var/lib/mediawiki
37 rmdir images
38 ln -sf /var/lib/mediawiki images
39 }