wok-6.x annotate mediawiki/receipt @ rev 22179
linld: spare up to 30k more for zImage (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Nov 09 13:26:32 2019 +0100 (2019-11-09) |
parents | d52746146def |
children | c9ea8c14470e |
rev | line source |
---|---|
slaxemulator@13200 | 1 # SliTaz package receipt. |
slaxemulator@13200 | 2 |
slaxemulator@13200 | 3 PACKAGE="mediawiki" |
Hans-G?nter@21428 | 4 VERSION="1.32.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 |
slaxemulator@13200 | 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 |
slaxemulator@13200 | 28 install -vdm0755 -o www -g www $fs/var/cache/mediawiki |
slaxemulator@13200 | 29 install -vdm0755 -o www -g www $fs/var/lib/mediawiki |
slaxemulator@13200 | 30 cd $fs/usr/share/webapps/mediawiki |
slaxemulator@13200 | 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 |
slaxemulator@13200 | 35 mv images/* $fs/var/lib/mediawiki |
slaxemulator@13200 | 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 } |