diff options
author | Sam James <sam@gentoo.org> | 2022-04-05 23:03:28 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-04-05 23:03:28 +0100 |
commit | dc58a66d62843a44e1e49b84dd42557693408b22 (patch) | |
tree | 6d3008ad1a5d31845797ce64154a5c0083b233ff /net-libs/libnfnetlink | |
parent | app-metrics/node_exporter: keyword 1.3.1 for ~arm64 (diff) | |
download | gentoo-dc58a66d62843a44e1e49b84dd42557693408b22.tar.gz gentoo-dc58a66d62843a44e1e49b84dd42557693408b22.tar.bz2 gentoo-dc58a66d62843a44e1e49b84dd42557693408b22.zip |
net-libs/libnfnetlink: add 1.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs/libnfnetlink')
-rw-r--r-- | net-libs/libnfnetlink/Manifest | 2 | ||||
-rw-r--r-- | net-libs/libnfnetlink/libnfnetlink-1.0.2.ebuild | 52 |
2 files changed, 54 insertions, 0 deletions
diff --git a/net-libs/libnfnetlink/Manifest b/net-libs/libnfnetlink/Manifest index f1009620bb2c..9283a501e18b 100644 --- a/net-libs/libnfnetlink/Manifest +++ b/net-libs/libnfnetlink/Manifest @@ -1,3 +1,5 @@ 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 +DIST libnfnetlink-1.0.2.tar.bz2 298844 BLAKE2B 81c954f6ca2738b321e9319d20741aa15376e88e5f7a0ce1cfa2b02cd104f98d020ab6206bfbc79fc66655f8e40a17bfb65cbce0b1684d9373b809de5a433fc4 SHA512 a5e9ae22831f1d17703f83953f3b0ef898e8b3fa7f0f771b038db51816ddae3158574380ac4d45c09fb8fbb8677e2ccdcc5c4736e3b09de06eac99f899130854 +DIST libnfnetlink-1.0.2.tar.bz2.sig 566 BLAKE2B 9e87fc7917dd2f8b29de642ef819bca957bd6223417e167e21770450ce2eeff717ab06079ac75c689184f9188e785b663fca81cdda30b87310bfb1b456b03dd2 SHA512 3dcb980fb209c9faa9774f0393bc3b4b5fa6e899330f0d0dcb92307984f696b869de27c22dd54d7f181bddd72e104b38e8617af6bb3d6fe992a96da172b10457 diff --git a/net-libs/libnfnetlink/libnfnetlink-1.0.2.ebuild b/net-libs/libnfnetlink/libnfnetlink-1.0.2.ebuild new file mode 100644 index 000000000000..2480c324f33c --- /dev/null +++ b/net-libs/libnfnetlink/libnfnetlink-1.0.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/netfilter.org.asc +inherit linux-info verify-sig + +DESCRIPTION="The low-level library for netfilter related kernel/userspace communication" +HOMEPAGE="http://www.netfilter.org/projects/libnfnetlink/" +SRC_URI=" + https://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2 + verify-sig? ( https://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" + +BDEPEND="verify-sig? ( sec-keys/openpgp-keys-netfilter )" + +pkg_setup() { + linux-info_pkg_setup + + if kernel_is lt 2 6 18 ; then + ewarn "${PN} requires at least 2.6.18 kernel version" + fi + + #netfilter core team has changed some option names with kernel 2.6.20 + error_common=' is not set when it should be. You can activate it in the Core Netfilter Configuration' + if kernel_is lt 2 6 20 ; then + CONFIG_CHECK="~IP_NF_CONNTRACK_NETLINK" + ERROR_IP_NF_CONNTRACK_NETLINK="CONFIG_IP_NF_CONNTRACK_NETLINK:\t${error_common}" + else + CONFIG_CHECK="~NF_CT_NETLINK" + ERROR_NF_CT_NETLINK="CONFIG_NF_CT_NETLINK:\t${error_common}" + fi + + check_extra_config +} + +src_unpack() { + default + + use verify-sig && verify-sig_verify_detached "${DISTDIR}"/${P}.tar.bz2{,.sig} +} + +src_install() { + default + + # No static archives + find "${ED}" -name '*.la' -delete || die +} |