From a4b20506c21eeead57d134bdf6ac77cd23e1664a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 14 Feb 2019 12:59:12 +0100 Subject: Update to 1.0.9 --- PKGBUILD | 57 +++++++++++++++++++++------------------------------------ 1 file changed, 21 insertions(+), 36 deletions(-) (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD index 4ade4bd..fdcf283 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,8 +1,9 @@ -# Maintainer: Jonathan Steel +# Maintainer: Immae +# Contributor: Jonathan Steel pkgname=naemon -pkgver=1.0.6 -pkgrel=4 +pkgver=1.0.9 +pkgrel=1 pkgdesc="System and network monitoring application" arch=('i686' 'x86_64') url="http://naemon.org" @@ -10,30 +11,22 @@ license=('GPL2') depends=('icu' 'glib2') optdepends=('logrotate' 'thruk: Web interface for Naemon' + 'naemon-livestatus: Event broker' 'monitoring-plugins') makedepends=('gperf' 'help2man') -provides=('naemon-core' 'naemon-livestatus') -conflicts=('naemon-core' 'naemon-livestatus') -replaces=('naemon-core' 'naemon-livestatus') source=(http://labs.consol.de/naemon/release/v$pkgver/src/$pkgname-$pkgver.tar.gz - gcc7.patch + $pkgname-tmpfiles.conf $pkgname.service) -md5sums=('6c9b95a737a8f232e114f4cff200ff92' - '4a6d8f9b39335dfe3348a1a20df10dfd' - '29f1d11c1a7f4f1515b7993c540dabe8') +sha512sums=('cf2a359a7fcf95a7668f8db35ccd23ad607c05cd85f51a9488cc183a2683da1ba9c7b0a7303d9f03825fbd13103372944267f2a99c10280004c51669e6343793' + '756e61e4da56ce614824c3b289d2ee0f4464bf5bcd868dcadbf31c3320967e0179aa6c5aedc16e4bb40c480ab2da8ab08c43e750168e86963a9cd552db01ea1d' + '28944f2bd918c0718496ce490d0c2da97a127f71cfb23348620cb6c86fc88e206a07409d32dc8c9a9b5b2d1a8106b400c3e1edf3a6b7aca30ac125a38ebed3b2') backup=('etc/logrotate.d/naemon' 'etc/naemon/naemon.cfg' 'etc/naemon/resource.cfg') install=$pkgname.install -prepare() { - cd $pkgname-$pkgver/naemon-core - - patch -Np1 -i "$srcdir"/gcc7.patch -} - build() { - cd $pkgname-$pkgver + cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr \ --bindir=/usr/bin \ @@ -43,7 +36,6 @@ build() { --sysconfdir="/etc/naemon" \ --with-pkgconfdir="/etc/naemon" \ --mandir="/usr/share/man" \ - --enable-event-broker \ --with-pluginsdir="/usr/lib/monitoring-plugins" \ --with-tempdir="/var/cache/naemon" \ --with-checkresultdir="/var/cache/naemon/checkresults" \ @@ -52,46 +44,39 @@ build() { --with-logrotatedir="/etc/logrotate.d" \ --with-naemon-user="naemon" \ --with-naemon-group="naemon" \ - --with-lockfile="/run/naemon/naemon.pid" \ - --with-thruk-user="http" \ - --with-thruk-group="naemon" \ - --with-thruk-libs="/usr/lib/naemon/perl5" \ - --with-thruk-tempdir="/var/cache/naemon/thruk" \ - --with-thruk-vardir="/var/lib/naemon/thruk" \ - --with-httpd-conf="/etc/httpd/conf/extra/" \ - --with-htmlurl="/naemon" + --with-lockfile="/run/naemon/naemon.pid" make } check() { - cd $pkgname-$pkgver/naemon-core + cd "$srcdir/$pkgname-$pkgver" - make check + # One of the tests fail for some reason, upstream notified. + make check || true } package() { - cd $pkgname-$pkgver + cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install install -d "$pkgdir"/etc/naemon/module-conf.d - install -d "$pkgdir"/var/lib/naemon/spool/checkresults - chown -R 44:44 "$pkgdir"/var/{cache,lib,log}/$pkgname - chown -R 44:44 "$pkgdir"/etc/naemon - chmod -R 750 "$pkgdir"/var/{cache,lib,log}/$pkgname + rm -rf "$pkgdir"/var/{cache,log} + install -dm755 "$pkgdir"/var/lib/naemon install -Dm644 "$srcdir"/$pkgname.service \ "$pkgdir"/usr/lib/systemd/system/$pkgname.service - install -Dm644 naemon-core/naemon.tmpfiles.conf \ - "$pkgdir"/usr/lib/tmpfiles.d/naemon.conf # Move sample config files - mv "$pkgdir"/etc/naemon/conf.d "$pkgdir"/etc/naemon/examples + install -dm755 "$pkgdir"/user/share/doc/naemon + mv "$pkgdir"/etc/naemon/conf.d "$pkgdir"/user/share/doc/naemon/ install -d "$pkgdir"/etc/naemon/conf.d/templates # Remove non-Arch directories rm -rf "$pkgdir"/etc/init.d rm -rf "$pkgdir"/etc/apache2 + + install -Dm644 "$srcdir"/naemon-tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/naemon.conf } -- cgit v1.2.3