diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-20 06:33:27 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-20 09:56:38 +0000 |
commit | cd78335ff61165f8eead3e6bce05e950e7d7c175 (patch) | |
tree | 7cbafe4718fd4df1038b6140a5cab0a626e0e753 /main/monit/APKBUILD | |
parent | 71198029dc35e993f75794a334d9fec2a2dd9c6c (diff) | |
download | aports-cd78335ff61165f8eead3e6bce05e950e7d7c175.tar.bz2 aports-cd78335ff61165f8eead3e6bce05e950e7d7c175.tar.xz |
main/monit: upgrade to 5.22.0, modernize APKBUILD
Diffstat (limited to 'main/monit/APKBUILD')
-rw-r--r-- | main/monit/APKBUILD | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/main/monit/APKBUILD b/main/monit/APKBUILD index 1441e3a4f3..c8448799b2 100644 --- a/main/monit/APKBUILD +++ b/main/monit/APKBUILD @@ -2,23 +2,25 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=monit -pkgver=5.20.0 -pkgrel=1 +pkgver=5.22.0 +pkgrel=0 pkgdesc="Managing and monitoring on a UNIX system" url="http://mmonit.com/monit/" arch="all" license="AGPL" -depends="" -depends_dev="" -makedepends="$depends_dev libressl-dev zlib-dev" -install="" +makedepends="libressl-dev zlib-dev" subpackages="$pkgname-doc" source="http://mmonit.com/monit/dist/monit-$pkgver.tar.gz $pkgname.initd" +builddir="$srcdir"/$pkgname-$pkgver + +check() { + cd "$builddir" + make check +} -_builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -26,30 +28,25 @@ build() { --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ - --without-pam \ - || return 1 - make || return 1 + --without-pam + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install install -Dm 755 "$srcdir"/$pkgname.initd \ - "$pkgdir"/etc/init.d/$pkgname || return 1 - install -Dm 644 "$_builddir"/monitrc \ + "$pkgdir"/etc/init.d/$pkgname + install -Dm 644 "$builddir"/monitrc \ "$pkgdir"/etc/monitrc sed -i '/allow @monit/s/^/#/' \ - "$pkgdir"/etc/monitrc || return 1 + "$pkgdir"/etc/monitrc sed -i '/allow @users readonly/s/^/#/' \ - "$pkgdir"/etc/monitrc || return 1 + "$pkgdir"/etc/monitrc # monit checks for strict permissions of monitrc at startup chmod 600 "$pkgdir"/etc/monitrc } -md5sums="769a44ee13b4e1f90156b58dc2f7ea7c monit-5.20.0.tar.gz -ada1805dc5f01d1ce7b8592955607674 monit.initd" -sha256sums="ebac395ec50c1ae64d568db1260bc049d0e0e624c00e79d7b1b9a59c2679b98d monit-5.20.0.tar.gz -aff2f2303aa15d6421dc9ace86099f2e1c46b7740421ebda1fbd28da8a0b3a4b monit.initd" -sha512sums="653cba9d63fad42acf8c27ee9c050d047fc78e0b7e8cdb0f3d0a533d5b5e01ccf1b82d443cb6518d286547087a021e37a59cbffedbb3daf49ff8f95e8c64b884 monit-5.20.0.tar.gz +sha512sums="d7325d463f92eb5e1d6c8cdae01cbf787c23799ac4dd79e66931fe47960d69dba0ed76afb0715be2e877dc42bf77cd73886f5080e10b87084cce4e0da5f71961 monit-5.22.0.tar.gz 94d67a995c6028d48cb729a60157ab42f2a3c15d59284f1de56c35b44bf83929ba9c42a5cbfe3bb4df0def70465cf3dff0ad6e532b6a02805840dc57785e1cc9 monit.initd" |