net-analyzer/pnp4nagios: drop USE=icinga2 in a new revision.
authorMichael Orlitzky <mjo@gentoo.org>
Fri, 3 Nov 2017 00:33:34 +0000 (20:33 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Sat, 4 Nov 2017 23:37:23 +0000 (19:37 -0400)
Now that pnp4nagios doesn't rely on the localstatedir of Nagios or
Icinga, the two implementations of Icinga are actually suitable for an
"or" dependency. We therefore do away with USE=icinga2, and let
USE=icinga mean "either icinga or icinga2."

Package-Manager: Portage-2.3.8, Repoman-2.3.3

net-analyzer/pnp4nagios/metadata.xml
net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r8.ebuild [moved from net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r7.ebuild with 91% similarity]

index d5799ab49c93f4eec06b54b364181f2eb90c8d0e..6612bb05751a251af8810f2c768e83645ca1dad0 100644 (file)
       Build against <pkg>net-analyzer/nagios-core</pkg> (the default)
     </flag>
     <flag name="icinga">
-      Build against <pkg>net-analyzer/icinga</pkg> instead of
-      <pkg>net-analyzer/nagios-core</pkg>
-    </flag>
-    <flag name="icinga2">
-      Build against <pkg>net-analyzer/icinga2</pkg> instead of
+      Build against <pkg>net-analyzer/icinga2</pkg> or
+      <pkg>net-analyzer/icinga</pkg> instead of
       <pkg>net-analyzer/nagios-core</pkg>
     </flag>
   </use>
similarity index 91%
rename from net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r7.ebuild
rename to net-analyzer/pnp4nagios/pnp4nagios-0.6.26-r8.ebuild
index 4057b829d9eff5f0ad2552b7aa81fbdc4140a492..8d5fdbcf842d52f300b7c09da62db034d7946101 100644 (file)
@@ -9,10 +9,10 @@ SRC_URI="mirror://sourceforge/${PN}/PNP-0.6/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="apache2 icinga icinga2 +nagios"
+IUSE="apache2 icinga +nagios"
 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
 
-REQUIRED_USE="^^ ( icinga icinga2 nagios )"
+REQUIRED_USE="^^ ( icinga nagios )"
 
 # Some things (sync mode, for one) are broken with nagios-4.x, but since
 # nagios-3.x has been end-of-life'd, we don't have much choice here but
@@ -20,8 +20,7 @@ REQUIRED_USE="^^ ( icinga icinga2 nagios )"
 DEPEND="
        dev-lang/php:*[filter,gd,json,simplexml,xml,zlib]
        net-analyzer/rrdtool[graph,perl]
-       icinga? ( net-analyzer/icinga )
-       icinga2? ( net-analyzer/icinga2 )
+       icinga? ( || ( net-analyzer/icinga2 net-analyzer/icinga ) )
        nagios? ( net-analyzer/nagios-core )"
 
 # A list of modules used in our Apache config file.
@@ -39,7 +38,7 @@ PATCHES=( "${FILESDIR}/${PN}-0.6.14-makefile.patch" )
 
 src_configure() {
        local user_group=nagios
-       ( use icinga || use icinga2 ) && user_group=icinga
+       use icinga && user_group=icinga
 
        econf \
                --sysconfdir="${EPREFIX}"/etc/pnp \
@@ -75,7 +74,7 @@ src_install() {
        # The nagios or icinga user needs to write performance data to the
        # perfdata-dir...
        local user_group=nagios
-       ( use icinga || use icinga2 ) && user_group=icinga
+       use icinga && user_group=icinga
        fowners "${user_group}:${user_group}" /var/lib/pnp/{,perfdata,spool}
 
        # and likewise for its logs...