wok-next diff mediawiki/receipt @ rev 21013
Small updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Oct 14 05:29:23 2018 +0300 (2018-10-14) |
parents | 02efefc5d9de |
children | d5aab818505e |
line diff
1.1 --- a/mediawiki/receipt Sat Aug 10 21:37:32 2013 +0000 1.2 +++ b/mediawiki/receipt Sun Oct 14 05:29:23 2018 +0300 1.3 @@ -1,35 +1,42 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="mediawiki" 1.8 -VERSION="1.19.0" 1.9 +VERSION="1.30.0" 1.10 CATEGORY="network" 1.11 SHORT_DESC="MediaWiki engine" 1.12 MAINTAINER="slaxemulator@gmail.com" 1.13 LICENSE="GPL2" 1.14 -WEB_SITE="http://www.mediawiki.org/wiki/MediaWiki" 1.15 +WEB_SITE="https://www.mediawiki.org/wiki/MediaWiki" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 -WGET_URL="http://download.wikimedia.org/mediawiki/${VERSION:0:4}/$TARBALL" 1.19 +WGET_URL="https://releases.wikimedia.org/mediawiki/${VERSION%.*}/$TARBALL" 1.20 1.21 -DEPENDS="php" 1.22 +compile_rules() { 1.23 + mkdir -p \ 1.24 + $install/usr/share/webapps \ 1.25 + $install/etc/webapps/mediawiki 1.26 1.27 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.28 -genpkg_rules() 1.29 -{ 1.30 - mkdir -p $fs/usr/share/webapps $fs/etc/webapps/mediawiki 1.31 - cp -a $src $fs/usr/share/webapps/mediawiki 1.32 - sed -i -e 's#is_executable#is_file#' -e 's#is_executable#is_file#'$fs/includes/Math.php 1.33 - echo "deny from all" >> $fs/etc/webapps/mediawiki/.htaccess 1.34 - ln -sf /etc/webapps/mediawiki/.htaccess $fs/usr/share/webapps/mediawiki/.htaccess 1.35 + cp -a $src $install/usr/share/webapps/mediawiki 1.36 + rm -r $install/usr/share/webapps/mediawiki/tests 1.37 + 1.38 + echo "Deny from all" >> $install/usr/share/webapps/mediawiki/.htaccess 1.39 + echo "Deny from all" >> $install/etc/webapps/mediawiki/.htaccess 1.40 + 1.41 # move cache and images to /var 1.42 - install -vdm0755 -o www -g www $fs/var/cache/mediawiki 1.43 - install -vdm0755 -o www -g www $fs/var/lib/mediawiki 1.44 - cd $fs/usr/share/webapps/mediawiki 1.45 - mv cache/.htaccess $fs/var/cache/mediawiki 1.46 - rmdir cache 1.47 - ln -sf /var/cache/mediawiki cache 1.48 - 1.49 - mv images/* $fs/var/lib/mediawiki 1.50 - mv images/.htaccess $fs/var/lib/mediawiki 1.51 - rmdir images 1.52 - ln -sf /var/lib/mediawiki images 1.53 + mkdir -p $install/var/cache/ 1.54 + mv $install/usr/share/webapps/mediawiki/cache $install/var/cache/mediawiki 1.55 + ln -s /var/cache/mediawiki $install/usr/share/webapps/mediawiki/cache 1.56 + 1.57 + mkdir -p $install/var/lib/ 1.58 + mv $install/usr/share/webapps/mediawiki/images $install/var/lib/mediawiki 1.59 + ln -s /var/lib/mediawiki $install/usr/share/webapps/mediawiki/images 1.60 + 1.61 + chown -R www:www $install/var/cache/mediawiki $install/var/lib/mediawiki 1.62 + 1.63 + fix symlinks 1.64 } 1.65 + 1.66 +genpkg_rules() { 1.67 + copy @std 1.68 + DEPENDS="php" 1.69 +}