From 29e05632e1d53c7e00dd25ee6cfab4f88b2506b8 Mon Sep 17 00:00:00 2001 From: Jeroen Roovers Date: Mon, 28 Jun 2010 05:52:12 +0000 Subject: 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) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- net-libs/libnids/ChangeLog | 9 +++++++- net-libs/libnids/libnids-1.24-r1.ebuild | 39 +++++++++++++++++++++++++++++++++ net-libs/libnids/metadata.xml | 4 ++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 net-libs/libnids/libnids-1.24-r1.ebuild (limited to 'net-libs/libnids') 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 +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 @@ netmon emulates the IP stack of Linux 2.0.x and offers IP defragmentation, TCP stream assembly and TCP port scan detection. + +Use dev-libs/glib for multiprocessing support +Include code requiring net-libs/libnet + -- cgit v1.2.3-65-gdbad