mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-27 23:44:04 +00:00
aur/monkey to 1.2.0
This commit is contained in:
parent
86b2d671ce
commit
e67168446c
1 changed files with 21 additions and 13 deletions
|
@ -8,19 +8,19 @@
|
|||
# -added fastcgi support
|
||||
|
||||
pkgname=monkey
|
||||
pkgver=1.1.1
|
||||
pkgrel=5
|
||||
pkgver=1.2.0
|
||||
pkgrel=1
|
||||
pkgdesc="A very small and fast open source web server for Linux"
|
||||
arch=('arm')
|
||||
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"
|
||||
source=("http://www.monkey-project.com/releases/$(echo $pkgver |cut -c 1-3)/$pkgname-$pkgver.tar.gz"
|
||||
monkey
|
||||
monkey.service)
|
||||
install=monkey.install
|
||||
md5sums=('958d74ddcc595ae01b1d3916e9e7753c'
|
||||
md5sums=('fe396fddccd84749138cc15e2ab4023d'
|
||||
'1527d1fbddddcfd69ad328639dcd0eed'
|
||||
'ae1f2da03aa2a515a3bed0fb16ab7130')
|
||||
|
||||
|
@ -28,17 +28,25 @@ build() {
|
|||
cd $srcdir/$pkgname-$pkgver
|
||||
./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc/$pkgname \
|
||||
--datadir=/srv/http --logdir=/var/log/$pkgname \
|
||||
--enable-plugins=fastcgi --plugdir=/usr/lib/$pkgname
|
||||
--plugdir=/usr/lib/$pkgname
|
||||
make
|
||||
}
|
||||
|
||||
|
||||
package() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
|
||||
# msg2 "Fix typo in Makefile"
|
||||
# sed -i -e "s/src\/libmonkey.so.1.2/src\/libmonkey.so/" $srcdir/$pkgname-$pkgver/Makefile
|
||||
|
||||
make DESTDIR=$pkgdir install
|
||||
|
||||
#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/" $startdir/pkg/etc/monkey/monkey.conf
|
||||
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
|
||||
|
||||
#change default port to 80
|
||||
sed -i -e "s/Port\ 2001/Port\ 80/" $startdir/pkg/etc/monkey/monkey.conf
|
||||
|
||||
install -d $pkgdir/etc/rc.d/
|
||||
install -m 755 ../monkey $pkgdir/etc/rc.d/monkey
|
||||
install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
||||
msg2 "change default port to 80"
|
||||
sed -i -e "s/Port\ 2001/Port\ 80/" $pkgdir/etc/monkey/monkey.conf
|
||||
|
||||
install -Dm 755 "$srcdir/monkey" "$pkgdir/etc/rc.d/monkey"
|
||||
install -Dm 644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue