summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Davies <jpds@protonmail.com>2022-03-26 21:43:07 +0000
committerSam James <sam@gentoo.org>2022-03-27 03:56:29 +0100
commit89a651603e187795492f4cc2223384cc478577ed (patch)
treeaa8383b1833a6a998555ffc153457e413a50e2d3 /net-libs
parentnet-libs/libnetfilter_queue: Added verify-sig integration. (diff)
downloadgentoo-89a651603e187795492f4cc2223384cc478577ed.tar.gz
gentoo-89a651603e187795492f4cc2223384cc478577ed.tar.bz2
gentoo-89a651603e187795492f4cc2223384cc478577ed.zip
net-libs/libnfnetlink: Added verify-sig integration.
Signed-off-by: Jonathan Davies <jpds@protonmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/libnfnetlink/Manifest1
-rw-r--r--net-libs/libnfnetlink/libnfnetlink-1.0.1.ebuild14
2 files changed, 13 insertions, 2 deletions
diff --git a/net-libs/libnfnetlink/Manifest b/net-libs/libnfnetlink/Manifest
index 2f7130224cf..f1009620bb2 100644
--- a/net-libs/libnfnetlink/Manifest
+++ b/net-libs/libnfnetlink/Manifest
@@ -1,2 +1,3 @@
DIST 04aef8a4dedf267dd5744afb134ef8046e77f613-musl-fix-includes.patch 677 BLAKE2B 189c57ffc8eeb6a83e46fd1d53390e977294f7d3a269d3ffab07e1fce04083a7b4b956e93e02f4f81ce6db4ec5be785b16d1c75ed7e0b4fef9883154d9407e18 SHA512 fc452e2924fa4de66e104229bc05a663c253148fb1c0bd62e5454a907877ffb084ba6a04e38bf4ef71a4e58041f4a242001a8029aefbe97ccc00e3bfcb7bba41
DIST libnfnetlink-1.0.1.tar.bz2 320641 BLAKE2B 18d6f702afffa1bf2cb6978426f4a1aeab8692a288686c099eb7dfabff23648b4b0f1ac14b4661f16e3d50b6e7d29090d58ce715dac107acb12648e93c5df4f3 SHA512 2ec2cd389c04e21c8a02fb3f6d6f326fc33ca9589577f1739c23d883fe2ee9feaa16e83b6ed09063ad886432e49565dc3256277d035260aca5aab17954b46104
+DIST libnfnetlink-1.0.1.tar.bz2.sig 543 BLAKE2B e82c79edc77aa68b99549491650eb1888ef81c186918a452d813fb3b793b76e0334a909161a5b1b56a71ffe51b3293f6b0fe5d36b33c473dd50fa222a0844cb0 SHA512 f3ef8429e3da1bca815b186e96dfee93317f7a5712c63a4cc404648a0ee77353fae058a519681bdf684e82d1a230e717f4d34e8eaf0318e9a76dd05104fdf382
diff --git a/net-libs/libnfnetlink/libnfnetlink-1.0.1.ebuild b/net-libs/libnfnetlink/libnfnetlink-1.0.1.ebuild
index 22064cc960a..338e11cddd3 100644
--- a/net-libs/libnfnetlink/libnfnetlink-1.0.1.ebuild
+++ b/net-libs/libnfnetlink/libnfnetlink-1.0.1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit linux-info
+inherit linux-info verify-sig
PATCH_BLOB=04aef8a4dedf267dd5744afb134ef8046e77f613
PATCH_FN=${PATCH_BLOB}-musl-fix-includes.patch
@@ -12,11 +12,15 @@ DESCRIPTION="the low-level library for netfilter related kernel/userspace commun
HOMEPAGE="http://www.netfilter.org/projects/libnfnetlink/"
SRC_URI="
http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2
- https://git.alpinelinux.org/cgit/aports/plain/main/libnfnetlink/musl-fix-includes.patch -> ${PATCH_FN}"
+ https://git.alpinelinux.org/cgit/aports/plain/main/libnfnetlink/musl-fix-includes.patch -> ${PATCH_FN}
+ verify-sig? ( http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2.sig )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/netfilter.org.asc
+
+BDEPEND="verify-sig? ( sec-keys/openpgp-keys-netfilter )"
PATCHES=( "${DISTDIR}/${PATCH_FN}" )
@@ -40,6 +44,12 @@ pkg_setup() {
check_extra_config
}
+src_unpack() {
+ default
+
+ use verify-sig && verify-sig_verify_detached "${DISTDIR}"/${P}.tar.bz2{,.sig}
+}
+
src_configure() {
econf --disable-static
}