summaryrefslogtreecommitdiffstats
path: root/network/monkey/monkey.SlackBuild
diff options
context:
space:
mode:
author Sergey Fedosoff <eleksir@gmail.com>2015-03-14 06:04:44 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2015-03-14 06:04:44 +0700
commita4dce0e590070f106c056716de749a98967afb46 (patch)
tree6cd22b93dd3a943f0a22b91d4a373c6e3c03e83b /network/monkey/monkey.SlackBuild
parenta8a0566fc7d98654c87ca08b67accea7a7540c71 (diff)
downloadslackbuilds-a4dce0e590070f106c056716de749a98967afb46.tar.gz
slackbuilds-a4dce0e590070f106c056716de749a98967afb46.tar.xz
network/monkey: Updated for version 1.5.6.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/monkey/monkey.SlackBuild')
-rw-r--r--network/monkey/monkey.SlackBuild31
1 files changed, 10 insertions, 21 deletions
diff --git a/network/monkey/monkey.SlackBuild b/network/monkey/monkey.SlackBuild
index 92ff7b313a..efbb0094e0 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.5.2}
+VERSION=${VERSION:-1.5.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -75,6 +75,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+patch -p1 --verbose -i $CWD/config_values_fix.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -101,35 +103,22 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-# 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
+# out of the box logging is disabled (and looks like this part in configure script is broken),
+# enable it to audit http server's life
sed -i 's/# Load \/usr\/lib\/monkey\/monkey\-logger\.so/Load \/usr\/lib\/monkey\/monkey\-logger\.so/g' $PKG/etc/monkey/plugins.load
# make log dir
mkdir -p $PKG/var/log/monkey
+# make run dir
+mkdir -p $PKG/var/run/monkey
+
# move init script to it's dir
mkdir -p $PKG/etc/rc.d
-mv $PKG/usr/sbin/banana $PKG/etc/rc.d/rc.monkey.new
-
-# and fix it a bit
-sed -i 's/Use: \.\/banana OPTION/Use: \.\/rc.monkey OPTION/g' $PKG/etc/rc.d/rc.monkey.new
-sed -i 's/Options available to banana:/Options available to rc.monkey:/g' $PKG/etc/rc.d/rc.monkey.new
-sed -i 's/echo \"Use : banana/echo \"Use : \$0/g' $PKG/etc/rc.d/rc.monkey.new
+mv $PKG/usr/sbin/rc.monkey $PKG/etc/rc.d/rc.monkey.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README LICENSE ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README LICENSE NOTICE ChangeLog CONTRIBUTING.md $PKG/usr/doc/$PRGNAM-$VERSION
install -m 644 $CWD/$PRGNAM.SlackBuild $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/etc/logrotate.d