blob: a7ffbe9723e3abcf361c4781bfe9007f78a2121e (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools flag-o-matic toolchain-funcs
DESCRIPTION="Reports network interface statistics"
HOMEPAGE="https://www.frenchfries.net/paul/tcpstat/"
SRC_URI="
https://www.frenchfries.net/paul/tcpstat/${P/_p*}.tar.gz
mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p*}-$(ver_cut 4).debian.tar.xz
"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="ipv6"
DEPEND="
net-libs/libpcap
sys-libs/db:*
"
RDEPEND="
${DEPEND}
"
DOCS=( AUTHORS ChangeLog NEWS README doc/Tips_and_Tricks.txt )
PATCHES=(
"${FILESDIR}"/${P}-_DEFAULT_SOURCE.patch
"${FILESDIR}"/${P}-ipv6.patch
"${FILESDIR}"/${P}-libpcap.patch
"${FILESDIR}"/${P}-off-by-one.patch
"${FILESDIR}"/${P}-unused.patch
)
S=${WORKDIR}/${P/_p*}
src_prepare() {
eapply $(
for patch in $(cat "${WORKDIR}"/debian/patches/series)
do echo "${WORKDIR}"/debian/patches/${patch}
done
) ${PATCHES[@]}
eapply_user
eautoreconf
}
src_configure() {
append-cflags -Wall -Wextra
econf \
$(use_enable ipv6) \
--with-pcap-include='' \
--with-pcap-lib="$( $(tc-getPKG_CONFIG) --libs libpcap)"
}
src_install() {
default
dobin src/{catpcap,packetdump}
newdoc src/README README.src
}
|