mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-13 21:47:44 +00:00
Done via: ``` git grep -l virtual/zlib$ | xargs sed -i -e 's@virtual/zlib$@&:=@' ``` Signed-off-by: Michał Górny <mgorny@gentoo.org>
54 lines
1.1 KiB
Bash
54 lines
1.1 KiB
Bash
# 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/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_install() {
|
|
default
|
|
find "${D}" -name '*.la' -delete || die
|
|
}
|