blob: 8db38802ead235b709de529c43900cdad8d50bc1 [file] [log] [blame]
#
# Copyright 2023 Google LLC
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
EAPI=7
inherit toolchain-funcs
DESCRIPTION="A pcap based IP traffic and bandwidth monitor"
HOMEPAGE="http://ipband.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="* ~amd64 x86"
DEPEND="
>=net-libs/libpcap-0.4
"
RDEPEND="
${DEPEND}
"
src_prepare() {
default
sed -i "/strip \$(BIN)/d" Makefile || die
}
src_configure() {
tc-export CC
default
}
src_compile() {
emake \
CC="$(tc-getCC)" \
CPPFLAGS="${CPPFLAGS}"
}
src_install() {
dobin ipband
}