summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2012-01-10 19:00:26 +0000
committerJeroen Roovers <jer@gentoo.org>2012-01-10 19:00:26 +0000
commitd9448c75970a8f0244a06cfb88d0f23d27db2d2e (patch)
treed0765e18bc136b2d8d25d272485707c7b6e40502
parentold (diff)
downloadgentoo-2-d9448c75970a8f0244a06cfb88d0f23d27db2d2e.tar.gz
gentoo-2-d9448c75970a8f0244a06cfb88d0f23d27db2d2e.tar.bz2
gentoo-2-d9448c75970a8f0244a06cfb88d0f23d27db2d2e.zip
Add USE=static-libs by Maurizio Camisaschi (bug #398411).
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
-rw-r--r--net-libs/libnids/ChangeLog9
-rw-r--r--net-libs/libnids/libnids-1.18-r2.ebuild37
-rw-r--r--net-libs/libnids/libnids-1.24-r2.ebuild39
3 files changed, 84 insertions, 1 deletions
diff --git a/net-libs/libnids/ChangeLog b/net-libs/libnids/ChangeLog
index 7906b928c556..29e70e3db04e 100644
--- a/net-libs/libnids/ChangeLog
+++ b/net-libs/libnids/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-libs/libnids
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libnids/ChangeLog,v 1.46 2012/01/10 17:06:04 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libnids/ChangeLog,v 1.47 2012/01/10 19:00:26 jer Exp $
+
+*libnids-1.24-r2 (10 Jan 2012)
+*libnids-1.18-r2 (10 Jan 2012)
+
+ 10 Jan 2012; Jeroen Roovers <jer@gentoo.org> +libnids-1.18-r2.ebuild,
+ +libnids-1.24-r2.ebuild:
+ Add USE=static-libs by Maurizio Camisaschi (bug #398411).
10 Jan 2012; Agostino Sarubbo <ago@gentoo.org> libnids-1.18-r1.ebuild,
libnids-1.24-r1.ebuild:
diff --git a/net-libs/libnids/libnids-1.18-r2.ebuild b/net-libs/libnids/libnids-1.18-r2.ebuild
new file mode 100644
index 000000000000..72e4b795e325
--- /dev/null
+++ b/net-libs/libnids/libnids-1.18-r2.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libnids/libnids-1.18-r2.ebuild,v 1.1 2012/01/10 19:00:26 jer Exp $
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="an implementation of an E-component of Network Intrusion Detection System"
+HOMEPAGE="http://www.packetfactory.net/Projects/libnids/"
+SRC_URI="http://www.packetfactory.net/Projects/libnids/dist/${P/_}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="1.1"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE="static-libs"
+
+DEPEND="net-libs/libpcap
+ >=net-libs/libnet-1.1.0-r3"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-chksum.c-ebx.patch \
+ "${FILESDIR}"/${P}-elif.patch \
+ "${FILESDIR}"/${PN}-1.24-ldflags.patch
+}
+
+src_configure() {
+ econf --enable-shared
+}
+
+src_install() {
+ emake install_prefix="${D}" install
+ use static-libs || rm -f "${D}"/usr/lib*/libnids.a
+ dodoc CHANGES CREDITS MISC README
+}
diff --git a/net-libs/libnids/libnids-1.24-r2.ebuild b/net-libs/libnids/libnids-1.24-r2.ebuild
new file mode 100644
index 000000000000..0470025c870c
--- /dev/null
+++ b/net-libs/libnids/libnids-1.24-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libnids/libnids-1.24-r2.ebuild,v 1.1 2012/01/10 19:00:26 jer Exp $
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="an implementation of an E-component of Network Intrusion Detection System"
+HOMEPAGE="http://libnids.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="1.2"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+IUSE="+glib +libnet static-libs"
+
+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}
+}
+
+src_install() {
+ emake install_prefix="${D}" install
+ use static-libs || rm -f "${D}"/usr/lib*/libnids.a
+ dodoc CHANGES CREDITS MISC README doc/*
+}