diff options
author | Sergey Fedosoff <eleksir@gmail.com> | 2014-07-28 19:01:26 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-08-03 16:32:42 +0700 |
commit | 9f45c4305dd612cfe7de85f30aab13edb7430b4b (patch) | |
tree | fd32490e2f948e4ac8394a37875b2a9ff97e5a73 /network/monkey/monkey.SlackBuild | |
parent | 158c085840177ab1474fdee29487d754d506973b (diff) | |
download | slackbuilds-9f45c4305dd612cfe7de85f30aab13edb7430b4b.tar.gz |
network/monkey: Updated for version 1.5.2.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
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 8e21fe5a46..92ff7b313a 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 |