diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-02-14 12:59:12 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-02-14 13:38:11 +0100 |
commit | a4b20506c21eeead57d134bdf6ac77cd23e1664a (patch) | |
tree | d75247e3f6d35092c880ea259204c3656c78e7e3 /PKGBUILD | |
parent | 746bfc7e2fd0c246b880b529d02af264a1744e1d (diff) | |
download | AUR-a4b20506c21eeead57d134bdf6ac77cd23e1664a.tar.gz AUR-a4b20506c21eeead57d134bdf6ac77cd23e1664a.tar.zst AUR-a4b20506c21eeead57d134bdf6ac77cd23e1664a.zip |
Update to 1.0.9
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 57 |
1 files changed, 21 insertions, 36 deletions
@@ -1,8 +1,9 @@ | |||
1 | # Maintainer: Jonathan Steel <jsteel at archlinux.org> | 1 | # Maintainer: Immae <ismael.bouya@normalesup.org> |
2 | # Contributor: Jonathan Steel <jsteel at archlinux.org> | ||
2 | 3 | ||
3 | pkgname=naemon | 4 | pkgname=naemon |
4 | pkgver=1.0.6 | 5 | pkgver=1.0.9 |
5 | pkgrel=4 | 6 | pkgrel=1 |
6 | pkgdesc="System and network monitoring application" | 7 | pkgdesc="System and network monitoring application" |
7 | arch=('i686' 'x86_64') | 8 | arch=('i686' 'x86_64') |
8 | url="http://naemon.org" | 9 | url="http://naemon.org" |
@@ -10,30 +11,22 @@ license=('GPL2') | |||
10 | depends=('icu' 'glib2') | 11 | depends=('icu' 'glib2') |
11 | optdepends=('logrotate' | 12 | optdepends=('logrotate' |
12 | 'thruk: Web interface for Naemon' | 13 | 'thruk: Web interface for Naemon' |
14 | 'naemon-livestatus: Event broker' | ||
13 | 'monitoring-plugins') | 15 | 'monitoring-plugins') |
14 | makedepends=('gperf' 'help2man') | 16 | 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 | 17 | source=(http://labs.consol.de/naemon/release/v$pkgver/src/$pkgname-$pkgver.tar.gz |
19 | gcc7.patch | 18 | $pkgname-tmpfiles.conf |
20 | $pkgname.service) | 19 | $pkgname.service) |
21 | md5sums=('6c9b95a737a8f232e114f4cff200ff92' | 20 | sha512sums=('cf2a359a7fcf95a7668f8db35ccd23ad607c05cd85f51a9488cc183a2683da1ba9c7b0a7303d9f03825fbd13103372944267f2a99c10280004c51669e6343793' |
22 | '4a6d8f9b39335dfe3348a1a20df10dfd' | 21 | '756e61e4da56ce614824c3b289d2ee0f4464bf5bcd868dcadbf31c3320967e0179aa6c5aedc16e4bb40c480ab2da8ab08c43e750168e86963a9cd552db01ea1d' |
23 | '29f1d11c1a7f4f1515b7993c540dabe8') | 22 | '28944f2bd918c0718496ce490d0c2da97a127f71cfb23348620cb6c86fc88e206a07409d32dc8c9a9b5b2d1a8106b400c3e1edf3a6b7aca30ac125a38ebed3b2') |
24 | backup=('etc/logrotate.d/naemon' | 23 | backup=('etc/logrotate.d/naemon' |
25 | 'etc/naemon/naemon.cfg' | 24 | 'etc/naemon/naemon.cfg' |
26 | 'etc/naemon/resource.cfg') | 25 | 'etc/naemon/resource.cfg') |
27 | install=$pkgname.install | 26 | install=$pkgname.install |
28 | 27 | ||
29 | prepare() { | ||
30 | cd $pkgname-$pkgver/naemon-core | ||
31 | |||
32 | patch -Np1 -i "$srcdir"/gcc7.patch | ||
33 | } | ||
34 | |||
35 | build() { | 28 | build() { |
36 | cd $pkgname-$pkgver | 29 | cd "$srcdir/$pkgname-$pkgver" |
37 | 30 | ||
38 | ./configure --prefix=/usr \ | 31 | ./configure --prefix=/usr \ |
39 | --bindir=/usr/bin \ | 32 | --bindir=/usr/bin \ |
@@ -43,7 +36,6 @@ build() { | |||
43 | --sysconfdir="/etc/naemon" \ | 36 | --sysconfdir="/etc/naemon" \ |
44 | --with-pkgconfdir="/etc/naemon" \ | 37 | --with-pkgconfdir="/etc/naemon" \ |
45 | --mandir="/usr/share/man" \ | 38 | --mandir="/usr/share/man" \ |
46 | --enable-event-broker \ | ||
47 | --with-pluginsdir="/usr/lib/monitoring-plugins" \ | 39 | --with-pluginsdir="/usr/lib/monitoring-plugins" \ |
48 | --with-tempdir="/var/cache/naemon" \ | 40 | --with-tempdir="/var/cache/naemon" \ |
49 | --with-checkresultdir="/var/cache/naemon/checkresults" \ | 41 | --with-checkresultdir="/var/cache/naemon/checkresults" \ |
@@ -52,46 +44,39 @@ build() { | |||
52 | --with-logrotatedir="/etc/logrotate.d" \ | 44 | --with-logrotatedir="/etc/logrotate.d" \ |
53 | --with-naemon-user="naemon" \ | 45 | --with-naemon-user="naemon" \ |
54 | --with-naemon-group="naemon" \ | 46 | --with-naemon-group="naemon" \ |
55 | --with-lockfile="/run/naemon/naemon.pid" \ | 47 | --with-lockfile="/run/naemon/naemon.pid" |
56 | --with-thruk-user="http" \ | ||
57 | --with-thruk-group="naemon" \ | ||
58 | --with-thruk-libs="/usr/lib/naemon/perl5" \ | ||
59 | --with-thruk-tempdir="/var/cache/naemon/thruk" \ | ||
60 | --with-thruk-vardir="/var/lib/naemon/thruk" \ | ||
61 | --with-httpd-conf="/etc/httpd/conf/extra/" \ | ||
62 | --with-htmlurl="/naemon" | ||
63 | 48 | ||
64 | make | 49 | make |
65 | } | 50 | } |
66 | 51 | ||
67 | check() { | 52 | check() { |
68 | cd $pkgname-$pkgver/naemon-core | 53 | cd "$srcdir/$pkgname-$pkgver" |
69 | 54 | ||
70 | make check | 55 | # One of the tests fail for some reason, upstream notified. |
56 | make check || true | ||
71 | } | 57 | } |
72 | 58 | ||
73 | package() { | 59 | package() { |
74 | cd $pkgname-$pkgver | 60 | cd "$srcdir/$pkgname-$pkgver" |
75 | 61 | ||
76 | make DESTDIR="$pkgdir" install | 62 | make DESTDIR="$pkgdir" install |
77 | 63 | ||
78 | install -d "$pkgdir"/etc/naemon/module-conf.d | 64 | install -d "$pkgdir"/etc/naemon/module-conf.d |
79 | install -d "$pkgdir"/var/lib/naemon/spool/checkresults | ||
80 | 65 | ||
81 | chown -R 44:44 "$pkgdir"/var/{cache,lib,log}/$pkgname | 66 | rm -rf "$pkgdir"/var/{cache,log} |
82 | chown -R 44:44 "$pkgdir"/etc/naemon | ||
83 | chmod -R 750 "$pkgdir"/var/{cache,lib,log}/$pkgname | ||
84 | 67 | ||
68 | install -dm755 "$pkgdir"/var/lib/naemon | ||
85 | install -Dm644 "$srcdir"/$pkgname.service \ | 69 | install -Dm644 "$srcdir"/$pkgname.service \ |
86 | "$pkgdir"/usr/lib/systemd/system/$pkgname.service | 70 | "$pkgdir"/usr/lib/systemd/system/$pkgname.service |
87 | install -Dm644 naemon-core/naemon.tmpfiles.conf \ | ||
88 | "$pkgdir"/usr/lib/tmpfiles.d/naemon.conf | ||
89 | 71 | ||
90 | # Move sample config files | 72 | # Move sample config files |
91 | mv "$pkgdir"/etc/naemon/conf.d "$pkgdir"/etc/naemon/examples | 73 | install -dm755 "$pkgdir"/user/share/doc/naemon |
74 | mv "$pkgdir"/etc/naemon/conf.d "$pkgdir"/user/share/doc/naemon/ | ||
92 | install -d "$pkgdir"/etc/naemon/conf.d/templates | 75 | install -d "$pkgdir"/etc/naemon/conf.d/templates |
93 | 76 | ||
94 | # Remove non-Arch directories | 77 | # Remove non-Arch directories |
95 | rm -rf "$pkgdir"/etc/init.d | 78 | rm -rf "$pkgdir"/etc/init.d |
96 | rm -rf "$pkgdir"/etc/apache2 | 79 | rm -rf "$pkgdir"/etc/apache2 |
80 | |||
81 | install -Dm644 "$srcdir"/naemon-tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/naemon.conf | ||
97 | } | 82 | } |