summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO5
-rw-r--r--PKGBUILD6
2 files changed, 7 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 31284684c627..efec1652c048 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Tue May 16 08:01:00 UTC 2017
+# Tue May 23 08:43:39 UTC 2017
pkgbase = thruk
pkgdesc = Multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken
pkgver = 2.14.2
- pkgrel = 3
+ pkgrel = 4
url = http://thruk.org
arch = any
license = GPL2
@@ -31,6 +31,7 @@ pkgbase = thruk
backup = etc/thruk/naglint.conf
backup = etc/httpd/conf/extra/thruk.conf
backup = etc/thruk/thruk_local.conf
+ backup = etc/logrotate.d/thruk-base
source = http://download.thruk.org/pkg/v2.14-2/src/thruk-2.14-2.tar.gz
md5sums = d15292905a702e9819467e94c22b505a
diff --git a/PKGBUILD b/PKGBUILD
index eb25127c49a2..90209a1b29fd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=thruk
_pkgver=2.14-2
pkgver=${_pkgver/-/.}
-pkgrel=3
+pkgrel=4
pkgdesc="Multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken"
arch=('any')
url="http://thruk.org"
@@ -17,7 +17,7 @@ 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_local.conf' 'etc/logrotate.d/thruk-base')
source=(http://download.thruk.org/pkg/v$_pkgver/src/$pkgname-$_pkgver.tar.gz)
md5sums=('d15292905a702e9819467e94c22b505a')
@@ -55,4 +55,6 @@ package() {
# Exclude /var/lib/thruk as logrotate doesn't like the permissions there
# and there are no logs
sed -i 's_^/.* _/var/log/thruk/*.log _' "$pkgdir"/etc/logrotate.d/thruk-base
+ # Set log owner to http rather than build user
+ sed -i 's/644.*/644 http http/' "$pkgdir"/etc/logrotate.d/thruk-base
}