/[gentoo-x86]/net-libs/daq/daq-0.6.2-r1.ebuild
Gentoo

Contents of /net-libs/daq/daq-0.6.2-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Feb 3 07:33:22 2014 UTC (6 years, 5 months ago) by kumba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +4 -4 lines
EAPI=4, Bump to 2.0.2, and remove 0.5.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D25D95E3)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-libs/daq/daq-0.6.2-r1.ebuild,v 1.3 2012/12/30 21:06:48 ago Exp $
4
5 EAPI="4"
6
7 inherit eutils multilib
8
9 DESCRIPTION="Data Acquisition library, for packet I/O"
10 HOMEPAGE="http://www.snort.org/"
11 SRC_URI="http://www.snort.org/downloads/1339 -> ${P}.tar.gz"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~sparc ~x86"
15 IUSE="ipv6 +afpacket +dump +pcap nfq ipq static-libs"
16
17 DEPEND="pcap? ( >=net-libs/libpcap-1.0.0 )
18 dump? ( >=net-libs/libpcap-1.0.0 )
19 nfq? ( dev-libs/libdnet
20 >=net-firewall/iptables-1.4.10
21 net-libs/libnetfilter_queue )
22 ipq? ( dev-libs/libdnet
23 >=net-firewall/iptables-1.4.10
24 net-libs/libnetfilter_queue )"
25
26 RDEPEND="${DEPEND}"
27
28 src_configure() {
29 econf \
30 $(use_enable ipv6) \
31 $(use_enable pcap pcap-module) \
32 $(use_enable afpacket afpacket-module) \
33 $(use_enable dump dump-module) \
34 $(use_enable nfq nfq-module) \
35 $(use_enable ipq ipq-module) \
36 $(use_enable static-libs static) \
37 --disable-ipfw-module \
38 --disable-bundled-modules
39 }
40
41 src_install() {
42 emake DESTDIR="${D}" install
43 dodoc ChangeLog README
44
45 # Remove unneeded .la files
46 rm \
47 "${D}"usr/$(get_libdir)/daq/*.la \
48 "${D}"usr/$(get_libdir)/libdaq*.la \
49 "${D}"usr/$(get_libdir)/libsfbpf.la \
50 || die
51
52 # If not using static-libs don't install the static libraries
53 # This has been bugged upstream
54 if ! use static-libs; then
55 for z in libdaq_static libdaq_static_modules; do
56 rm "${D}"usr/$(get_libdir)/${z}.a
57 done
58 fi
59 }
60
61 pkg_postinst() {
62 einfo "The Data Acquisition library (DAQ) for packet I/O replaces direct"
63 einfo "calls to PCAP functions with an abstraction layer that facilitates"
64 einfo "operation on a variety of hardware and software interfaces without"
65 einfo "requiring changes to application such as Snort."
66 einfo
67 einfo "Please see the README file for DAQ for information about specific"
68 einfo "DAQ modules."
69 }

  ViewVC Help
Powered by ViewVC 1.1.20