blob: ce12a85db51b5341dc37a43d28493a1aaa381733 (
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
|
# 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}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ppc64 sparc x86"
IUSE="ipv6"
DEPEND="
net-libs/libpcap
"
RDEPEND="
${DEPEND}
"
DOCS=( AUTHORS ChangeLog NEWS README doc/Tips_and_Tricks.txt )
PATCHES=(
"${FILESDIR}"/${P}-db.patch
"${FILESDIR}"/${P}-_DEFAULT_SOURCE.patch
)
src_prepare() {
default
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
}
|