wok-6.x view mediawiki/receipt @ rev 24495
updated dolibarr again (10.0.6 -> 14.0.5)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 19 13:42:19 2022 +0100 (2022-02-19) |
parents | 3ae2d1f7b186 |
children | 60dbb8f0d88f |
line source
1 # SliTaz package receipt.
3 PACKAGE="mediawiki"
4 VERSION="1.34.1"
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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://www.mediawiki.org/wiki/Download 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/share/webapps
27 mkdir -p $fs/etc/webapps/mediawiki
29 cp -a $src $fs/usr/share/webapps/mediawiki
30 # sed -i -e 's#is_executable#is_file#' $fs/includes/Math.php
31 echo "deny from all" >> $fs/etc/webapps/mediawiki/.htaccess
32 ln -sf /etc/webapps/mediawiki/.htaccess $fs/usr/share/webapps/mediawiki/.htaccess
34 # move cache and images to /var
35 install -vdm0755 -o www -g www $fs/var/cache/mediawiki
36 install -vdm0755 -o www -g www $fs/var/lib/mediawiki
37 cd $fs/usr/share/webapps/mediawiki
38 mv cache/.htaccess $fs/var/cache/mediawiki
39 rmdir cache
40 ln -sf /var/cache/mediawiki cache
42 mv images/* $fs/var/lib/mediawiki
43 mv images/.htaccess $fs/var/lib/mediawiki
44 rmdir images
45 ln -sf /var/lib/mediawiki images
46 }