diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-09-04 20:27:34 +0000 |
---|---|---|
committer | Bartłomiej Piotrowski <b@bpiotrowski.pl> | 2013-09-08 14:29:33 +0200 |
commit | a135a46edc9b89ad7c9518c3fd86bd6ebe5883b4 (patch) | |
tree | 605d7ec9dd9c8ae28595333a0b957a4a0f99be9f /testing/monkey | |
parent | 1f538a8d8f22a8f7c2a98889d75431cb4c950f0a (diff) | |
download | aports-a135a46edc9b89ad7c9518c3fd86bd6ebe5883b4.tar.bz2 aports-a135a46edc9b89ad7c9518c3fd86bd6ebe5883b4.tar.xz |
testing/monkey: upgrade to 1.2.0
Diffstat (limited to 'testing/monkey')
-rw-r--r-- | testing/monkey/APKBUILD | 75 |
1 files changed, 40 insertions, 35 deletions
diff --git a/testing/monkey/APKBUILD b/testing/monkey/APKBUILD index e4d91e2828..32f2bc7529 100644 --- a/testing/monkey/APKBUILD +++ b/testing/monkey/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> pkgname=monkey -pkgver=1.1.1 +pkgver=1.2.0 pkgrel=0 pkgdesc='A fast and lightweight HTTP server designed for embedded devices.' url='http://monkey-project.com/' @@ -9,53 +9,58 @@ license='GPL2' arch='all' makedepends='bash findutils' subpackages="$pkgname-doc" -source="http://monkey-project.com/releases/1.1/$pkgname-$pkgver.tar.gz - strsignal.patch - monkey.initd - monkey.confd" +source="$pkgname-$pkgver.tar.gz::https://github.com/edsiper/monkey/archive/v$pkgver.tar.gz + strsignal.patch + monkey.initd + monkey.confd" +_builddir="$srcdir"/$pkgname-$pkgver prepare() { - cd "$srcdir"/$pkgname-$pkgver + cd "$_builddir" - # Use POSIX-compliant strsignal instead SYS_SIGLIST - patch -Np0 -i "$srcdir"/strsignal.patch || return 1 + # Use POSIX-compliant strsignal instead SYS_SIGLIST + patch -Np0 -i "$srcdir"/strsignal.patch || return 1 - # Don't install the banana script, use OpenRC daemon instead - sed -i '/install -m 755 bin\/banana/d' configure || return 1 - rm man/banana.1 || return 1 + # Don't install the banana script, use OpenRC daemon instead + sed -i '/install -m 755 bin\/banana/d' configure || return 1 + rm man/banana.1 || return 1 - # Run monkey as http user - sed -i '737s/nobody/http/' configure || return 1 + # Run monkey as http user + sed -i '737s/nobody/http/' configure || return 1 } - build() { - cd "$srcdir"/$pkgname-$pkgver - - ./configure \ - --prefix=/usr \ - --bindir=/usr/bin \ - --sysconfdir=/etc/$pkgname \ - --mandir=/usr/share/man \ - --datadir=/var/www \ - --logdir=/var/log/$pkgname \ - --plugdir=/usr/lib/$pkgname \ - || return 1 - - make || return 1 + cd "$_builddir" + ./configure \ + --prefix=/usr \ + --bindir=/usr/bin \ + --sysconfdir=/etc/$pkgname \ + --mandir=/usr/share/man \ + --datadir=/var/www \ + --logdir=/var/log/$pkgname \ + --plugdir=/usr/lib/$pkgname \ + || return 1 + make || return 1 } package() { - cd "$srcdir"/$pkgname-$pkgver - make DESTDIR=$pkgdir install || return 1 - - install -D -m0755 "$srcdir"/monkey.initd \ - "$pkgdir"/etc/init.d/monkey || return 1 - install -D -m0644 "$srcdir"/monkey.confd \ - "$pkgdir"/etc/conf.d/monkey || return 1 + cd "$_builddir" + make DESTDIR=$pkgdir install || return 1 + install -D -m0755 "$srcdir"/monkey.initd \ + "$pkgdir"/etc/init.d/monkey || return 1 + install -D -m0644 "$srcdir"/monkey.confd \ + "$pkgdir"/etc/conf.d/monkey || return 1 } -md5sums="958d74ddcc595ae01b1d3916e9e7753c monkey-1.1.1.tar.gz +md5sums="a0fbe7d2dcac3926cb110de8d9ff9745 monkey-1.2.0.tar.gz 4e99ccbfbd00b17023c7b82e466c7aee strsignal.patch 6630131d3ea75dbbf1033a4acc8cf983 monkey.initd 71805f446a12d747c52e18b8ac4b4704 monkey.confd" +sha256sums="025a5eae862dfad305a9ad9eade5bc96c0b9d308e4abb4e985d3336fb3c64184 monkey-1.2.0.tar.gz +a17e87f9a0babc118d034d852345e7095fa47e8be954548ab1fcae0166a2ca16 strsignal.patch +00a880f8f8190649642a99939180e6b987706712b9b2479b7ec74311a31ca34d monkey.initd +bfd675e83ea839282fa60ff7b137933b47e4beeed3f22703a79d4201580de508 monkey.confd" +sha512sums="f136667c51bef1a25731bf0accd1b56ccfd74da3b6d295f8f61dbd8f1921f727125d3a40770edf205736e8d4751bffae8142ea30028adbd90af93558315ff169 monkey-1.2.0.tar.gz +936f84b64fae4af20b6f90f9be6772fad6a3717bf7c349873cd0d5a4591830bc29e7956a43e0708f24c353e8d2205809b9ae6b0b197fe9dfcb4aeb788866476f strsignal.patch +2ec82ae2b76dcc0a792c12b3cee57feedfdb34117975cf5f245e90775e0543ddd8c072ac935de57d6e37753e92a8019e699d636d7f7aaebecb612dbcbf6f5bc0 monkey.initd +8ca7312a80440e908ef8c6297870411f4978c56fe8ad09589d1bb56e9d545d086a53f07120d5cc14c6042a83755730ac6fc4839020a5159eb054eb34d3f264e7 monkey.confd" |