diff options
Diffstat (limited to 'network/monkey/monkey.SlackBuild')
-rw-r--r-- | network/monkey/monkey.SlackBuild | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/network/monkey/monkey.SlackBuild b/network/monkey/monkey.SlackBuild index 8e21fe5a46631..92ff7b313abaf 100644 --- a/network/monkey/monkey.SlackBuild +++ b/network/monkey/monkey.SlackBuild @@ -29,7 +29,7 @@ # and libev script by Šime Ramov <s@ramov.com> PRGNAM=monkey -VERSION=${VERSION:-1.4.0} +VERSION=${VERSION:-1.5.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -84,10 +84,13 @@ CXXFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc/monkey \ --datadir=/var/www/monkey \ --logdir=/var/log/monkey \ + --pidfile=/var/run/monkey/monkey.pid \ + --malloc-libc \ --bindir=/usr/sbin \ --plugdir=/usr/lib${LIBDIRSUFFIX}/monkey \ --default-port=80 \ - --default-user=apache + --default-user=apache \ + --safe-free make make install DESTDIR=$PKG @@ -100,6 +103,14 @@ for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; r # fix PID-file path and make empty dir under /var/run sed -i 's/\/var\/log\/monkey\/monkey.pid/\/var\/run\/monkey\/monkey.pid/g' $PKG/etc/monkey/monkey.conf +# Hide version of http daemon +sed -i 's/HideVersion off/HideVersion on/g' $PKG/etc/monkey/monkey.conf +# Enable use of symlinks - it _is_ a good and usable feature +sed -i 's/SymLink Off/SymLink On/g' $PKG/etc/monkey/monkey.conf +# Php via CGI if EVIL, not feature, disable it +sed -i 's/Match \/\.\*\\\.php/#Match \/\.\*\\\.php/g' $PKG/etc/monkey/plugins/cgi/cgi.conf + + mkdir -p $PKG/var/run/monkey # out of the box logging is disabled, enable it to audit http server's life |