--- nagios-nrpe-2.12-r103.old 2012-01-08 19:22:44.804126318 +0100 +++ nagios-nrpe-2.12-r103.ebuild 2012-01-08 19:39:01.267901145 +0100 @@ -4,7 +4,7 @@ EAPI=2 -inherit eutils toolchain-funcs +inherit eutils toolchain-funcs autotools DESCRIPTION="Nagios $PV NRPE - Nagios Remote Plugin Executor" HOMEPAGE="http://www.nagios.org/" @@ -16,9 +16,11 @@ KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" -IUSE="ssl command-args" +IUSE="ssl command-args tcpd" DEPEND=">=net-analyzer/nagios-plugins-1.3.0 - ssl? ( dev-libs/openssl )" + ssl? ( dev-libs/openssl ) + tcpd? ( >=sys-apps/tcp-wrappers-7.6 )" + S="${WORKDIR}/nrpe-${PV}" pkg_setup() { @@ -30,13 +32,19 @@ # Add support for large output, # http://opsview-blog.opsera.com/dotorg/2008/08/enhancing-nrpe.html epatch "${FILESDIR}/multiline.patch" + + # Fix tcp-wrapper dependency (Bug #326367) + epatch "${FILESDIR}/tcp-wrapper-configure.in.patch" + + eautoconf || die "eautoconf failed" } src_configure() { local myconf myconf="${myconf} $(use_enable ssl) \ - $(use_enable command-args)" + $(use_enable command-args) \ + $(use_enable tcpd tcp-wrapper)" # Generate the dh.h header file for better security (2005 Mar 20 eldad) if use ssl ; then