You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
925 B
48 lines
925 B
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
12 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
12 years ago
|
|
||
10 years ago
|
EAPI=5
|
||
12 years ago
|
|
||
10 years ago
|
inherit linux-info toolchain-funcs
|
||
12 years ago
|
|
||
10 years ago
|
DESCRIPTION="A utility to interface to the kernel to monitor for dropped network packets"
|
||
12 years ago
|
HOMEPAGE="https://fedorahosted.org/dropwatch/"
|
||
|
SRC_URI="https://fedorahosted.org/releases/d/r/dropwatch/${P}.tbz2"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
|
||
|
RDEPEND="dev-libs/libnl:3
|
||
9 years ago
|
sys-libs/binutils-libs
|
||
|
sys-libs/readline:="
|
||
12 years ago
|
DEPEND="${RDEPEND}
|
||
|
virtual/pkgconfig"
|
||
|
|
||
|
CONFIG_CHECK="~NET_DROP_MONITOR"
|
||
|
|
||
11 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}/${P}-makefile.patch"
|
||
|
"${FILESDIR}/${P}-binutils-2.23.patch"
|
||
|
)
|
||
12 years ago
|
|
||
10 years ago
|
src_prepare() {
|
||
|
epatch ${PATCHES[@]}
|
||
|
epatch_user
|
||
|
}
|
||
|
|
||
12 years ago
|
src_compile() {
|
||
|
emake CC="$(tc-getCC)" -C src
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dobin "src/${PN}"
|
||
|
doman "doc/${PN}.1"
|
||
|
dodoc README
|
||
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
einfo "Ensure that 'drop_monitor' kernel module is loaded before running ${PN}"
|
||
|
}
|