wok-next annotate mediawiki/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 68d93367f930 |
children |
rev | line source |
---|---|
al@20767 | 1 # SliTaz package receipt v2. |
slaxemulator@13200 | 2 |
slaxemulator@13200 | 3 PACKAGE="mediawiki" |
al@20767 | 4 VERSION="1.30.0" |
slaxemulator@13200 | 5 CATEGORY="network" |
slaxemulator@13200 | 6 SHORT_DESC="MediaWiki engine" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15003 | 8 LICENSE="GPL2" |
al@20767 | 9 WEB_SITE="https://www.mediawiki.org/wiki/MediaWiki" |
al@20767 | 10 |
slaxemulator@13200 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20767 | 12 WGET_URL="https://releases.wikimedia.org/mediawiki/${VERSION%.*}/$TARBALL" |
slaxemulator@13200 | 13 |
al@20767 | 14 compile_rules() { |
al@20767 | 15 mkdir -p \ |
al@20767 | 16 $install/usr/share/webapps \ |
al@20767 | 17 $install/etc/webapps/mediawiki |
slaxemulator@13200 | 18 |
al@20767 | 19 cp -a $src $install/usr/share/webapps/mediawiki |
al@20767 | 20 rm -r $install/usr/share/webapps/mediawiki/tests |
al@20767 | 21 |
al@20767 | 22 echo "Deny from all" >> $install/usr/share/webapps/mediawiki/.htaccess |
al@20767 | 23 echo "Deny from all" >> $install/etc/webapps/mediawiki/.htaccess |
al@20767 | 24 |
slaxemulator@13200 | 25 # move cache and images to /var |
al@20767 | 26 mkdir -p $install/var/cache/ |
al@20767 | 27 mv $install/usr/share/webapps/mediawiki/cache $install/var/cache/mediawiki |
al@20767 | 28 ln -s /var/cache/mediawiki $install/usr/share/webapps/mediawiki/cache |
al@20767 | 29 |
al@20767 | 30 mkdir -p $install/var/lib/ |
al@20767 | 31 mv $install/usr/share/webapps/mediawiki/images $install/var/lib/mediawiki |
al@20767 | 32 ln -s /var/lib/mediawiki $install/usr/share/webapps/mediawiki/images |
al@20767 | 33 |
al@20767 | 34 chown -R www:www $install/var/cache/mediawiki $install/var/lib/mediawiki |
al@20767 | 35 |
al@20767 | 36 fix symlinks |
slaxemulator@13200 | 37 } |
al@20767 | 38 |
al@20767 | 39 genpkg_rules() { |
al@20767 | 40 copy @std |
al@20767 | 41 DEPENDS="php" |
al@20767 | 42 } |