diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 14 insertions, 24 deletions
@@ -1,9 +1,9 @@ | |||
1 | # Generated by mksrcinfo v8 | 1 | # Generated by mksrcinfo v8 |
2 | # Thu May 4 13:48:32 UTC 2017 | 2 | # Fri May 12 08:34:54 UTC 2017 |
3 | pkgbase = naemon | 3 | pkgbase = naemon |
4 | pkgdesc = System and network monitoring application | 4 | pkgdesc = System and network monitoring application |
5 | pkgver = 1.0.6 | 5 | pkgver = 1.0.6 |
6 | pkgrel = 1 | 6 | pkgrel = 2 |
7 | url = http://naemon.org | 7 | url = http://naemon.org |
8 | install = naemon.install | 8 | install = naemon.install |
9 | arch = i686 | 9 | arch = i686 |
@@ -11,8 +11,8 @@ pkgbase = naemon | |||
11 | license = GPL2 | 11 | license = GPL2 |
12 | makedepends = gperf | 12 | makedepends = gperf |
13 | makedepends = help2man | 13 | makedepends = help2man |
14 | depends = bash | ||
15 | depends = icu | 14 | depends = icu |
15 | depends = glib2 | ||
16 | optdepends = logrotate | 16 | optdepends = logrotate |
17 | optdepends = thruk: Web interface for Naemon | 17 | optdepends = thruk: Web interface for Naemon |
18 | optdepends = monitoring-plugins | 18 | optdepends = monitoring-plugins |
@@ -23,16 +23,6 @@ pkgbase = naemon | |||
23 | replaces = naemon-core | 23 | replaces = naemon-core |
24 | replaces = naemon-livestatus | 24 | replaces = naemon-livestatus |
25 | backup = etc/logrotate.d/naemon | 25 | backup = etc/logrotate.d/naemon |
26 | backup = etc/naemon/conf.d/commands.cfg | ||
27 | backup = etc/naemon/conf.d/contacts.cfg | ||
28 | backup = etc/naemon/conf.d/localhost.cfg | ||
29 | backup = etc/naemon/conf.d/printer.cfg | ||
30 | backup = etc/naemon/conf.d/switch.cfg | ||
31 | backup = etc/naemon/conf.d/templates/contacts.cfg | ||
32 | backup = etc/naemon/conf.d/templates/hosts.cfg | ||
33 | backup = etc/naemon/conf.d/templates/services.cfg | ||
34 | backup = etc/naemon/conf.d/timeperiods.cfg | ||
35 | backup = etc/naemon/conf.d/windows.cfg | ||
36 | backup = etc/naemon/naemon.cfg | 26 | backup = etc/naemon/naemon.cfg |
37 | backup = etc/naemon/resource.cfg | 27 | backup = etc/naemon/resource.cfg |
38 | source = http://labs.consol.de/naemon/release/v1.0.6/src/naemon-1.0.6.tar.gz | 28 | source = http://labs.consol.de/naemon/release/v1.0.6/src/naemon-1.0.6.tar.gz |
@@ -2,12 +2,12 @@ | |||
2 | 2 | ||
3 | pkgname=naemon | 3 | pkgname=naemon |
4 | pkgver=1.0.6 | 4 | pkgver=1.0.6 |
5 | pkgrel=1 | 5 | pkgrel=2 |
6 | pkgdesc="System and network monitoring application" | 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 | depends=('bash' 'icu') | 10 | depends=('icu' 'glib2') |
11 | optdepends=('logrotate' | 11 | optdepends=('logrotate' |
12 | 'thruk: Web interface for Naemon' | 12 | 'thruk: Web interface for Naemon' |
13 | 'monitoring-plugins') | 13 | 'monitoring-plugins') |
@@ -19,14 +19,9 @@ source=(http://labs.consol.de/naemon/release/v$pkgver/src/$pkgname-$pkgver.tar.g | |||
19 | $pkgname.service) | 19 | $pkgname.service) |
20 | md5sums=('6c9b95a737a8f232e114f4cff200ff92' | 20 | md5sums=('6c9b95a737a8f232e114f4cff200ff92' |
21 | 'd6a77534e612e8f65ff3360336faec77') | 21 | 'd6a77534e612e8f65ff3360336faec77') |
22 | backup=('etc/logrotate.d/naemon' 'etc/naemon/conf.d/commands.cfg' | 22 | backup=('etc/logrotate.d/naemon' |
23 | 'etc/naemon/conf.d/contacts.cfg' 'etc/naemon/conf.d/localhost.cfg' | 23 | 'etc/naemon/naemon.cfg' |
24 | 'etc/naemon/conf.d/printer.cfg' 'etc/naemon/conf.d/switch.cfg' | 24 | 'etc/naemon/resource.cfg') |
25 | 'etc/naemon/conf.d/templates/contacts.cfg' | ||
26 | 'etc/naemon/conf.d/templates/hosts.cfg' | ||
27 | 'etc/naemon/conf.d/templates/services.cfg' | ||
28 | 'etc/naemon/conf.d/timeperiods.cfg' 'etc/naemon/conf.d/windows.cfg' | ||
29 | 'etc/naemon/naemon.cfg' 'etc/naemon/resource.cfg') | ||
30 | install=$pkgname.install | 25 | install=$pkgname.install |
31 | 26 | ||
32 | build() { | 27 | build() { |
@@ -73,14 +68,19 @@ package() { | |||
73 | make DESTDIR="$pkgdir" install | 68 | make DESTDIR="$pkgdir" install |
74 | 69 | ||
75 | install -d "$pkgdir"/etc/naemon/module-conf.d | 70 | install -d "$pkgdir"/etc/naemon/module-conf.d |
76 | install -d "$pkgdir"/var/lib/naemon | 71 | install -d "$pkgdir"/var/lib/naemon/spool/checkresults |
77 | 72 | ||
78 | chown -R 44:44 "$pkgdir"/var/{cache,lib,log}/$pkgname | 73 | chown -R 44:44 "$pkgdir"/var/{cache,lib,log}/$pkgname |
74 | chown -R 44:44 "$pkgdir"/etc/naemon | ||
79 | chmod -R 770 "$pkgdir"/var/{cache,lib,log}/$pkgname | 75 | chmod -R 770 "$pkgdir"/var/{cache,lib,log}/$pkgname |
80 | 76 | ||
81 | install -Dm644 "$srcdir"/$pkgname.service \ | 77 | install -Dm644 "$srcdir"/$pkgname.service \ |
82 | "$pkgdir"/usr/lib/systemd/system/$pkgname.service | 78 | "$pkgdir"/usr/lib/systemd/system/$pkgname.service |
83 | 79 | ||
80 | # Move sample config files | ||
81 | mv "$pkgdir"/etc/naemon/conf.d "$pkgdir"/etc/naemon/examples | ||
82 | install -d "$pkgdir"/etc/naemon/conf.d/templates | ||
83 | |||
84 | # Remove non-Arch directories | 84 | # Remove non-Arch directories |
85 | rm -rf "$pkgdir"/etc/init.d | 85 | rm -rf "$pkgdir"/etc/init.d |
86 | rm -rf "$pkgdir"/etc/apache2 | 86 | rm -rf "$pkgdir"/etc/apache2 |