aboutsummaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJonathan Steel <jsteel@archlinux.org>2017-05-12 09:34:58 +0100
committerJonathan Steel <jsteel@archlinux.org>2017-05-12 09:34:58 +0100
commit8b3611ea43fa522fef0cb316442511f0eabcb4fe (patch)
tree46320a9a628e38c4a0aeae4b2ac0a636828d8c05 /PKGBUILD
parent859eea34b10a6f60c39c150edc3e41e9146bea6e (diff)
downloadAUR-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--PKGBUILD22
1 files changed, 11 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 972eb08..7068a06 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,12 @@
2 2
3pkgname=naemon 3pkgname=naemon
4pkgver=1.0.6 4pkgver=1.0.6
5pkgrel=1 5pkgrel=2
6pkgdesc="System and network monitoring application" 6pkgdesc="System and network monitoring application"
7arch=('i686' 'x86_64') 7arch=('i686' 'x86_64')
8url="http://naemon.org" 8url="http://naemon.org"
9license=('GPL2') 9license=('GPL2')
10depends=('bash' 'icu') 10depends=('icu' 'glib2')
11optdepends=('logrotate' 11optdepends=('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)
20md5sums=('6c9b95a737a8f232e114f4cff200ff92' 20md5sums=('6c9b95a737a8f232e114f4cff200ff92'
21 'd6a77534e612e8f65ff3360336faec77') 21 'd6a77534e612e8f65ff3360336faec77')
22backup=('etc/logrotate.d/naemon' 'etc/naemon/conf.d/commands.cfg' 22backup=('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')
30install=$pkgname.install 25install=$pkgname.install
31 26
32build() { 27build() {
@@ -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