# Contributor: Ɓukasz Jendrysik # Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=monit pkgver=5.25.3 pkgrel=0 pkgdesc="Managing and monitoring on a UNIX system" url="https://mmonit.com/monit/" arch="all" license="AGPL-3.0-or-later" makedepends="openssl-dev zlib-dev" subpackages="$pkgname-doc $pkgname-openrc" source="https://mmonit.com/monit/dist/monit-$pkgver.tar.gz $pkgname.initd" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --without-pam make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -Dm 755 "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname install -Dm 644 "$builddir"/monitrc \ "$pkgdir"/etc/monitrc sed -i '/allow @monit/s/^/#/' \ "$pkgdir"/etc/monitrc sed -i '/allow @users readonly/s/^/#/' \ "$pkgdir"/etc/monitrc # monit checks for strict permissions of monitrc at startup chmod 600 "$pkgdir"/etc/monitrc } sha512sums="9030b8e6a02eeaf497382f14f7cf855a96599ab060130f077208edd5db35fee1b74f9166df4deff87b4a1954c8d4fff83b5465166938a3f8aea8d4d4c0371e90 monit-5.25.3.tar.gz 94d67a995c6028d48cb729a60157ab42f2a3c15d59284f1de56c35b44bf83929ba9c42a5cbfe3bb4df0def70465cf3dff0ad6e532b6a02805840dc57785e1cc9 monit.initd"