wok-6.x annotate mediawiki/receipt @ rev 25426
updated xalan-c and xalan-c-dev (1.11 -> 1.12.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 18 16:42:41 2022 +0100 (2022-08-18) |
parents | 241fb98cab1c |
children |
rev | line source |
---|---|
slaxemulator@13200 | 1 # SliTaz package receipt. |
slaxemulator@13200 | 2 |
slaxemulator@13200 | 3 PACKAGE="mediawiki" |
Hans-G?nter@24899 | 4 VERSION="1.37.2" |
slaxemulator@13200 | 5 CATEGORY="network" |
Hans-G?nter@21428 | 6 SHORT_DESC="MediaWiki engine." |
slaxemulator@13200 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15003 | 8 LICENSE="GPL2" |
pascal@20671 | 9 WEB_SITE="https://www.mediawiki.org/wiki/MediaWiki" |
Hans-G?nter@21428 | 10 |
slaxemulator@13200 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@24899 | 12 WGET_URL="https://releases.wikimedia.org/$PACKAGE/${VERSION%.*}/$TARBALL" |
slaxemulator@13200 | 13 |
slaxemulator@13200 | 14 DEPENDS="php" |
slaxemulator@13200 | 15 |
pascal@24453 | 16 # What is the latest version available today? |
pascal@24453 | 17 current_version() |
pascal@24453 | 18 { |
pascal@24453 | 19 wget -O - https://www.mediawiki.org/wiki/Download 2>/dev/null | \ |
pascal@24453 | 20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q |
pascal@24453 | 21 } |
pascal@24453 | 22 |
slaxemulator@13200 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@13200 | 24 genpkg_rules() |
slaxemulator@13200 | 25 { |
Hans-G?nter@21428 | 26 mkdir -p $fs/usr/share/webapps |
Hans-G?nter@21428 | 27 mkdir -p $fs/etc/webapps/mediawiki |
Hans-G?nter@21428 | 28 |
Hans-G?nter@23171 | 29 cp -a $src $fs/usr/share/webapps/mediawiki |
Hans-G?nter@21429 | 30 # sed -i -e 's#is_executable#is_file#' $fs/includes/Math.php |
slaxemulator@13200 | 31 echo "deny from all" >> $fs/etc/webapps/mediawiki/.htaccess |
slaxemulator@13200 | 32 ln -sf /etc/webapps/mediawiki/.htaccess $fs/usr/share/webapps/mediawiki/.htaccess |
Hans-G?nter@21428 | 33 |
slaxemulator@13200 | 34 # move cache and images to /var |
Hans-G?nter@23171 | 35 install -vdm0755 -o www -g www $fs/var/cache/mediawiki |
Hans-G?nter@23171 | 36 install -vdm0755 -o www -g www $fs/var/lib/mediawiki |
Hans-G?nter@24899 | 37 cd $fs/usr/share/webapps/mediawiki |
Hans-G?nter@23171 | 38 mv cache/.htaccess $fs/var/cache/mediawiki |
slaxemulator@13200 | 39 rmdir cache |
slaxemulator@13200 | 40 ln -sf /var/cache/mediawiki cache |
slaxemulator@13200 | 41 |
Hans-G?nter@23171 | 42 mv images/* $fs/var/lib/mediawiki |
Hans-G?nter@23171 | 43 mv images/.htaccess $fs/var/lib/mediawiki |
slaxemulator@13200 | 44 rmdir images |
slaxemulator@13200 | 45 ln -sf /var/lib/mediawiki images |
slaxemulator@13200 | 46 } |