Adding aur/monkey for winestock on forums

This commit is contained in:
Mike Brown 2012-12-14 04:28:07 -05:00
parent 29bbcacc31
commit 1de52c046f
3 changed files with 73 additions and 0 deletions

27
aur/monkey/PKGBUILD Normal file
View file

@ -0,0 +1,27 @@
#Maintainer: Christian Stankowic <info at stankowic hypen development dot net>
#Contributor: Gary Wright <wriggary at gmail dot com>
pkgname=monkey
pkgver=1.1.1
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=('GPL2')
depends=('gcc-libs')
optdepends=('php')
source=("http://www.monkey-project.com/releases/1.1/$pkgname-$pkgver.tar.gz"
monkey)
install=monkey.install
md5sums=('958d74ddcc595ae01b1d3916e9e7753c'
'1527d1fbddddcfd69ad328639dcd0eed')
build() {
cd $srcdir/$pkgname-$pkgver
./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc/$pkgname \
--datadir=/srv/http --logdir=/var/log/$pkgname \
--plugdir=/usr/lib/$pkgname
make
make DESTDIR=$pkgdir install
install -d $pkgdir/etc/rc.d/
install -m 755 ../monkey $pkgdir/etc/rc.d/monkey
}

32
aur/monkey/monkey Executable file
View file

@ -0,0 +1,32 @@
#!/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

14
aur/monkey/monkey.install Normal file
View file

@ -0,0 +1,14 @@
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}"
}