net-analyzer/icinga2: fix bug 583298 logrotate
authorMatthew Thode <prometheanfire@gentoo.org>
Sun, 22 May 2016 22:58:48 +0000 (17:58 -0500)
committerMatthew Thode <prometheanfire@gentoo.org>
Sun, 22 May 2016 22:58:48 +0000 (17:58 -0500)
Package-Manager: portage-2.2.28

net-analyzer/icinga2/files/logrotate.patch [new file with mode: 0644]
net-analyzer/icinga2/icinga2-2.4.10-r1.ebuild [moved from net-analyzer/icinga2/icinga2-2.4.10.ebuild with 98% similarity]

diff --git a/net-analyzer/icinga2/files/logrotate.patch b/net-analyzer/icinga2/files/logrotate.patch
new file mode 100644 (file)
index 0000000..93d493a
--- /dev/null
@@ -0,0 +1,17 @@
+diff -ur icinga2-2.4.10/etc/logrotate.d/icinga2.cmake icinga2-2.4.10.new/etc/logrotate.d/icinga2.cmake
+--- icinga2-2.4.10/etc/logrotate.d/icinga2.cmake       2016-05-19 06:39:29.000000000 -0500
++++ icinga2-2.4.10.new/etc/logrotate.d/icinga2.cmake   2016-05-22 17:52:45.547568144 -0500
+@@ -1,4 +1,5 @@
+ @CMAKE_INSTALL_FULL_LOCALSTATEDIR@/log/icinga2/icinga2.log @CMAKE_INSTALL_FULL_LOCALSTATEDIR@/log/icinga2/debug.log {
++      su icinga icingacmd
+       daily
+       rotate 7@LOGROTATE_USE_SU@
+       compress
+@@ -12,6 +13,7 @@
+ }
+ @CMAKE_INSTALL_FULL_LOCALSTATEDIR@/log/icinga2/error.log {
++      su icinga icingacmd
+       daily
+       rotate 90@LOGROTATE_USE_SU@
+       compress
similarity index 98%
rename from net-analyzer/icinga2/icinga2-2.4.10.ebuild
rename to net-analyzer/icinga2/icinga2-2.4.10-r1.ebuild
index 3f6634a9459a385aebf5fce71f73ea9962d8f50a..29443745023437469ce544871fa419494f7c9109 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 inherit cmake-utils depend.apache eutils systemd toolchain-funcs user
 
 DESCRIPTION="Distributed, general purpose, network monitoring engine"
@@ -38,6 +38,8 @@ RDEPEND="
 
 REQUIRED_USE="!minimal? ( || ( mysql postgres ) )"
 
+PATCHES=( "${FILESDIR}/logrotate.patch" )
+
 want_apache2
 
 pkg_setup() {