PKGBUILDs/aur/monkey/PKGBUILD

39 lines
1.2 KiB
Bash
Raw Normal View History

#Maintainer: Christian Stankowic <info at stankowic hypen development dot net>
#Contributor: Gary Wright <wriggary at gmail dot com>
pkgname=monkey
2014-02-11 01:08:17 +00:00
pkgver=1.4.0
2013-06-24 01:38:04 +00:00
pkgrel=1
pkgdesc="A very small and fast open source web server for Linux"
2014-02-11 01:08:17 +00:00
arch=('i686' 'x86_64')
url="http://www.monkey-project.com/"
license=('GPL2')
depends=('gcc-libs')
optdepends=('php')
2014-02-11 01:08:17 +00:00
source=("http://www.monkey-project.com/releases/1.4/$pkgname-$pkgver.tar.gz"
monkey
monkey.service)
install=monkey.install
2014-02-11 01:08:17 +00:00
md5sums=('c17e394b985ead873fc7e7cb2a05cef7'
'1527d1fbddddcfd69ad328639dcd0eed'
'ae1f2da03aa2a515a3bed0fb16ab7130')
build() {
cd $srcdir/$pkgname-$pkgver
2014-02-11 01:08:17 +00:00
./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc/$pkgname --default-user=http --default-port=80 \
--datadir=/srv/http --logdir=/var/log/$pkgname \
2013-06-02 07:22:41 +00:00
--plugdir=/usr/lib/$pkgname
make
2014-02-11 01:08:17 +00:00
}
2013-06-02 07:22:41 +00:00
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
2014-02-11 01:08:17 +00:00
msg2 "Change default pid file location from /var/log to /var/run/monkey"
2013-06-02 07:22:41 +00:00
sed -i -e "s/\/var\/log\/monkey\/monkey.pid/\/var\/run\/monkey.pid/" $pkgdir/etc/monkey/monkey.conf
2013-06-02 07:22:41 +00:00
install -Dm 755 "$srcdir/monkey" "$pkgdir/etc/rc.d/monkey"
install -Dm 644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
}