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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Mon Feb 3 07:33:22 2014 UTC (6 years, 9 months ago) by kumba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +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.ebuild,v 1.6 2012/07/18 19:45:36 jer 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 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 for x in pcap afpacket dump nfq ipq; do
47 rm "${D}"usr/lib64/daq/daq_${x}.la
48 done
49 for y in libdaq libdaq_static libdaq_static_modules libsfbpf; do
50 rm "${D}"usr/lib64/${y}.la
51 done
52
53 # If not using static-libs don't install the static libraries
54 # This has been bugged upstream
55 if ! use static-libs; then
56 for z in libdaq_static libdaq_static_modules; do
57 rm "${D}"usr/lib64/${z}.a
58 done
59 fi
60 }
61
62 pkg_postinst() {
63 einfo "The Data Acquisition library (DAQ) for packet I/O replaces direct"
64 einfo "calls to PCAP functions with an abstraction layer that facilitates"
65 einfo "operation on a variety of hardware and software interfaces without"
66 einfo "requiring changes to application such as Snort."
67 einfo
68 einfo "Please see the README file for DAQ for information about specific"
69 einfo "DAQ modules."
70 }

  ViewVC Help
Powered by ViewVC 1.1.20