| 1 |
|
# Copyright 1999-2021 Gentoo Authors
|
|
1 |
# Copyright 1999-2025 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
|
EAPI=7
|
|
4 |
EAPI=8
|
| 5 |
5 |
|
| 6 |
6 |
inherit autotools
|
| 7 |
7 |
|
| ... | ... | |
| 19 |
19 |
>=net-firewall/iptables-1.4.10
|
| 20 |
20 |
dev-libs/libdnet
|
| 21 |
21 |
net-libs/libnetfilter_queue
|
| 22 |
|
|
| 23 |
22 |
"
|
| 24 |
23 |
DEPEND="
|
| 25 |
24 |
dump? ( ${PCAP_DEPEND} )
|
| ... | ... | |
| 32 |
31 |
PATCHES=(
|
| 33 |
32 |
"${FILESDIR}"/${PN}-2.0.6-parallel-grammar.patch #673390
|
| 34 |
33 |
"${FILESDIR}"/${PN}-2.0.6-static-libs.patch
|
|
34 |
"${FILESDIR}"/${PN}-2.0.7-gcc14-build-fix.patch
|
|
35 |
"${FILESDIR}"/${PN}-2.0.7-musl-unistd-fix.patch
|
| 35 |
36 |
)
|
| 36 |
37 |
|
| 37 |
38 |
src_prepare() {
|
| ... | ... | |
| 42 |
43 |
src_configure() {
|
| 43 |
44 |
# We forced libpcap to 1.x, so we can set this cache var so
|
| 44 |
45 |
# cross-compiling doesn't break on us.
|
| 45 |
|
daq_cv_libpcap_version_1x=yes \
|
| 46 |
|
econf \
|
| 47 |
|
$(use_enable afpacket afpacket-module) \
|
| 48 |
|
$(use_enable dump dump-module) \
|
| 49 |
|
$(use_enable ipq ipq-module) \
|
| 50 |
|
$(use_enable ipv6) \
|
| 51 |
|
$(use_enable nfq nfq-module) \
|
| 52 |
|
$(use_enable pcap pcap-module) \
|
| 53 |
|
$(use_enable static-libs static) \
|
| 54 |
|
--disable-bundled-modules \
|
| 55 |
|
--disable-ipfw-module \
|
|
46 |
local myeconfargs=(
|
|
47 |
$(use_enable afpacket afpacket-module)
|
|
48 |
$(use_enable dump dump-module)
|
|
49 |
$(use_enable ipq ipq-module)
|
|
50 |
$(use_enable ipv6)
|
|
51 |
$(use_enable nfq nfq-module)
|
|
52 |
$(use_enable pcap pcap-module)
|
|
53 |
$(use_enable static-libs static)
|
|
54 |
--disable-bundled-modules
|
|
55 |
--disable-ipfw-module
|
| 56 |
56 |
--enable-shared
|
|
57 |
)
|
|
58 |
daq_cv_libpcap_version_1x=yes \
|
|
59 |
econf "${myeconfargs[@]}"
|
| 57 |
60 |
}
|
| 58 |
61 |
|
| 59 |
|
DOCS=( ChangeLog README )
|
| 60 |
|
|
| 61 |
62 |
src_install() {
|
| 62 |
63 |
default
|
| 63 |
64 |
|