blob: 822621aac6c98e672f9c81a5c7b0acdd0eb2972c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/daq/daq-0.5.ebuild,v 1.7 2011/07/24 12:07:15 xarthisius Exp $
EAPI="2"
inherit eutils
DESCRIPTION="Data Acquisition library, for packet I/O"
HOMEPAGE="http://www.snort.org/"
SRC_URI="http://www.snort.org/downloads/630 -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~ppc ~ppc64 ~sparc x86"
IUSE="ipv6 +afpacket +dump +pcap"
DEPEND="pcap? ( >=net-libs/libpcap-1.0.0 )
dump? ( >=net-libs/libpcap-1.0.0 )"
RDEPEND="${DEPEND}"
src_configure() {
econf \
$(use_enable ipv6) \
$(use_enable pcap pcap-module) \
$(use_enable afpacket afpacket-module) \
$(use_enable dump dump-module) \
--disable-ipfw-module \
--disable-bundled-modules
}
src_install() {
emake -j1 DESTDIR="${D}" install || die "make install failed"
dodoc ChangeLog README
}
pkg_postinst() {
elog
elog "The Data Acquisition library (DAQ) for packet I/O replaces direct"
elog "calls to PCAP functions with an abstraction layer that facilitates"
elog "operation on a variety of hardware and software interfaces without"
elog "requiring changes to application such as Snort."
elog
elog "The only DAQ modules supported with this ebuild are AFpacket, PCAP,"
elog "and Dump. IPQ and NFQ will be supported in future versions of this"
elog "package."
elog
elog "Please see the README file for DAQ for information about specific"
elog "DAQ modules."
ewarn
ewarn "If you are reinstalling this package, you should also reinstall"
ewarn "packages that use this library for packet capture."
ewarn
}
|