summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2014-03-19 15:47:03 +0000
committerJeroen Roovers <jer@gentoo.org>2014-03-19 15:47:03 +0000
commit889ea4975f4f19952b030286b36986e24d514a55 (patch)
tree7ed16dc927089da938b354021cdf8b854c8806ed /net-libs/libnids
parentAdd gcl to use.stable.mask (bug #504156) (diff)
downloadgentoo-2-889ea4975f4f19952b030286b36986e24d514a55.tar.gz
gentoo-2-889ea4975f4f19952b030286b36986e24d514a55.tar.bz2
gentoo-2-889ea4975f4f19952b030286b36986e24d514a55.zip
Do not build a static library when it is not going to be installed.
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key A792A613)
Diffstat (limited to 'net-libs/libnids')
-rw-r--r--net-libs/libnids/ChangeLog7
-rw-r--r--net-libs/libnids/libnids-1.18-r3.ebuild48
2 files changed, 54 insertions, 1 deletions
diff --git a/net-libs/libnids/ChangeLog b/net-libs/libnids/ChangeLog
index 862d9ec8228c..a7d2b4f86825 100644
--- a/net-libs/libnids/ChangeLog
+++ b/net-libs/libnids/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-libs/libnids
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-libs/libnids/ChangeLog,v 1.62 2014/03/19 15:30:47 jer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libnids/ChangeLog,v 1.63 2014/03/19 15:47:03 jer Exp $
+
+*libnids-1.18-r3 (19 Mar 2014)
+
+ 19 Mar 2014; Jeroen Roovers <jer@gentoo.org> +libnids-1.18-r3.ebuild:
+ Do not build a static library when it is not going to be installed.
*libnids-1.24-r4 (19 Mar 2014)
diff --git a/net-libs/libnids/libnids-1.18-r3.ebuild b/net-libs/libnids/libnids-1.18-r3.ebuild
new file mode 100644
index 000000000000..918eb180436a
--- /dev/null
+++ b/net-libs/libnids/libnids-1.18-r3.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/libnids/libnids-1.18-r3.ebuild,v 1.1 2014/03/19 15:47:03 jer Exp $
+
+EAPI=5
+
+inherit eutils toolchain-funcs
+
+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="~amd64 ~ppc ~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 \
+ "${FILESDIR}"/${PN}-1.24-static-libs.patch
+}
+
+src_configure() {
+ tc-export AR
+ econf --enable-shared
+}
+
+src_compile() {
+ emake shared $(usex static-libs static '')
+}
+
+src_install() {
+ local tgt
+ for tgt in _installshared $(usex static-libs _install ''); do
+ emake install_prefix="${D}" ${tgt}
+ done
+
+ dodoc CHANGES CREDITS MISC README
+}