/[gentoo-x86]/net-libs/libnids/libnids-1.24-r6.ebuild
Gentoo

Contents of /net-libs/libnids/libnids-1.24-r6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Mar 13 19:32:02 2015 UTC (5 years, 8 months ago) by jer
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Old.

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key A792A613)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/libnids/libnids-1.24-r6.ebuild,v 1.3 2015/03/02 09:30:57 ago Exp $
4
5 EAPI=5
6 inherit eutils flag-o-matic toolchain-funcs
7
8 DESCRIPTION="an implementation of an E-component of Network Intrusion Detection System"
9 HOMEPAGE="http://libnids.sourceforge.net/"
10 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
11
12 LICENSE="GPL-2"
13 SLOT="1.2"
14 KEYWORDS="amd64 ppc x86"
15 IUSE="+glib +libnet static-libs"
16
17 RDEPEND="
18 !net-libs/libnids:1.1
19 glib? ( dev-libs/glib:2 )
20 libnet? ( >=net-libs/libnet-1.1.0-r3 )
21 net-libs/libpcap
22 "
23 DEPEND="
24 ${RDEPEND}
25 glib? ( virtual/pkgconfig )
26 "
27
28 src_prepare() {
29 epatch "${FILESDIR}/${P}-ldflags.patch"
30 epatch "${FILESDIR}/${P}-static-libs.patch"
31 }
32
33 src_configure() {
34 tc-export AR
35 append-flags -fno-strict-aliasing
36
37 econf \
38 --enable-shared \
39 $(usex glib '' --disable-libglib) \
40 $(use_enable libnet)
41 }
42
43 src_compile() {
44 emake shared $(usex static-libs static '')
45 }
46
47 src_install() {
48 local tgt
49 for tgt in _installshared $(usex static-libs _install ''); do
50 emake install_prefix="${D}" ${tgt}
51 done
52
53 dodoc CHANGES CREDITS MISC README doc/*
54 }

  ViewVC Help
Powered by ViewVC 1.1.20