wok annotate mediawiki/receipt @ rev 23803
updated awesome (3.5.1 -> 4.3)
author | Hans-G?nter Theisgen |
---|---|
date | Sun May 24 07:53:22 2020 +0100 (2020-05-24) |
parents | bfa214816a4c |
children | 3ae2d1f7b186 |
rev | line source |
---|---|
slaxemulator@13200 | 1 # SliTaz package receipt. |
slaxemulator@13200 | 2 |
slaxemulator@13200 | 3 PACKAGE="mediawiki" |
Hans-G?nter@23171 | 4 VERSION="1.34.0" |
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@21428 | 12 WGET_URL="http://download.wikimedia.org/mediawiki/${VERSION%.*}/$TARBALL" |
slaxemulator@13200 | 13 |
slaxemulator@13200 | 14 DEPENDS="php" |
slaxemulator@13200 | 15 |
slaxemulator@13200 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@13200 | 17 genpkg_rules() |
slaxemulator@13200 | 18 { |
Hans-G?nter@21428 | 19 mkdir -p $fs/usr/share/webapps |
Hans-G?nter@21428 | 20 mkdir -p $fs/etc/webapps/mediawiki |
Hans-G?nter@21428 | 21 |
Hans-G?nter@23171 | 22 cp -a $src $fs/usr/share/webapps/mediawiki |
Hans-G?nter@21429 | 23 # sed -i -e 's#is_executable#is_file#' $fs/includes/Math.php |
slaxemulator@13200 | 24 echo "deny from all" >> $fs/etc/webapps/mediawiki/.htaccess |
slaxemulator@13200 | 25 ln -sf /etc/webapps/mediawiki/.htaccess $fs/usr/share/webapps/mediawiki/.htaccess |
Hans-G?nter@21428 | 26 |
slaxemulator@13200 | 27 # move cache and images to /var |
Hans-G?nter@23171 | 28 install -vdm0755 -o www -g www $fs/var/cache/mediawiki |
Hans-G?nter@23171 | 29 install -vdm0755 -o www -g www $fs/var/lib/mediawiki |
slaxemulator@13200 | 30 cd $fs/usr/share/webapps/mediawiki |
Hans-G?nter@23171 | 31 mv cache/.htaccess $fs/var/cache/mediawiki |
slaxemulator@13200 | 32 rmdir cache |
slaxemulator@13200 | 33 ln -sf /var/cache/mediawiki cache |
slaxemulator@13200 | 34 |
Hans-G?nter@23171 | 35 mv images/* $fs/var/lib/mediawiki |
Hans-G?nter@23171 | 36 mv images/.htaccess $fs/var/lib/mediawiki |
slaxemulator@13200 | 37 rmdir images |
slaxemulator@13200 | 38 ln -sf /var/lib/mediawiki images |
slaxemulator@13200 | 39 } |