diff options
author | Jonathan Steel <jsteel@archlinux.org> | 2017-05-12 09:34:58 +0100 |
---|---|---|
committer | Jonathan Steel <jsteel@archlinux.org> | 2017-05-12 09:34:58 +0100 |
commit | 8b3611ea43fa522fef0cb316442511f0eabcb4fe (patch) | |
tree | 46320a9a628e38c4a0aeae4b2ac0a636828d8c05 /PKGBUILD | |
parent | 859eea34b10a6f60c39c150edc3e41e9146bea6e (diff) | |
download | AUR-8b3611ea43fa522fef0cb316442511f0eabcb4fe.tar.gz AUR-8b3611ea43fa522fef0cb316442511f0eabcb4fe.tar.zst AUR-8b3611ea43fa522fef0cb316442511f0eabcb4fe.zip |
Move sample config files so they don't pollute the config directory on updates
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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 |