wok-current view mediawiki/receipt @ rev 23374
updated perl-net-http (6.03 -> 6.19)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 13:52:12 2020 +0100 (2020-03-31) |
parents | bfa214816a4c |
children | 3ae2d1f7b186 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mediawiki"
4 VERSION="1.34.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 }