network/monkey: Updated for version 1.5.2.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
parent
158c085840
commit
9f45c4305d
|
@ -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
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="monkey"
|
||||
VERSION="1.4.0"
|
||||
VERSION="1.5.2"
|
||||
HOMEPAGE="http://monkey-project.com/"
|
||||
DOWNLOAD="http://monkey-project.com/releases/1.4/monkey-1.4.0.tar.gz"
|
||||
MD5SUM="c17e394b985ead873fc7e7cb2a05cef7"
|
||||
DOWNLOAD="http://monkey-project.com/releases/1.5/monkey-1.5.2.tar.gz"
|
||||
MD5SUM="c90ccba23a814265c7e0fd3a75f883fd"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
|
@ -8,6 +8,10 @@
|
|||
postrotate
|
||||
# kill -HUP `cat /var/run/monkey/monkey.pid.*`
|
||||
# Handling of SIGHUP is not implemented yet, but they promise make it like apache httpd
|
||||
/etc/rc.d/rc.monkey restart
|
||||
PATH=/usr/sbin:/sbin:/usr/bin:/bin
|
||||
pgrep -u apache -x monkey 1>/dev/null 2>/dev/null
|
||||
if [ $? != '0' ]; then
|
||||
/etc/rc.d/rc.monkey restart
|
||||
fi
|
||||
endscript
|
||||
}
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
|-----handy-ruler------------------------------------------------------|
|
||||
monkey: monkey (web server)
|
||||
monkey:
|
||||
monkey: Monkey is a lightweight and powerful web server and development
|
||||
monkey: ostack for GNU/Linux.
|
||||
monkey: Monkey is a lightweight and powerful web server and development stack
|
||||
monkey: for GNU/Linux.
|
||||
monkey:
|
||||
monkey: It has been designed to be very scalable with low memory and CPU
|
||||
monkey: consumption, the perfect solution for embedded devices.
|
||||
|
|
Loading…
Reference in New Issue