blob: 3b5d9e2b529e0122bb667ac0d0de60cce1c90978 (
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
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools linux-info
DESCRIPTION="Monitor for dropped network packets"
HOMEPAGE="https://github.com/nhorman/dropwatch"
SRC_URI="https://github.com/nhorman/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="bfd"
RDEPEND="
dev-libs/libnl:3
net-libs/libpcap
sys-libs/readline:=
bfd? ( sys-libs/binutils-libs:= )
"
DEPEND="${RDEPEND}
elibc_musl? ( sys-libs/queue-standalone )
"
BDEPEND="virtual/pkgconfig"
CONFIG_CHECK="~NET_DROP_MONITOR"
src_prepare() {
default
sed -e '/AM_CFLAGS/s/-Werror //' -i src/Makefile.am || die
eautoreconf
}
src_configure() {
econf "$(use_with bfd)"
}
|