net-dns/dnscap: add 2.5.0

release with bzip2 support
wire up tests
remove LICENSE file

Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/44445
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Nicolas PARLANT
2025-11-03 10:07:18 +01:00
committed by Sam James
parent 4bed92bccd
commit bc826224e1
3 changed files with 62 additions and 1 deletions

View File

@@ -1 +1,2 @@
DIST dnscap-2.4.1.tar.gz 835899 BLAKE2B 3f1391a37cfa2c9dde1d6554c596736c6727a7df382cd659800d33e06122821647687614c876f188832d63fb4a3c1ea0a4e7b8a0d03570e777e89059cfa75aa4 SHA512 766e457b19ab35a94e7b480dfa5dba8ed8c5cf279fa99e0d682526c86e01d0b693e91cdd4e9d4226fa44a151f6fd3e06e849778bf68e7e34685f591c15109670
DIST dnscap-2.5.0.tar.gz 873389 BLAKE2B dcfd2e65bcf5a0538560fe32305962cfeb0d66ae46ae5d47e76ef1d71426c9ecaae13db13166ce72a4d0008cf15f30f5d242783e99fa586c17feb4a8727a32f5 SHA512 83c9b36b207e59aaea1b2858b74d1b6a17f18989fb57a3d2552d2339a9fc61c1f846e794b8b3f3827c214d28afb1c8172d980baed360e98f8e9261c6b6f7743d

View File

@@ -0,0 +1,60 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Network capture utility designed specifically for DNS traffic"
HOMEPAGE="https://dnscap.dns-oarc.net/"
SRC_URI="https://www.dns-oarc.net/files/dnscap/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="cryptopant seccomp"
RDEPEND="
app-arch/bzip2:=
app-arch/lz4:=
app-arch/xz-utils
app-arch/zstd:=
dev-libs/openssl:0=
dev-perl/YAML
net-libs/ldns:=
net-libs/libpcap
virtual/zlib:=
cryptopant? ( app-crypt/cryptopant:= )
seccomp? ( sys-libs/libseccomp )
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_prepare() {
default
# avoid automagic and building a fake plugin, cryptopant/cryptopant.c:161:
# "no cryptopANT support built in, can't encrypt IP addresses"
if ! use cryptopant; then
sed -e 's:cryptopant::' -i plugins/Makefile.am || die
fi
eautoreconf
}
src_configure() {
local myeconfargs=(
$(use_enable seccomp)
)
econf "${myeconfargs[@]}"
}
src_test() {
emake test
}
src_install() {
default
rm "${ED}"/usr/share/doc/${PF}/LICENSE || die
find "${D}" -name '*.la' -delete || die
}

View File

@@ -3,7 +3,7 @@
<pkgmetadata>
<!-- maintainer-needed -->
<upstream>
<remote-id type="github">DNS-OARC/dnscap</remote-id>
<remote-id type="codeberg">DNS-OARC/dnscap</remote-id>
</upstream>
<use>
<flag name="cryptopant">Enable cryptopANT plugin, implementation of crypto-PAn algorithm using <pkg>app-crypt/cryptopant</pkg> to anonymize IP addresses</flag>