diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-07-16 12:27:58 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-07-16 12:27:58 +0100 |
commit | b6fa31c964a602f8461a77d5b83355e8750c12eb (patch) | |
tree | 323fa7af31640b3ea8bb57fa7a927713f3d64769 /net-libs/libnftnl | |
parent | 868fd5dc8aab84930cfaa5252b8be06b35552765 (diff) |
gentoo auto-resync : 16:07:2024 - 12:27:58
Diffstat (limited to 'net-libs/libnftnl')
-rw-r--r-- | net-libs/libnftnl/Manifest | 3 | ||||
-rw-r--r-- | net-libs/libnftnl/libnftnl-1.2.7.ebuild | 71 |
2 files changed, 74 insertions, 0 deletions
diff --git a/net-libs/libnftnl/Manifest b/net-libs/libnftnl/Manifest index 7e45956a304b..d5da6e6f083e 100644 --- a/net-libs/libnftnl/Manifest +++ b/net-libs/libnftnl/Manifest @@ -1,6 +1,9 @@ DIST libnftnl-1.2.6.tar.xz 336684 BLAKE2B a08010b26db0c7a5429f33a92ca4f17e8e158005befa5f7e3f37d60456d1b481a3f95f46c0bcec74e98ab040940f533acc279672226f0abc6ce73a26ff56718a SHA512 0c8c369eec84b0c568f0067598bece6e3be9a0fbd977e443ae3b14a5a6d842a6086ceb5426a65f8c77204709655f148c1241193f1a928f8c12154a57e3548b34 DIST libnftnl-1.2.6.tar.xz.sig 566 BLAKE2B 8ad336d0d8c693beb6335e874ad62040257e0c4527f8acb32fcc8b4889eea88ba3a42c9b2b795db6f6e3d148066ee0a9217b1e30c7e784c793458dd480ee624a SHA512 61288aa03fb80d43d09866ce549815202f682b30b283cf3119ced0fe59536d10f1c029e433651d1cb31115e977b660886a153f3361f5cafdbb0ed6da602e5b2f +DIST libnftnl-1.2.7.tar.xz 343876 BLAKE2B 42decbfdfce07c4743e7a55cf3d5d03a244ab6ac5e0f33107322ab44edcc96d360ac02f0376786656a5f7d43986499474e20a5b835f838e06d12efb017dd8eb4 SHA512 24ff3e7e97f51cb5dfda2fbd2f5e175abcec0dd58f94936022800ec356ff004a531f0915df72278b867769ba71473d407b01d52cc33a3cafb043d9a90b051f9d +DIST libnftnl-1.2.7.tar.xz.sig 566 BLAKE2B ad79b0a149d37c0ae32bcf8c64b34e02146242ce731f6860bd8d63d90e96a58e04616d543783b8edc13a0f2ca6286c16c9d8b17c34d8e8920f680a17ee70bde0 SHA512 8bf9188a287850a5057be452541871af69187c4dacde580c57be15e7f3357ab4a874745f326880260e2c2b1486e59b684db41b0d8afd57bab9d77ad62ba052bd EBUILD libnftnl-1.2.6-r1.ebuild 1562 BLAKE2B 3430f30c2094da8ae0182df379a27e86d37cb2600c2b8dcebb72d1facc95150ea6046c67dea3697119ef9524c38eb2da416b6ed579a61f716449ccc0d2159a2b SHA512 2e3e2bac94db2611524b0b06f29196fd42e7d67fd0cbbd2b71e728cee653bb731ae5c0f7dadf8d3b0e75e211a662ff5898bb5d7b81da6caec5909b9ef2ee2c50 EBUILD libnftnl-1.2.6.ebuild 1603 BLAKE2B 46c2bbd8bc269cbcfb3a1ed821aa80b9e3f6636b3071ffaabe7540414655cf961b318e13fe04f40e24701548fea2309c2c73dd0a36dc601ef4c0c4702350debf SHA512 026670ea52ac3999946baafd5e4987ac94235c0a8fd24ebfeb1251b0c30034a17d9e5fde7208e30ca66a360f771ec2d6522a51357f4a2c6e0a6590f5a4cb0b88 +EBUILD libnftnl-1.2.7.ebuild 1570 BLAKE2B 87955db35b0fb5aaa053a3e40746b5f893c1890760cbc26b25f843479d67fea8f37a003d5d78f2557f713c046379e9ee6943e123e290302023f7db707eb680dc SHA512 df1e228e7323c4e1e35477f6647c90e3cae9cb68b29fdb41e4f296ba578ed2d1f3980a86e15941140b3225eddee70d553747e40fb516dd51903120330c38508d EBUILD libnftnl-9999.ebuild 1570 BLAKE2B 87955db35b0fb5aaa053a3e40746b5f893c1890760cbc26b25f843479d67fea8f37a003d5d78f2557f713c046379e9ee6943e123e290302023f7db707eb680dc SHA512 df1e228e7323c4e1e35477f6647c90e3cae9cb68b29fdb41e4f296ba578ed2d1f3980a86e15941140b3225eddee70d553747e40fb516dd51903120330c38508d MISC metadata.xml 338 BLAKE2B fc63cdfa0a08b5933c6606290f44c4aee56f65224222425b6bf3b1c88427d17b5222a31126c38b326bbf8095786cacce65121103fcd45ce27aa16f9bde979a82 SHA512 1875b393684566e8dee08cfaa9fb0f19196121e500bab6deef6895784d33cdf2e2a7a96469ae57a02654f7dbc22e8af03b15f5a8a3dd840743ef077dc68edc71 diff --git a/net-libs/libnftnl/libnftnl-1.2.7.ebuild b/net-libs/libnftnl/libnftnl-1.2.7.ebuild new file mode 100644 index 000000000000..3559fe7f2439 --- /dev/null +++ b/net-libs/libnftnl/libnftnl-1.2.7.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/netfilter.org.asc +inherit linux-info verify-sig + +DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem" +HOMEPAGE="https://netfilter.org/projects/nftables/" + +if [[ ${PV} =~ ^[9]{4,}$ ]]; then + inherit autotools git-r3 + EGIT_REPO_URI="https://git.netfilter.org/${PN}" +else + SRC_URI=" + https://netfilter.org/projects/${PN}/files/${P}.tar.xz + verify-sig? ( https://netfilter.org/projects/${PN}/files/${P}.tar.xz.sig ) + " + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + + BDEPEND+="verify-sig? ( sec-keys/openpgp-keys-netfilter )" +fi + +LICENSE="GPL-2" +SLOT="0/11" # libnftnl.so version +IUSE="examples static-libs test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=net-libs/libmnl-1.0.4:= +" +BDEPEND+=" + virtual/pkgconfig +" +DEPEND="${RDEPEND}" + +pkg_setup() { + if kernel_is ge 3 13; then + CONFIG_CHECK="~NF_TABLES" + linux-info_pkg_setup + else + eerror "This package requires kernel version 3.13 or newer to work properly." + fi +} + +src_prepare() { + default + + [[ ${PV} =~ ^[9]{4,}$ ]] && eautoreconf +} + +src_configure() { + local myeconfargs=( + $(use_enable static-libs static) + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + + find "${ED}" -type f -name '*.la' -delete || die + + if use examples; then + find examples/ -name 'Makefile*' -delete || die "Could not rm examples" + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi +} |