blob: 5a99dd0b3f56d899af4111f1fc8187a49af163b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Contributor: Łukasz Jendrysik
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=monit
pkgver=5.17.1
pkgrel=0
pkgdesc="Managing and monitoring on a UNIX system"
url="http://mmonit.com/monit/"
arch="all"
license="AGPL"
depends=""
depends_dev="openssl-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://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 \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm 755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
install -Dm 644 "$_builddir"/monitrc \
"$pkgdir"/etc/monitrc
sed -i '/allow @monit/s/^/#/' \
"$pkgdir"/etc/monitrc || return 1
sed -i '/allow @users readonly/s/^/#/' \
"$pkgdir"/etc/monitrc || return 1
# monit checks for strict permissions of monitrc at startup
chmod 600 "$pkgdir"/etc/monitrc
}
md5sums="6918ed7411a244c9e158f5e54c86be78 monit-5.17.1.tar.gz
ada1805dc5f01d1ce7b8592955607674 monit.initd"
sha256sums="f71a22cfb6bd91ff46496e72e1d1b1021ecd651e7748131ce0f995cc37ff0b42 monit-5.17.1.tar.gz
aff2f2303aa15d6421dc9ace86099f2e1c46b7740421ebda1fbd28da8a0b3a4b monit.initd"
sha512sums="e28534ce3a5a95eac70f05c34b5a8545a0eb925ac90f82f71bcea8f3568be45288ddbd196c2352a390820244143511ecf2e0de21cdcab1dd2f3e4788dad71015 monit-5.17.1.tar.gz
94d67a995c6028d48cb729a60157ab42f2a3c15d59284f1de56c35b44bf83929ba9c42a5cbfe3bb4df0def70465cf3dff0ad6e532b6a02805840dc57785e1cc9 monit.initd"
|