mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 12:08:43 -04:00
net-analyzer/netsniff-ng: add 0.6.9
Signed-off-by: YiFei Zhu <zhuyifei1999@gmail.com>
This commit is contained in:
parent
6a19dc0706
commit
7331ba4d7e
@ -1 +1,2 @@
|
||||
DIST netsniff-ng-0.6.8.tar.xz 617820 BLAKE2B 1810b505e1bb2d973820629be30bd37de87f6c49b5c044c7ee6e7e5eb983c2e8b80f6ad772a7b42d315502dfdd92143cf1cd340101c91b074cba1ad53c9f40ea SHA512 5cb0e66ea399068a7017a77612165fca94509176e0b4d3bac146e4bd73e09682cb1ee82c276b842263497fa74d8875dbda0e6c63b5b5ffe76531c1f43cf9bb99
|
||||
DIST netsniff-ng-0.6.9.tar.xz 618428 BLAKE2B e9d36cced9446ea90b2b875214270f9b5370dc286e66efab07efee293438d06ee07873a7fa36fd508a9aa3a6dcaff555f748b0003d7fcc9506e4eac34fda4057 SHA512 725b7295311abec12ccddb203f3607b7fe4e6fb966827681f8c930f8f053da0a5af9304c61b2d808a5af4fa5e439de8a51fc3b703c9dea61a0c6743d277d39e1
|
||||
|
75
net-analyzer/netsniff-ng/netsniff-ng-0.6.9.ebuild
Normal file
75
net-analyzer/netsniff-ng/netsniff-ng-0.6.9.ebuild
Normal file
@ -0,0 +1,75 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="high performance network sniffer for packet inspection"
|
||||
HOMEPAGE="http://netsniff-ng.org/"
|
||||
if [[ "${PV}" == *9999 ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/borkmann/${PN}.git"
|
||||
else
|
||||
SRC_URI="http://pub.${PN}.org/${PN}/${P}.tar.xz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="debug geoip zlib"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/libcli:=
|
||||
dev-libs/libnl:3
|
||||
dev-libs/userspace-rcu:=
|
||||
net-libs/libnet:1.1
|
||||
net-libs/libnetfilter_conntrack
|
||||
net-libs/libpcap
|
||||
sys-libs/ncurses:0=
|
||||
geoip? ( dev-libs/geoip )
|
||||
zlib? ( sys-libs/zlib:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
app-alternatives/lex
|
||||
sys-devel/bison
|
||||
dev-libs/libsodium
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# force mausezahn to respect CFLAGS
|
||||
sed -e '/CFLAGS/s:=:+=:' -i Extra || die
|
||||
sed -e 's/ -O2//' -i mausezahn/Makefile || die
|
||||
|
||||
# do not compress man pages by default
|
||||
sed \
|
||||
-e '/gzip/s@\$(Q).*$@$(Q)cp $(1).8 $(1)/$(1).8@' \
|
||||
-e 's@\.8\.gz@.8@' \
|
||||
-i Template || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconfargs=(
|
||||
--prefix="${EPREFIX}/usr"
|
||||
--sysconfdir="${EPREFIX}/etc"
|
||||
$(usex debug --enable-debug '')
|
||||
$(usex geoip '' --disable-geoip)
|
||||
$(usex zlib '' --disable-zlib)
|
||||
)
|
||||
# not an autoconf generated configure
|
||||
./configure "${myconfargs[@]}" || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" LD="$(tc-getCC)" CCACHE="" Q=
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake PREFIX="${ED}/usr" ETCDIR="${ED}/etc" install
|
||||
|
||||
dodoc AUTHORS README REPORTING-BUGS
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user