net-libs/libmnl,libnftnl: Sync and add package for iptables-nft backend

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
This commit is contained in:
Sayan Chowdhury 2021-08-06 13:45:34 +05:30 committed by Sayan Chowdhury
parent 9a1f5873bc
commit 01ee61ce39
14 changed files with 208 additions and 453 deletions

View File

@ -1,73 +0,0 @@
# ChangeLog for net-libs/libmnl
# Copyright 1999-2016 Gentoo Foundation; Distributed under the GPL v2
# (auto-generated from git log)
*libmnl-1.0.3-r1 (09 Aug 2015)
09 Aug 2015; Robin H. Johnson <robbat2@gentoo.org> +libmnl-1.0.3-r1.ebuild,
+metadata.xml:
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration
tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this
project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo
developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve
cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014
work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on
the bikeshed
24 Aug 2015; Justin Lecher <jlec@gentoo.org> metadata.xml:
Use https by default
Convert all URLs for sites supporting encrypted connections from http to
https
Signed-off-by: Justin Lecher <jlec@gentoo.org>
24 Aug 2015; Mike Gilbert <floppym@gentoo.org> metadata.xml:
Revert DOCTYPE SYSTEM https changes in metadata.xml
repoman does not yet accept the https version.
This partially reverts eaaface92ee81f30a6ac66fe7acbcc42c00dc450.
Bug: https://bugs.gentoo.org/552720
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Unify quoting in metadata.xml files for machine processing
Force unified quoting in all metadata.xml files since lxml does not
preserve original use of single and double quotes. Ensuring unified
quoting before the process allows distinguishing the GLEP 67-related
metadata.xml changes from unrelated quoting changes.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Replace all herds with appropriate projects (GLEP 67)
Replace all uses of herd with appropriate project maintainers, or no
maintainers in case of herds requested to be disbanded.
24 Jan 2016; Michał Górny <mgorny@gentoo.org> metadata.xml:
Set appropriate maintainer types in metadata.xml (GLEP 67)

View File

