summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-16 04:58:57 +0000
committerSam James <sam@gentoo.org>2021-04-16 05:33:13 +0000
commit8c16aaa2be0e0e8072d712b3dcfd48d58b6cec76 (patch)
tree99d9eb4a3ef1019246cc3f86cad1f213250e87dd /net-analyzer/tcpdump/tcpdump-9999.ebuild
parentnet-analyzer/tcpdump: use live template (diff)
downloadgentoo-8c16aaa2be0e0e8072d712b3dcfd48d58b6cec76.tar.gz
gentoo-8c16aaa2be0e0e8072d712b3dcfd48d58b6cec76.tar.bz2
gentoo-8c16aaa2be0e0e8072d712b3dcfd48d58b6cec76.zip
net-analyzer/tcpdump: add verify-sig support
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-analyzer/tcpdump/tcpdump-9999.ebuild')
-rw-r--r--net-analyzer/tcpdump/tcpdump-9999.ebuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/net-analyzer/tcpdump/tcpdump-9999.ebuild b/net-analyzer/tcpdump/tcpdump-9999.ebuild
index db5f72d97ac2..3e4c338aca2d 100644
--- a/net-analyzer/tcpdump/tcpdump-9999.ebuild
+++ b/net-analyzer/tcpdump/tcpdump-9999.ebuild
@@ -13,8 +13,11 @@ if [[ ${PV} == *9999* ]] ; then
EGIT_REPO_URI="https://github.com/the-tcpdump-group/tcpdump"
else
- SRC_URI="https://github.com/the-tcpdump-group/${PN}/archive/${P/_}.tar.gz"
- S="${WORKDIR}/${PN}-${P/_}"
+ VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/tcpdump.asc
+ inherit verify-sig
+
+ SRC_URI="https://www.tcpdump.org/release/${P}.tar.gz"
+ SRC_URI+=" verify-sig? ( https://www.tcpdump.org/release/${P}.tar.gz.sig )"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
fi
@@ -53,6 +56,10 @@ DEPEND="
"
BDEPEND="drop-root? ( virtual/pkgconfig )"
+if [[ ${PV} != *9999* ]] ; then
+ BDEPEND+=" verify-sig? ( app-crypt/openpgp-keys-tcpdump )"
+fi
+
PATCHES=(
"${FILESDIR}"/${PN}-9999-libdir.patch
)