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

updated pam_ldap (185 -> 186)
author Hans-G?nter Theisgen
date Sat Mar 28 14:46:49 2020 +0100 (2020-03-28)
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 }