summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-06-28 05:52:12 +0000
committerJeroen Roovers <jer@gentoo.org>2010-06-28 05:52:12 +0000
commit29e05632e1d53c7e00dd25ee6cfab4f88b2506b8 (patch)
treea05be6cdbfc94d61fcc0f3f477c0020235abba59 /net-libs/libnids
parentStable for HPPA (bug #325507). (diff)
downloadgentoo-2-29e05632e1d53c7e00dd25ee6cfab4f88b2506b8.tar.gz
gentoo-2-29e05632e1d53c7e00dd25ee6cfab4f88b2506b8.tar.bz2
gentoo-2-29e05632e1d53c7e00dd25ee6cfab4f88b2506b8.zip
Make dev-libs/glib and net-libs/libnet optional thanks to Rafał Mużyło (bug #325005).
(Portage version: 2.2_rc67/cvs/Linux i686)
Diffstat (limited to 'net-libs/libnids')
-rw-r--r--net-libs/libnids/ChangeLog9
-rw-r--r--net-libs/libnids/libnids-1.24-r1.ebuild39
-rw-r--r--net-libs/libnids/metadata.xml4
3 files changed, 51 insertions, 1 deletions
diff --git a/net-libs/libnids/ChangeLog b/net-libs/libnids/ChangeLog
index b3f50f49e9b6..8f2f25129936 100644
--- a/net-libs/libnids/ChangeLog
+++ b/net-libs/libnids/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-libs/libnids
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libnids/ChangeLog,v 1.41 2010/06/28 04:18:53 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libnids/ChangeLog,v 1.42 2010/06/28 05:52:12 jer Exp $
+
+*libnids-1.24-r1 (28 Jun 2010)
+
+ 28 Jun 2010; Jeroen Roovers <jer@gentoo.org> +libnids-1.24-r1.ebuild,
+ metadata.xml:
+ Make dev-libs/glib and net-libs/libnet optional thanks to Rafał Mużyło
+ (bug #325005).
*libnids-1.18-r1 (28 Jun 2010)
diff --git a/net-libs/libnids/libnids-1.24-r1.ebuild b/net-libs/libnids/libnids-1.24-r1.ebuild
new file mode 100644
index 000000000000..00a47bd81371
--- /dev/null
+++ b/net-libs/libnids/libnids-1.24-r1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libnids/libnids-1.24-r1.ebuild,v 1.1 2010/06/28 05:52:12 jer Exp $
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="emulates the IP stack of Linux 2.0.x and offers IP defragmentation, TCP stream assembly and TCP port scan detection."
+HOMEPAGE="http://libnids.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="1.2"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE="+glib +libnet"
+
+DEPEND="net-libs/libpcap
+ glib? ( dev-libs/glib )
+ libnet? ( >=net-libs/libnet-1.1.0-r3 )"
+RDEPEND="${DEPEND}
+ !net-libs/libnids:1.1"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-ldflags.patch"
+}
+
+src_configure() {
+ local myconf="--enable-shared"
+ use glib || myconf="${myconf} --disable-libglib"
+ use libnet || myconf="${myconf} --disable-libnet"
+ econf ${myconf} || die "econf failed"
+}
+
+src_install() {
+ emake install_prefix="${D}" install || die "emake install failed"
+ dodoc CHANGES CREDITS MISC README
+ dodoc doc/*
+}
diff --git a/net-libs/libnids/metadata.xml b/net-libs/libnids/metadata.xml
index ce33fa86db57..d1407310966f 100644
--- a/net-libs/libnids/metadata.xml
+++ b/net-libs/libnids/metadata.xml
@@ -3,4 +3,8 @@
<pkgmetadata>
<herd>netmon</herd>
<longdescription>emulates the IP stack of Linux 2.0.x and offers IP defragmentation, TCP stream assembly and TCP port scan detection.</longdescription>
+<use>
+<flag name="glib">Use <pkg>dev-libs/glib</pkg> for multiprocessing support</flag>
+<flag name="libnet">Include code requiring <pkg>net-libs/libnet</pkg></flag>
+</use>
</pkgmetadata>