diff options
author | Jonathan Steel <jsteel@archlinux.org> | 2017-05-04 14:48:40 +0100 |
---|---|---|
committer | Jonathan Steel <jsteel@archlinux.org> | 2017-05-04 14:48:40 +0100 |
commit | 859eea34b10a6f60c39c150edc3e41e9146bea6e (patch) | |
tree | c20a2819e977c39d4005bd7e2c807d2e0833afad | |
parent | c39c145492ad0fa217df8285b5364cafdc236787 (diff) | |
download | AUR-859eea34b10a6f60c39c150edc3e41e9146bea6e.tar.gz AUR-859eea34b10a6f60c39c150edc3e41e9146bea6e.tar.zst AUR-859eea34b10a6f60c39c150edc3e41e9146bea6e.zip |
1.0.6
naemon-thruk has been moved out and is now packaged separately as thruk;
this is upstreams direction. naemon-livestatus no longer builds without
naemon-core so to keep packaging/building simple I've combined them into
"naemon".
-rw-r--r-- | .SRCINFO | 55 | ||||
-rw-r--r-- | PKGBUILD | 103 |
2 files changed, 54 insertions, 104 deletions
@@ -1,27 +1,27 @@ | |||
1 | # Generated by mksrcinfo v8 | 1 | # Generated by mksrcinfo v8 |
2 | # Wed Apr 27 20:26:08 UTC 2016 | 2 | # Thu May 4 13:48:32 UTC 2017 |
3 | pkgbase = naemon | 3 | pkgbase = naemon |
4 | pkgver = 1.0.3 | 4 | pkgdesc = System and network monitoring application |
5 | pkgrel = 2 | 5 | pkgver = 1.0.6 |
6 | pkgrel = 1 | ||
6 | url = http://naemon.org | 7 | url = http://naemon.org |
8 | install = naemon.install | ||
7 | arch = i686 | 9 | arch = i686 |
8 | arch = x86_64 | 10 | arch = x86_64 |
9 | license = GPL2 | 11 | license = GPL2 |
10 | makedepends = gperf | 12 | makedepends = gperf |
11 | makedepends = rsync | 13 | makedepends = help2man |
12 | makedepends = gd | ||
13 | makedepends = mariadb-clients | ||
14 | source = http://labs.consol.de/naemon/release/v1.0.3/src/naemon-1.0.3.tar.gz | ||
15 | source = naemon.service | ||
16 | md5sums = 0d6873669bd44375978c97174529e258 | ||
17 | md5sums = d6a77534e612e8f65ff3360336faec77 | ||
18 | |||
19 | pkgname = naemon-core | ||
20 | pkgdesc = System and network monitoring application | ||
21 | install = naemon.install | ||
22 | depends = bash | 14 | depends = bash |
15 | depends = icu | ||
23 | optdepends = logrotate | 16 | optdepends = logrotate |
17 | optdepends = thruk: Web interface for Naemon | ||
24 | optdepends = monitoring-plugins | 18 | optdepends = monitoring-plugins |
19 | provides = naemon-core | ||
20 | provides = naemon-livestatus | ||
21 | conflicts = naemon-core | ||
22 | conflicts = naemon-livestatus | ||
23 | replaces = naemon-core | ||
24 | replaces = naemon-livestatus | ||
25 | backup = etc/logrotate.d/naemon | 25 | backup = etc/logrotate.d/naemon |
26 | backup = etc/naemon/conf.d/commands.cfg | 26 | backup = etc/naemon/conf.d/commands.cfg |
27 | backup = etc/naemon/conf.d/contacts.cfg | 27 | backup = etc/naemon/conf.d/contacts.cfg |
@@ -35,27 +35,10 @@ pkgname = naemon-core | |||
35 | backup = etc/naemon/conf.d/windows.cfg | 35 | backup = etc/naemon/conf.d/windows.cfg |
36 | backup = etc/naemon/naemon.cfg | 36 | backup = etc/naemon/naemon.cfg |
37 | backup = etc/naemon/resource.cfg | 37 | backup = etc/naemon/resource.cfg |
38 | source = http://labs.consol.de/naemon/release/v1.0.6/src/naemon-1.0.6.tar.gz | ||
39 | source = naemon.service | ||
40 | md5sums = 6c9b95a737a8f232e114f4cff200ff92 | ||
41 | md5sums = d6a77534e612e8f65ff3360336faec77 | ||
38 | 42 | ||
39 | pkgname = naemon-livestatus | 43 | pkgname = naemon |
40 | pkgdesc = Standard API for Naemon | ||
41 | depends = icu | ||
42 | |||
43 | pkgname = naemon-thruk | ||
44 | pkgdesc = Monitoring Webinterface for Naemon | ||
45 | depends = gd | ||
46 | depends = mariadb-clients | ||
47 | depends = apache | ||
48 | depends = mod_fcgid | ||
49 | backup = etc/naemon/cgi.cfg | ||
50 | backup = etc/naemon/htpasswd | ||
51 | backup = etc/naemon/log4perl.conf | ||
52 | backup = etc/naemon/menu_local.conf | ||
53 | backup = etc/naemon/naglint.conf | ||
54 | backup = etc/httpd/conf/extra/thruk.conf | ||
55 | backup = etc/httpd/conf/extra/thruk_cookie_auth_vhost.conf | ||
56 | backup = etc/naemon/thruk_local.conf | ||
57 | backup = etc/naemon/thruk.conf | ||
58 | backup = etc/naemon/conf.d/thruk_bp_generated.cfg | ||
59 | backup = etc/naemon/conf.d/thruk_templates.cfg | ||
60 | backup = etc/logrotate.d/thruk | ||
61 | 44 | ||
@@ -1,28 +1,36 @@ | |||
1 | # Maintainer: Jonathan Steel <jsteel at archlinux.org> | 1 | # Maintainer: Jonathan Steel <jsteel at archlinux.org> |
2 | 2 | ||
3 | pkgbase=naemon | 3 | pkgname=naemon |
4 | pkgname=('naemon-core' 'naemon-livestatus' 'naemon-thruk') | 4 | pkgver=1.0.6 |
5 | pkgver=1.0.4 | ||
6 | pkgrel=1 | 5 | pkgrel=1 |
6 | pkgdesc="System and network monitoring application" | ||
7 | arch=('i686' 'x86_64') | 7 | arch=('i686' 'x86_64') |
8 | url="http://naemon.org" | 8 | url="http://naemon.org" |
9 | license=('GPL2') | 9 | license=('GPL2') |
10 | makedepends=('gperf' 'rsync' 'gd' 'mariadb-clients' 'help2man') | 10 | depends=('bash' 'icu') |
11 | source=(http://labs.consol.de/naemon/release/v$pkgver/src/$pkgbase-$pkgver.tar.gz | 11 | optdepends=('logrotate' |
12 | $pkgbase.service) | 12 | 'thruk: Web interface for Naemon' |
13 | md5sums=('f0d5b8ce43debf78e82994c7ad995d57' | 13 | 'monitoring-plugins') |
14 | makedepends=('gperf' 'help2man') | ||
15 | provides=('naemon-core' 'naemon-livestatus') | ||
16 | conflicts=('naemon-core' 'naemon-livestatus') | ||
17 | replaces=('naemon-core' 'naemon-livestatus') | ||
18 | source=(http://labs.consol.de/naemon/release/v$pkgver/src/$pkgname-$pkgver.tar.gz | ||
19 | $pkgname.service) | ||
20 | md5sums=('6c9b95a737a8f232e114f4cff200ff92' | ||
14 | 'd6a77534e612e8f65ff3360336faec77') | 21 | 'd6a77534e612e8f65ff3360336faec77') |
15 | 22 | backup=('etc/logrotate.d/naemon' 'etc/naemon/conf.d/commands.cfg' | |
16 | prepare() { | 23 | 'etc/naemon/conf.d/contacts.cfg' 'etc/naemon/conf.d/localhost.cfg' |
17 | cd $pkgbase-$pkgver | 24 | 'etc/naemon/conf.d/printer.cfg' 'etc/naemon/conf.d/switch.cfg' |
18 | 25 | 'etc/naemon/conf.d/templates/contacts.cfg' | |
19 | # Break up the install process so we can package the separate components | 26 | 'etc/naemon/conf.d/templates/hosts.cfg' |
20 | sed -i '51iinstall-livestatus:' Makefile | 27 | 'etc/naemon/conf.d/templates/services.cfg' |
21 | sed -i '53iinstall-thruk:' Makefile | 28 | 'etc/naemon/conf.d/timeperiods.cfg' 'etc/naemon/conf.d/windows.cfg' |
22 | } | 29 | 'etc/naemon/naemon.cfg' 'etc/naemon/resource.cfg') |
30 | install=$pkgname.install | ||
23 | 31 | ||
24 | build() { | 32 | build() { |
25 | cd $pkgbase-$pkgver | 33 | cd $pkgname-$pkgver |
26 | 34 | ||
27 | ./configure --prefix=/usr \ | 35 | ./configure --prefix=/usr \ |
28 | --bindir=/usr/bin \ | 36 | --bindir=/usr/bin \ |
@@ -54,67 +62,26 @@ build() { | |||
54 | } | 62 | } |
55 | 63 | ||
56 | check() { | 64 | check() { |
57 | cd $pkgbase-$pkgver/naemon-core | 65 | cd $pkgname-$pkgver/naemon-core |
58 | 66 | ||
59 | make check | 67 | make check |
60 | } | 68 | } |
61 | 69 | ||
62 | package_naemon-core() { | 70 | package() { |
63 | pkgdesc="System and network monitoring application" | 71 | cd $pkgname-$pkgver |
64 | depends=('bash') | ||
65 | optdepends=('logrotate' | ||
66 | 'monitoring-plugins') | ||
67 | backup=('etc/logrotate.d/naemon' 'etc/naemon/conf.d/commands.cfg' | ||
68 | 'etc/naemon/conf.d/contacts.cfg' 'etc/naemon/conf.d/localhost.cfg' | ||
69 | 'etc/naemon/conf.d/printer.cfg' 'etc/naemon/conf.d/switch.cfg' | ||
70 | 'etc/naemon/conf.d/templates/contacts.cfg' | ||
71 | 'etc/naemon/conf.d/templates/hosts.cfg' | ||
72 | 'etc/naemon/conf.d/templates/services.cfg' | ||
73 | 'etc/naemon/conf.d/timeperiods.cfg' 'etc/naemon/conf.d/windows.cfg' | ||
74 | 'etc/naemon/naemon.cfg' 'etc/naemon/resource.cfg') | ||
75 | install=$pkgbase.install | ||
76 | |||
77 | cd $pkgbase-$pkgver | ||
78 | 72 | ||
79 | make DESTDIR="$pkgdir" install | 73 | make DESTDIR="$pkgdir" install |
80 | 74 | ||
81 | chown -R 44:44 "$pkgdir"/var/{cache,log}/$pkgbase | 75 | install -d "$pkgdir"/etc/naemon/module-conf.d |
82 | chmod -R 770 "$pkgdir"/var/{cache,log}/$pkgbase | 76 | install -d "$pkgdir"/var/lib/naemon |
83 | |||
84 | install -Dm644 "$srcdir"/$pkgbase.service \ | ||
85 | "$pkgdir"/usr/lib/systemd/system/$pkgbase.service | ||
86 | |||
87 | # Remove init script | ||
88 | rm -rf "$pkgdir"/etc/init.d | ||
89 | } | ||
90 | |||
91 | package_naemon-livestatus() { | ||
92 | pkgdesc="Standard API for Naemon" | ||
93 | depends=('icu') | ||
94 | |||
95 | cd $pkgbase-$pkgver | ||
96 | |||
97 | make DESTDIR="$pkgdir" install-livestatus | ||
98 | } | ||
99 | |||
100 | package_naemon-thruk() { | ||
101 | pkgdesc="Monitoring Webinterface for Naemon" | ||
102 | depends=('gd' 'mariadb-clients' 'apache' 'mod_fcgid') | ||
103 | backup=('etc/naemon/cgi.cfg' 'etc/naemon/htpasswd' | ||
104 | 'etc/naemon/log4perl.conf' 'etc/naemon/menu_local.conf' | ||
105 | 'etc/naemon/naglint.conf' 'etc/httpd/conf/extra/thruk.conf' | ||
106 | 'etc/httpd/conf/extra/thruk_cookie_auth_vhost.conf' | ||
107 | 'etc/naemon/thruk_local.conf' 'etc/naemon/thruk.conf' | ||
108 | 'etc/naemon/conf.d/thruk_bp_generated.cfg' | ||
109 | 'etc/naemon/conf.d/thruk_templates.cfg' 'etc/logrotate.d/thruk') | ||
110 | |||
111 | cd $pkgbase-$pkgver | ||
112 | 77 | ||
113 | make DESTDIR="$pkgdir" install-thruk | 78 | chown -R 44:44 "$pkgdir"/var/{cache,lib,log}/$pkgname |
79 | chmod -R 770 "$pkgdir"/var/{cache,lib,log}/$pkgname | ||
114 | 80 | ||
115 | chown -R 44:44 "$pkgdir"/var/{cache,lib,log}/$pkgbase | 81 | install -Dm644 "$srcdir"/$pkgname.service \ |
116 | chmod -R 770 "$pkgdir"/var/{cache,lib,log}/$pkgbase | 82 | "$pkgdir"/usr/lib/systemd/system/$pkgname.service |
117 | 83 | ||
118 | # Remove init script | 84 | # Remove non-Arch directories |
119 | rm -rf "$pkgdir"/etc/init.d | 85 | rm -rf "$pkgdir"/etc/init.d |
86 | rm -rf "$pkgdir"/etc/apache2 | ||
120 | } | 87 | } |