wok-next view mediawiki/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 68d93367f930
children
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="devel@slitaz.org"
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 }