@ -1,150 +0,0 @@
# ChangeLog for net-libs/libmnl
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-libs/libmnl/ChangeLog,v 1.44 2015/07/05 16:03:19 blueness Exp $
05 Jul 2015; Anthony G. Basile <blueness@gentoo.org> libmnl-1.0.3-r1.ebuild:
Keyword ~mips.
05 May 2015; Mike Frysinger <vapier@gentoo.org> libmnl-1.0.3-r1.ebuild:
Mark arm64/m68k/s390/sh stable.
29 Oct 2014; Jeroen Roovers <jer@gentoo.org> -libmnl-1.0.3.ebuild:
Old.
29 Oct 2014; Agostino Sarubbo <ago@gentoo.org> libmnl-1.0.3-r1.ebuild:
Stable for sparc, wrt bug #517418
28 Oct 2014; Agostino Sarubbo <ago@gentoo.org> libmnl-1.0.3-r1.ebuild:
Stable for ia64, wrt bug #517418
27 Oct 2014; Agostino Sarubbo <ago@gentoo.org> libmnl-1.0.3-r1.ebuild:
Stable for ppc64, wrt bug #517418
18 Oct 2014; Agostino Sarubbo <ago@gentoo.org> libmnl-1.0.3-r1.ebuild:
Stable for ppc, wrt bug #517418
17 Oct 2014; Tobias Klausmann <klausman@gentoo.org> libmnl-1.0.3-r1.ebuild:
Stable on alpha, bug 517418
10 Oct 2014; Agostino Sarubbo <ago@gentoo.org> libmnl-1.0.3-r1.ebuild:
Stable for amd64, wrt bug #517418
14 Aug 2014; Pawel Hajdan jr <phajdan.jr@gentoo.org> libmnl-1.0.3-r1.ebuild:
x86 stable wrt bug #517418
31 Jul 2014; Jeroen Roovers <jer@gentoo.org> libmnl-1.0.3-r1.ebuild:
Stable for HPPA (bug #517418).
29 Jul 2014; Markus Meier <maekke@gentoo.org> libmnl-1.0.3-r1.ebuild:
arm stable, bug #517418
29 Jul 2014; Mike Frysinger <vapier@gentoo.org> libmnl-1.0.3-r1.ebuild:
Add arm64/s390/sh love.
24 Jun 2013; Mike Frysinger <vapier@gentoo.org> libmnl-1.0.3-r1.ebuild:
Simplify how we install libmnl into / by letting gen_usr_ldscript do all the
work. This also avoids installing an empty /lib/pkgconfig dir.
29 Apr 2013; Jeroen Roovers <jer@gentoo.org> libmnl-1.0.3-r1.ebuild:
Fix building with USE=-static-libs.
*libmnl-1.0.3-r1 (29 Apr 2013)
29 Apr 2013; Jeroen Roovers <jer@gentoo.org> -libmnl-1.0.2.ebuild,
+libmnl-1.0.3-r1.ebuild:
Add USE=static-libs.
21 Feb 2013; Jeroen Roovers <jer@gentoo.org> libmnl-1.0.3.ebuild:
Stable for HPPA (bug #457806).
21 Feb 2013; Agostino Sarubbo <ago@gentoo.org> libmnl-1.0.3.ebuild:
Stable for sparc, wrt bug #457806
21 Feb 2013; Agostino Sarubbo <ago@gentoo.org> libmnl-1.0.3.ebuild:
Stable for ia64, wrt bug #457806
19 Feb 2013; Agostino Sarubbo <ago@gentoo.org> libmnl-1.0.3.ebuild:
Stable for alpha, wrt bug #457806
18 Feb 2013; Agostino Sarubbo <ago@gentoo.org> libmnl-1.0.3.ebuild:
Stable for ppc64, wrt bug #457806
18 Feb 2013; Agostino Sarubbo <ago@gentoo.org> libmnl-1.0.3.ebuild:
Stable for ppc, wrt bug #457806
17 Feb 2013; Agostino Sarubbo <ago@gentoo.org> libmnl-1.0.3.ebuild:
Stable for x86, wrt bug #457806
16 Feb 2013; Sergey Popov <pinkbyte@gentoo.org> libmnl-1.0.3.ebuild:
Stable on arm, wrt bug #457806
16 Feb 2013; Sergey Popov <pinkbyte@gentoo.org> libmnl-1.0.3.ebuild:
Stable on amd64, wrt bug #457806
16 Feb 2013; Tim Harder <radhermit@gentoo.org> metadata.xml:
Add to netmon herd.
16 Feb 2013; Pacho Ramos <pacho@gentoo.org> -libmnl-1.0.1.ebuild,
metadata.xml:
Cleanup due bug #96436
08 Feb 2013; Mike Frysinger <vapier@gentoo.org> libmnl-1.0.1.ebuild,
libmnl-1.0.2.ebuild, libmnl-1.0.3.ebuild:
Fix docompress path, and simplify the find deletes.
29 Dec 2012; Sergey Popov <pinkbyte@gentoo.org> libmnl-1.0.3.ebuild:
Use prune_libtool_files instead of manual removing, add ~amd64-linux keyword
01 Dec 2012; Raúl Porcel <armin76@gentoo.org> libmnl-1.0.3.ebuild:
Add ~alpha/~ia64/~sparc wrt #439394, #432974
26 Oct 2012; Anthony G. Basile <blueness@gentoo.org> libmnl-1.0.3.ebuild:
keyword ~arm, bug #439394
26 Oct 2012; Anthony G. Basile <blueness@gentoo.org> libmnl-1.0.3.ebuild:
keyword ~ppc64, bug #432974
*libmnl-1.0.3 (02 Sep 2012)
02 Sep 2012; Tim Harder <radhermit@gentoo.org> +libmnl-1.0.3.ebuild:
Version bump.
24 Aug 2012; Jeroen Roovers <jer@gentoo.org> libmnl-1.0.2.ebuild:
Marked ~hppa (bug #432380).
11 Aug 2012; Markus Meier <maekke@gentoo.org> libmnl-1.0.2.ebuild:
x86 stable, bug #419263
03 Aug 2012; Markos Chandras <hwoarang@gentoo.org> libmnl-1.0.2.ebuild:
Stable on amd64 wrt bug #419263
02 Aug 2012; Jeroen Roovers <jer@gentoo.org> libmnl-1.0.1.ebuild,
libmnl-1.0.2.ebuild:
Fix spelling.
14 Jun 2012; Michael Weber <xmw@gentoo.org> libmnl-1.0.2.ebuild:
adding ~ppc keyword (bug 304037)
*libmnl-1.0.2 (25 Jan 2012)
25 Jan 2012; Peter Volkov <pva@gentoo.org> +libmnl-1.0.2.ebuild:
Version bump.
16 Sep 2011; Tony Vroon <chainsaw@gentoo.org> libmnl-1.0.1.ebuild:
Marked stable on AMD64 based on arch testing by Ian "idella4" Delaney &
Tomáš "Mepho" Pružina in bug #381613.
15 Sep 2011; Andreas Schuerch <nativemad@gentoo.org> libmnl-1.0.1.ebuild:
x86 stable, bug 381613
01 May 2011; Fabian Groffen <grobian@gentoo.org> libmnl-1.0.1.ebuild:
Fix econf call for Prefix
01 May 2011; Peter Volkov <pva@gentoo.org> libmnl-1.0.1.ebuild:
Put library into / and libmnl.pc into searchable by pkg-config path.
*libmnl-1.0.1 (01 May 2011)
01 May 2011; Peter Volkov <pva@gentoo.org> +libmnl-1.0.1.ebuild,
+metadata.xml:
Initial import. Required for new ipset.

View File

@ -1,5 +1 @@
DIST libmnl-1.0.3.tar.bz2 337375 SHA256 6f14336e9acdbc62c2dc71bbb59ce162e54e9af5c80153e92476c5443fe784de SHA512 c47b76a6125271ef9dce13bc8bebd415d2bbd79b6d50491d8ba23344e7e6fe0c1413fe055913ab9444203f0d73166b79f0d4b532b13b62feecde3e5a8cd442a7 WHIRLPOOL 80717c63015e8df36a11c2b7914d63747ff296fac72b4f3a66670038f94d28961ddc6dce2050c41d3ceaf195030b61535ee84a628fa1fa686d8fed013f4d6261 DIST libmnl-1.0.4.tar.bz2 301270 BLAKE2B e24ae3e7a8bcfe35a04256c495bb3e9a5ec41b6bea9b7ffa0a8ebc82ce847921d4a44e5be3558239fee5008c10541a9ac3614d1a6b80d280b632a76da16be5e8 SHA512 e2bbfb688fe41913d53c74ba7ec95b4e88ee2c52b556b8608185f2fcbd629665423a3b37f877f84426ba257cf6040fa701539d67166b00b8e3e2dfde6831a2f9
EBUILD libmnl-1.0.3-r1.ebuild 740 SHA256 fc586674ee11e0e277f03f44edc5eeeffa9f417bf3374aa72bd52c0dc29995da SHA512 a7793cc1cda47cccc6074c8c853909654ea17e0d5d2c8e4ec0a8396f6a0321ee8fb248d298372e4aeddf3eb29cf2db98816c74d7cc37829ab6a0f468b0a3f92a WHIRLPOOL aa3c9867f31757b20198c2adf706ea160bd7f33b07e7234730e4f0c856f9d9a65c909982c3fb5f0d713539a1a0401841ef42e5e35383248f5879d9ae5810a3c9
MISC ChangeLog 2823 SHA256 e1fd1708603c20d1dae13a0dd6f3bcb280ae3dca4e861a0a6e20f1870c681451 SHA512 a01ab39ea8e49bc93b09819cb52e5e5dc8d01c5a33b472e2c038a4d2804241298bfd2e29fdea7bef4fb0ff4abce5856ffa90d8d00a0d9f774946e89803bc4596 WHIRLPOOL fd4806da321a2d2f2f133a97ad6cd16f275c8018e20339fcecd4d6fdc801123dd28cb5732b6b48f8e24498d56d84af9a84183e88d644afa640a1af19d761a815
MISC ChangeLog-2015 5267 SHA256 0985626f2ff9e238d4b087dcf996bc2fba3b6dc81e02f4c72ce44c3a90863166 SHA512 02afe9debfaa154cc4d8d6954485772e7688ad29b337e174917582f246696753bc75966bc14f382dc8bd65d1de6f0249bb092684dc2cf3226cd0c7e8019abc6f WHIRLPOOL 5e56f6566af6df34783ffe00b56effb73ba0ae0851ebfa4a503f4af2c5dcdadd3e9c8957ec18065de50bdcc65684bce0b12349ca9a291588d1e4627027cc2a7a
MISC metadata.xml 664 SHA256 8045a4bd434e874e7f3a3399d8023c9eea3a6c2b7a4ebfaca7b1619c9a5ace5d SHA512 92caf3829016e88cd6560da7ac0bf8140068b69abe8341b5a5c88ee353bdb9bcd5a5b5a1563cc9114d91529b8a134b42b685734e62127b2834393a76e01c5cd7 WHIRLPOOL 334c6c60ea2a2d7c793cdcc9f4a0da7b9c00f1833324c1393b91f6f63b1f4a36d25f10d1212aa8eb3fed1b7b382c74d10fffa0bfae1a02acb864c3cde6a17850

View File

@ -1,32 +0,0 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
inherit eutils toolchain-funcs
DESCRIPTION="Minimalistic netlink library"
HOMEPAGE="http://netfilter.org/projects/libmnl"
SRC_URI="http://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux"
IUSE="examples static-libs"
src_configure() {
econf $(use_enable static-libs static)
}
src_install() {
default
gen_usr_ldscript -a mnl
prune_libtool_files
if use examples; then
find examples/ -name 'Makefile*' -delete
dodoc -r examples/
docompress -x /usr/share/doc/${PF}/examples
fi
}

View File

@ -0,0 +1,33 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit usr-ldscript
DESCRIPTION="Minimalistic netlink library"
HOMEPAGE="https://netfilter.org/projects/libmnl/"
SRC_URI="https://www.netfilter.org/projects/${PN}/files/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0/0.2.0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux"
IUSE="examples static-libs"
src_configure() {
econf $(use_enable static-libs static)
}
src_install() {
default
gen_usr_ldscript -a mnl
find "${D}" -name '*.la' -delete || die
if use examples; then
find examples/ -name 'Makefile*' -delete || die
dodoc -r examples/
docompress -x /usr/share/doc/${PF}/examples
fi
}

View File

@ -12,4 +12,7 @@
library aims to provide simple helpers that allows you to re-use code and to library aims to provide simple helpers that allows you to re-use code and to
avoid re-inventing the wheel. avoid re-inventing the wheel.
</longdescription> </longdescription>
<upstream>
<remote-id type="cpe">cpe:/a:netfilter:libmnl</remote-id>
</upstream>
</pkgmetadata> </pkgmetadata>

View File

@ -1,9 +1,2 @@
DIST libnftnl-1.0.5.tar.bz2 367016 SHA256 f6d4f5a702e38bc7987f2363f9fcd65930e8b702595c221a497e2f3a359be497 SHA512 85c71aaaeeafdffe09f2591f26d49d41e9f511a53ed313fe642b4968eae8aac1246a53d5908fc737c6eb9cc4f5f3ef2a4eaa17fe33db453a1fd60f2f9d5c5a1d WHIRLPOOL 15fb25aa9e23bfdcb19ab21ea1d6eadd22e5acc0c38e761e4637a06136c809f5a5827ac58643515432e1394e3e8d4575df11e52b5f16ca787157317e5e2ae463 DIST libnftnl-1.1.9.tar.bz2 389639 BLAKE2B 230a78cc350910735c622f4996a217490ee2384a0f6809784aa3ba0de484f540ea83d8cb72933c05961103ba20339b3eae3e866135a222b6f96df0ef01ac8066 SHA512 8e2551a902a320769198e0ebce52596501c548e230c3172ba4989e25dcb3dd6c9b97a104af69b93ede4ef298811cff10608758e6f1d274e758d87306c4b50f25
DIST libnftnl-1.0.6.tar.bz2 381897 SHA256 ad3b932a39a1e567308e91b683b32239a5e1aea9b4582dfffe2288c3400ab07e SHA512 d813c9d0dbdeaffc30695fb0b5dbf987849339d119774c4f0e219db835f2ad9111a7436fd474ffa96b07e288d537cb4a1be153afcca23dabce0c264e1c4a3c62 WHIRLPOOL c4221c99ee437125c1b10d1d47db7586b979e0ce8e7187a2a9fd5ad3b866e0e6b451aba0956c9a48cec9fb7fc411f523c5f35cd9ef2cd1a939aaab7cb7570728 DIST libnftnl-1.2.0.tar.bz2 388751 BLAKE2B 6f61e7af8e50577029b1cf5ba7260f3803a64c410c7d35be8bbf3b6f9445d9db3be367442f56fb81f3ed49bc3efeab8dd2ed51bab4a1e4427f552d48e4bb559a SHA512 2a068e7eab308442bbfba5325f3aebeb874c142b029ff5906cadf63a1f879b20930bc55cd9554c5d256a0642f0f5a6d36177d9ae88cf507ab5dfc7fabffbb380
DIST libnftnl-1.0.7.tar.bz2 384969 SHA256 9bb66ecbc64b8508249402f0093829f44177770ad99f6042b86b3a467d963982 SHA512 a220c6a2857b4ff7325bfa4fbf537c5afeb66232a7e190b50c3077f01b86f0fb1842055ccc719280b36820ac7103cbe8168944ffe10c55444830ff77449fa6a5 WHIRLPOOL 400edc3bf8268e6c7d4a6804fe36eaca271144019c2220b27865e755466318fe18e1ee5be583d63fc3cfcb1c6819ab557e17fefcba4b96c74e918d024012aadc
EBUILD libnftnl-1.0.5.ebuild 1241 SHA256 6486443fe61c326e7f83f5d6006a76b3c4b58496e3ea827e2fa8db2e3fab7ea0 SHA512 fb6a9a2c52589f525041f51d0d3eded69e23f253036c0c8fd26b372683799605554473813f0801170d54c00b1c955c059575578e5b41d179fcafc52423fe86e1 WHIRLPOOL 1673c764d2e0ae2fbe0cd61f10c69b0a21d8d56b6081237fb546c329069f3874f6c51731a329508793d8fbd4abc7bac502e2f1886e8e8c690f767a9aa354019e
EBUILD libnftnl-1.0.6.ebuild 1302 SHA256 18fd375302a2e9ee606c89fb2a57e3fb6e74e31b8ffb195910ac8b6106b4b83e SHA512 11a9d9694a2a01e539d6d81651828efaa4972c6fcfcdfa541ceed13cb4b553f4d9cdc07d23ffdb5c86f239840f970994d1af9c1f742374b0abf998f2e4d4294f WHIRLPOOL 09b51f49fec9a7603a0b7c57832c641919f6d70184c9f3526e974ae8c6acff31be908a85dc32841d51313dee579b9c7140a08f983f5800a3e018ec90a6bae9f2
EBUILD libnftnl-1.0.7.ebuild 1305 SHA256 546e7c5254d3660511a5edae0483b0fe05d1bbba680e9d1bc23610bd40b63b3c SHA512 06aee62633e1b83ec9f1a7f484657901f93fac559cea7e7cc7cd53b617615392a63bbdc7989b2f197215c986fca67c7dabde7f12fa494b23f0e7b0788ed35cd1 WHIRLPOOL e7d6440e2654e76257273acd7ce831b7bb7c7a3282e5fc4b99d6b82adb94049ad3bab70a7a23873f2880adfb7088fc59741a6a1c40b87c9884594cce15dd5ff8
MISC ChangeLog 4504 SHA256 b3a85750687dc6beff070b8fefd9307d1b7b5759894c34534fde17eca4a6e56f SHA512 b067d05881eea93e6c4da941ea542e1350cc6f6553f138de01a981f9738763554668e317c0159dd2a4659bd71f46fa19353b6c2c76e05803126351207b2d5105 WHIRLPOOL ea66000f5d372511130733255d10215ac358ac4ef6a4768e200468eeccd38b5bc2e56577dcb9f30e33c7e57fba45241bec074cf6bab833eab93d0b5acb020695
MISC ChangeLog-2015 1730 SHA256 787f672eccae45f586a44c4a72c8457836f67af7f78fe5415c9c711b88866101 SHA512 46f4a9f4f1f6556d0b33c4a55ff3531857a0806f1ec8970df7d2b00172c54789e6b406041119e62636bdee3f25956b7a0e82daa4d081ff9aec278b2811bfd6cb WHIRLPOOL 21ac9d47fc9c5397d9ae0a7cbbc4ade36611d3a88d1230ab5d356ef4d1fb9caa84fdadb27bcc5bdbea981ca9fc794ba6ea4f9802af63a966b1094051fffba807
MISC metadata.xml 419 SHA256 fec504cb2cceba1c7517e24c10ce73859d00e10dc60b8af246818f9bd017d17a SHA512 69d0cd4ced4b2ef0106a52a67f237ce19ec87b20c7a1f64d6b228792d7f81d14f8cebf5658d9e931da54e479852de229b352bc897859e07bc4a0b606ada62154 WHIRLPOOL 53f59dc1c031f2f8b2d0630a625128c49d08f338745e47d11f343f9458ec4988a6734ee42c7af41d7d86cdf9201eda1327b29bf02c7248e632ee8955df7649fb

View File

@ -1,57 +0,0 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit base linux-info toolchain-funcs eutils
DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
HOMEPAGE="http://netfilter.org/projects/nftables/"
SRC_URI="http://netfilter.org/projects/${PN}/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0/4"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
IUSE="examples json static-libs test xml"
RDEPEND=">=net-libs/libmnl-1.0.0
xml? ( >=dev-libs/mini-xml-2.6 )
json? ( >=dev-libs/jansson-2.3 )"
DEPEND="virtual/pkgconfig
${RDEPEND}"
REQUIRED_USE="test? ( json xml )"
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_configure() {
econf \
$(use_enable static-libs static) \
$(use_with xml xml-parsing) \
$(use_with json json-parsing)
}
src_install() {
default
gen_usr_ldscript -a nftnl
prune_libtool_files
if use examples; then
find examples/ -name 'Makefile*' -delete
dodoc -r examples/
docompress -x /usr/share/doc/${PF}/examples
fi
}
src_test() {
default
cd tests || die
./test-script.sh || die
}

View File

@ -1,61 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools linux-info toolchain-funcs eutils
DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
HOMEPAGE="http://netfilter.org/projects/nftables/"
SRC_URI="http://netfilter.org/projects/${PN}/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0/4"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ppc ~ppc64 x86"
IUSE="examples json static-libs test threads xml"
RDEPEND=">=net-libs/libmnl-1.0.0
xml? ( >=dev-libs/mini-xml-2.6[threads=] )
json? ( >=dev-libs/jansson-2.3 )"
DEPEND="virtual/pkgconfig
${RDEPEND}"
REQUIRED_USE="test? ( json xml )"
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
eautoreconf
}
src_configure() {
econf \
$(use_enable static-libs static) \
$(use_with xml xml-parsing) \
$(use_with json json-parsing)
}
src_install() {
default
gen_usr_ldscript -a nftnl
prune_libtool_files
if use examples; then
find examples/ -name 'Makefile*' -delete
dodoc -r examples/
docompress -x /usr/share/doc/${PF}/examples
fi
}
src_test() {
default
cd tests || die
./test-script.sh || die
}

View File

@ -1,59 +0,0 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools linux-info toolchain-funcs
DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
HOMEPAGE="http://netfilter.org/projects/nftables/"
SRC_URI="http://netfilter.org/projects/${PN}/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0/4"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
IUSE="examples json static-libs test threads"
RDEPEND=">=net-libs/libmnl-1.0.0
json? ( >=dev-libs/jansson-2.3 )"
DEPEND="virtual/pkgconfig
${RDEPEND}"
REQUIRED_USE="test? ( json )"
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
eautoreconf
}
src_configure() {
econf \
$(use_enable static-libs static) \
$(use_with json json-parsing)
}
src_test() {
default
cd tests || die
./test-script.sh || die
}
src_install() {
default
gen_usr_ldscript -a nftnl
find "${D}" -name '*.la' -delete || die "Could not rm libtool files"
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
}

View File

@ -0,0 +1,49 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit linux-info usr-ldscript
DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
HOMEPAGE="https://netfilter.org/projects/nftables/"
SRC_URI="https://netfilter.org/projects/${PN}/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0/11" # libnftnl.so version
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86"
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_configure() {
local myeconfargs=(
$(use_enable static-libs static)
)
econf "${myeconfargs[@]}"
}
src_install() {
default
gen_usr_ldscript -a nftnl
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
}

View File

@ -0,0 +1,60 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools linux-info usr-ldscript
DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
HOMEPAGE="https://netfilter.org/projects/nftables/"
if [[ ${PV} =~ ^[9]{4,}$ ]]; then
inherit git-r3
EGIT_REPO_URI="https://git.netfilter.org/${PN}"
else
SRC_URI="https://netfilter.org/projects/${PN}/files/${P}.tar.bz2"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
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
gen_usr_ldscript -a nftnl
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
}

View File

@ -0,0 +1,60 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools linux-info usr-ldscript
DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
HOMEPAGE="https://netfilter.org/projects/nftables/"
if [[ ${PV} =~ ^[9]{4,}$ ]]; then
inherit git-r3
EGIT_REPO_URI="https://git.netfilter.org/${PN}"
else
SRC_URI="https://netfilter.org/projects/${PN}/files/${P}.tar.bz2"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
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
gen_usr_ldscript -a nftnl
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
}

View File

@ -1,15 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata> <pkgmetadata>
<maintainer type="person">
<email>mrueg@gentoo.org</email>
<name>Manuel Rüger</name>
</maintainer>
<maintainer type="project"> <maintainer type="project">
<email>base-system@gentoo.org</email> <email>base-system@gentoo.org</email>
<name>Gentoo Base System</name> <name>Gentoo Base System</name>
</maintainer> </maintainer>
<use>
<flag name="json">Supports parsing of JSON</flag>
</use>
</pkgmetadata> </pkgmetadata>