wok view mediawiki/receipt @ rev 25386

updated unrar (5.9.2 -> 6.1.7)
author Hans-G?nter Theisgen
date Sat Jul 30 17:51:49 2022 +0100 (2022-07-30)
parents 241fb98cab1c
children 4f02a37747b4
line source
1 # SliTaz package receipt.
3 PACKAGE="mediawiki"
4 VERSION="1.37.2"
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="https://releases.wikimedia.org/$PACKAGE/${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 }