drop system-htp use flag (#575144)
authorSlawomir Lis <slis@gentoo.org>
Sun, 21 Feb 2016 20:25:35 +0000 (21:25 +0100)
committerSlawomir Lis <slis@gentoo.org>
Tue, 26 Apr 2016 06:12:16 +0000 (08:12 +0200)
Package-Manager: portage-2.2.27

net-analyzer/ntopng/ntopng-2.0.ebuild
net-analyzer/suricata/metadata.xml
net-analyzer/suricata/suricata-2.0.11.ebuild

index b8aa18dd5b8c0a17eefa4aecd312c2b1aff20998..1f16266f6ea7cd188552c96b94fa9ce464fce75a 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
-inherit autotools user
+inherit autotools eutils user
 
 DESCRIPTION="Network traffic analyzer with web interface"
 HOMEPAGE="http://www.ntop.org/"
@@ -27,7 +27,26 @@ 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"
        eautoreconf
+
+       cd "${S}/nDPI"
+       eautoreconf
+}
+
+src_configure() {
+       cd "${S}/nDPI"
+       econf
+       cd "${S}"
+       econf
+}
+
+src_compile() {
+       cd "${S}/nDPI"
+       emake
+
+       cd "${S}"
+       emake
 }
 
 src_install() {
index 517666e56cef1a513ab5845d33c069a88b13e7b5..0f80bed1d8da36ba90fd0446b7ab7b13d33b571c 100644 (file)
@@ -13,6 +13,5 @@
     <flag name="nflog">Enable libnetfilter_log support</flag>
     <flag name="nfqueue">Enable AF_PACKET support</flag>
     <flag name="rules">Enable AF_PACKET support</flag>
-    <flag name="system-htp">Use net-libs/libhtp instead of bundled one</flag>
   </use>
 </pkgmetadata>
index 0323836a2407a3f6589a7668024235fada8bde34..a1a7eb39d39018ec2b03e2d9dc666a3b3ecc32eb 100644 (file)
@@ -13,7 +13,7 @@ SRC_URI="http://www.openinfosecfoundation.org/download/${P}.tar.gz"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="+af-packet control-socket cuda debug +detection geoip hardened lua luajit nflog +nfqueue +rules system-htp test"
+IUSE="+af-packet control-socket cuda debug +detection geoip hardened lua luajit nflog +nfqueue +rules test"
 
 DEPEND="
        >=dev-libs/jansson-2.2
@@ -23,6 +23,7 @@ DEPEND="
        net-libs/libnfnetlink
        dev-libs/nspr
        dev-libs/nss
+       >=net-libs/libhtp-0.5.18
        net-libs/libpcap
        sys-apps/file
        cuda?       ( dev-util/nvidia-cuda-toolkit )
@@ -31,7 +32,6 @@ DEPEND="
        luajit?     ( dev-lang/luajit:* )
        nflog?      ( net-libs/libnetfilter_log )
        nfqueue?    ( net-libs/libnetfilter_queue )
-       system-htp? ( >=net-libs/libhtp-0.5.18 )
 "
 # #446814
 #      prelude?    ( dev-libs/libprelude )
@@ -54,6 +54,7 @@ src_prepare() {
 src_configure() {
        local myeconfargs=(
                "--localstatedir=/var/" \
+               "--enable-non-bundled-htp" \
                $(use_enable af-packet) \
                $(use_enable detection) \
                $(use_enable nfqueue) \
@@ -85,9 +86,6 @@ src_configure() {
 #      if use prelude ; then
 #              myeconfargs+=( $(use_enable prelude) )
 #      fi
-       if use system-htp ; then
-               myeconfargs+=( $(use_enable system-htp non-bundled-htp) )
-       fi
        if use lua ; then
                myeconfargs+=( $(use_enable lua) )
        fi