net-analyzer/ntopng: fixed bug with configuration
authorSlawomir Lis <slis@gentoo.org>
Fri, 11 Nov 2016 20:30:50 +0000 (21:30 +0100)
committerSlawomir Lis <slis@gentoo.org>
Fri, 11 Nov 2016 20:30:50 +0000 (21:30 +0100)
Fixed a bug (#599528) caused when building without libpcap.
Configuration script does not return an error code, so configure
phase was completed succesfully.

Reported-By: Toralf Förster <toralf.foerster@gmx.de>
Package-Manager: portage-2.3.2

net-analyzer/ntopng/ntopng-2.0.ebuild

index 1f16266f6ea7cd188552c96b94fa9ce464fce75a..eca802c1fd0b1a51d34ecd2b2a52350d44e75bb1 100644 (file)
@@ -28,6 +28,7 @@ RDEPEND="${DEPEND}
 src_prepare() {
        cat "${S}/configure.seed" | sed "s/@VERSION@/${PV}/g" | sed "s/@SHORT_VERSION@/${PV}/g" > "${S}/configure.ac"
        epatch "${FILESDIR}/${P}-dont-build-ndpi.patch"
+       sed -i 's/exit$/exit 1/g' "${S}/configure.ac" "${S}/nDPI/configure.ac"
        eautoreconf
 
        cd "${S}/nDPI"