wok-current view mediawiki/receipt @ rev 21881

warmux: fix build
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 29 18:44:01 2019 +0200 (2019-09-29)
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 }