diff options
-rw-r--r-- | .SRCINFO | 38 | ||||
-rw-r--r-- | PKGBUILD | 50 | ||||
-rw-r--r-- | thruk.install | 7 |
3 files changed, 95 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3809ebccdc8c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,38 @@ +# Generated by mksrcinfo v8 +# Thu May 4 11:59:09 UTC 2017 +pkgbase = thruk + pkgdesc = Multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken + pkgver = 2.14 + pkgrel = 1 + url = http://thruk.org + install = thruk.install + arch = any + license = GPL2 + depends = perl + depends = apache + depends = mod_fcgid + depends = perl-plack + depends = perl-json-xs + depends = perl-date-calc + depends = perl-file-slurp + depends = perl-log-log4perl + depends = perl-log-dispatch + depends = perl-fcgi + depends = perl-uri + depends = perl-html-parser + depends = perl-template-toolkit + conflicts = naemon-thruk + replaces = naemon-thruk + backup = etc/thruk/cgi.cfg + backup = etc/thruk/htpasswd + backup = etc/thruk/log4perl.conf + backup = etc/thruk/menu_local.conf + backup = etc/thruk/naglint.conf + backup = etc/httpd/conf/extra/thruk.conf + backup = etc/thruk/thruk_local.conf + backup = etc/thruk/thruk.conf + source = http://download.thruk.org/pkg/v2.14/src/thruk-2.14.tar.gz + md5sums = ac36a64794e6f44fe34d03473b616875 + +pkgname = thruk + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e2cc7a7dde30 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Jonathan Steel <jsteel at aur.archlinux.org> + +pkgname=thruk +pkgver=2.14 +pkgrel=1 +pkgdesc="Multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken" +arch=('any') +url="http://thruk.org" +license=('GPL2') +depends=('perl' 'apache' 'mod_fcgid' 'perl-plack' 'perl-json-xs' + 'perl-date-calc' 'perl-file-slurp' 'perl-log-log4perl' + 'perl-log-dispatch' 'perl-fcgi' 'perl-uri' 'perl-html-parser' + 'perl-template-toolkit') +conflicts=('naemon-thruk') +replaces=('naemon-thruk') +backup=('etc/thruk/cgi.cfg' 'etc/thruk/htpasswd' + 'etc/thruk/log4perl.conf' 'etc/thruk/menu_local.conf' + 'etc/thruk/naglint.conf' 'etc/httpd/conf/extra/thruk.conf' + 'etc/thruk/thruk_local.conf' 'etc/thruk/thruk.conf') +install=$pkgname.install +source=(http://download.thruk.org/pkg/v$pkgver/src/$pkgname-$pkgver.tar.gz) +md5sums=('ac36a64794e6f44fe34d03473b616875') + +build() { + cd $pkgname-$pkgver + + ./configure --prefix=/usr \ + --exec-prefix=/bin \ + --bindir=/usr/bin \ + --sysconfdir=/etc/thruk \ + --localstatedir=/var/lib/thruk \ + --libdir=/var/lib \ + --datadir=/usr/share/thruk \ + --mandir=/usr/share/man \ + --with-initdir=/etc/thruk \ + --with-logdir=/var/log/thruk \ + --with-checkresultdir=/var/cache/naemon/checkresults \ + --with-tempdir=/var/lib/thruk \ + --with-logrotatedir=/etc/logrotate.d + + make +} + +package() { + cd $pkgname-$pkgver + + make DESTDIR="$pkgdir"/ install + + install -Dm644 support/apache_fcgid.conf "$pkgdir"/etc/httpd/conf/extra/$pkgname.conf +} diff --git a/thruk.install b/thruk.install new file mode 100644 index 000000000000..2d1fe9216f7e --- /dev/null +++ b/thruk.install @@ -0,0 +1,7 @@ +post_install() { + chown -R 33:33 /var/lib/thruk/ /var/log/thruk/ +} + +post_upgrade() { + post_install +} |