diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2015-10-26 17:01:37 +0000 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2015-10-31 12:05:18 +0000 |
commit | 0336cb25f04561af9be77f97aa1beaceb7347f6a (patch) | |
tree | f8537ca97c8e34273b9768090d135a976c11b0d0 /net-analyzer/ndoutils | |
parent | ad2230fc2d6491b6536a0895925675b26473136f (diff) | |
download | gentoo-0336cb25f04561af9be77f97aa1beaceb7347f6a.tar.gz gentoo-0336cb25f04561af9be77f97aa1beaceb7347f6a.tar.xz |
net-analyzer/ndoutils: Install binaries appropriate to nagios version
By default, only Nagios v4.x ndo2db and ndomod.o are install which
break using it on Nagios v3.x
Gentoo Bug #564194
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'net-analyzer/ndoutils')
-rw-r--r-- | net-analyzer/ndoutils/ndoutils-2.0.0.ebuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/net-analyzer/ndoutils/ndoutils-2.0.0.ebuild b/net-analyzer/ndoutils/ndoutils-2.0.0.ebuild index a7285fe8e9f..460c9b7a5cd 100644 --- a/net-analyzer/ndoutils/ndoutils-2.0.0.ebuild +++ b/net-analyzer/ndoutils/ndoutils-2.0.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -56,6 +56,15 @@ DOCS=( src_install() { default + + local itarget + if has_version ">=net-analyzer/nagios-core-4.0" ; then + itarget="install-4x" + else + itarget="install-3x" + fi + + emake -C src DESTDIR="${D}" "${itarget}" emake DESTDIR="${D}" install-config newinitd "${FILESDIR}"/ndo2db.init-nagios3 ndo2db |