removed aur/monkey

This commit is contained in:
Kevin Mihelich 2014-09-04 03:09:33 +00:00
parent ed5f235c9a
commit 9e4c28fa2a
3 changed files with 0 additions and 85 deletions

View file

@ -1,37 +0,0 @@
#Maintainer: Christian Stankowic <info at stankowic hypen development dot net>
#Contributor: Gary Wright <wriggary at gmail dot com>
pkgname=monkey
pkgver=1.5.3
pkgrel=1
pkgdesc="A very small and fast open source web server for Linux"
arch=('i686' 'x86_64')
url="http://www.monkey-project.com/"
license=('Apache')
depends=('gcc-libs')
optdepends=('php' 'polarssl')
source=("http://www.monkey-project.com/releases/1.5/$pkgname-$pkgver.tar.gz"
monkey)
install=monkey.install
md5sums=('1fa9ddbb4c0100b22f2fc4b8da56dbe9'
'1527d1fbddddcfd69ad328639dcd0eed')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc/$pkgname --default-user=http --default-port=80 \
--datadir=/srv/http --logdir=/var/log/$pkgname --plugdir=/usr/lib/$pkgname --enable-shared --systemddir=$pkgdir/lib/systemd/system --pidfile=/var/run/monkey.pid --enable-plugins=polarssl
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
msg2 "Change default pid file location from /var/log to /var/run/monkey"
sed -i -e "s/\/var\/log\/monkey\/monkey.pid/\/var\/run\/monkey.pid/" $pkgdir/etc/monkey/monkey.conf
msg2 "Disabling user setting in monkey configuration file"
sed -i -e "s/User http/#User http/g" $pkgdir/etc/monkey/monkey.conf
install -Dm 755 "$srcdir/monkey" "$pkgdir/etc/rc.d/monkey"
}

View file

@ -1,32 +0,0 @@
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
DAEMON=monkey
PID=$(get_pid $DAEMON)
case "$1" in
start)
stat_busy "Starting $DAEMON"
[[ -z "$PID" ]] && /usr/bin/monkey -D &>/dev/null \
&& { add_daemon $DAEMON; stat_done; } \
|| { stat_fail; exit 1; }
;;
stop)
stat_busy "Stopping $DAEMON"
[[ ! -z "$PID" ]] && kill $PID &>/dev/null \
&& { rm_daemon $DAEMON; stat_done; } \
|| { stat_fail; exit 1; }
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
;;
esac
exit 0

View file

@ -1,16 +0,0 @@
post_install() {
env echo
env echo " Running Monkey :"
env echo " ----------------"
env echo
env echo " # /usr/bin/monkey"
env echo
env echo " For more help use '-h' option"
env echo
env echo " System wide rc script located at:"
env echo
env echo " # /etc/rc.d/monkey {start|stop|restart}"
env echo
env echo " Don't forget to modify /lib/systemd/system/monkey.service (PIDFile) if you're using systemd and want to change the default port (80)"
}