diff options
Diffstat (limited to 'network/dokuwiki/dokuwiki.SlackBuild')
-rw-r--r-- | network/dokuwiki/dokuwiki.SlackBuild | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/network/dokuwiki/dokuwiki.SlackBuild b/network/dokuwiki/dokuwiki.SlackBuild index 13d2926e6ae3c..89f16ce8b5147 100644 --- a/network/dokuwiki/dokuwiki.SlackBuild +++ b/network/dokuwiki/dokuwiki.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Slackware build script for dokuwiki -# Copyright 2014 Giorgio Peron <giorgio.peron@gmail.com>, Campodarsego, PD, Italy +# Copyright 2015 Giorgio Peron <giorgio.peron@gmail.com>, Campodarsego, PD, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,8 +22,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=${PRGNAM:-dokuwiki} -VERSION=${VERSION:-20140505a} -SRCVERSION=${SRCVERSION:-2014-05-05a} +VERSION=${VERSION:-20150810a} +SRCVERSION=${SRCVERSION:-2015-08-10a} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -50,11 +50,17 @@ mkdir -p $PKG/etc/httpd/extra cat > $PKG/etc/httpd/extra/httpd-dokuwiki.conf <<'EOF' Alias /dokuwiki /srv/www/dokuwiki <Directory /srv/www/dokuwiki/> + DirectoryIndex index.php Options +FollowSymLinks AllowOverride All Require all granted php_admin_value open_basedir "/srv/www/:/srv/www/dokuwiki/lib/" </Directory> +<LocationMatch "/srv/www/dokuwiki/(data|conf|bin|inc)/"> + order allow,deny + deny from all + satisfy all +</LocationMatch> EOF mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -62,6 +68,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |