wok-next view mediawiki/receipt @ rev 20972
Improve Python packages: update, also provide Python3 packages where available
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Sep 22 16:05:26 2018 +0300 (2018-09-22) |
parents | 02efefc5d9de |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mediawiki"
4 VERSION="1.30.0"
5 CATEGORY="network"
6 SHORT_DESC="MediaWiki engine"
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.mediawiki.org/wiki/MediaWiki"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://releases.wikimedia.org/mediawiki/${VERSION%.*}/$TARBALL"
14 compile_rules() {
15 mkdir -p \
16 $install/usr/share/webapps \
17 $install/etc/webapps/mediawiki
19 cp -a $src $install/usr/share/webapps/mediawiki
20 rm -r $install/usr/share/webapps/mediawiki/tests
22 echo "Deny from all" >> $install/usr/share/webapps/mediawiki/.htaccess
23 echo "Deny from all" >> $install/etc/webapps/mediawiki/.htaccess
25 # move cache and images to /var
26 mkdir -p $install/var/cache/
27 mv $install/usr/share/webapps/mediawiki/cache $install/var/cache/mediawiki
28 ln -s /var/cache/mediawiki $install/usr/share/webapps/mediawiki/cache
30 mkdir -p $install/var/lib/
31 mv $install/usr/share/webapps/mediawiki/images $install/var/lib/mediawiki
32 ln -s /var/lib/mediawiki $install/usr/share/webapps/mediawiki/images
34 chown -R www:www $install/var/cache/mediawiki $install/var/lib/mediawiki
36 fix symlinks
37 }
39 genpkg_rules() {
40 copy @std
41 DEPENDS="php"
42 }