Commits

Doug Freed  committed 9e40dc6

libnftnl: move from libnftables and 1.0.0 release

Package-Manager: portage-2.2.8-r1

  • Participants
  • Parent commits dddd7a9

Comments (0)

Files changed (9)

File net-libs/libnftables/Manifest

-EBUILD libnftables-9999.ebuild 923 SHA256 818be57d431d9e47d425134fc6463eaaa1c19a5cbb98db0154fad0514124b657 SHA512 ba4bf095a0b046bd3eec17c68f254419811593005520c5f7755bb080ec8478bfe97ab226c17c779cdad164016d484987c7f7b785f77140c026205661c24aae22 WHIRLPOOL 34a8029e0b146e58f4c390aed1f9bf97459e8540df7ece813fb2706e79c16141abb98495e8c9c6e1b5b4bca4b63661a6e7fe380642bef966fe611cbb1d1ead23
-MISC metadata.xml 308 SHA256 b37f264e3fcdf9d51ef16576531446fa96c6c2afceff661a0a94750b38bdd796 SHA512 64e2d707b2fc124dadd1e5371ef8660d5802acf388a5bbe7cbab9bd79102c95e756d864ce55918ae50938b6608ca367cb6e3fe4bbb220a4c25d5aa779003a11c WHIRLPOOL c71775f2e90193c26b54464a332355f40cbc4280032fa0c9e7c8ada6a52ee8e126dd0251cac644aa9d269bac68e169cdfc69163736717ee22c215172c04bd74a

File net-libs/libnftables/libnftables-9999.ebuild

-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI=5
-EGIT_REPO_URI="git://git.netfilter.org/${PN}"
-
-inherit autotools git-r3 linux-info
-
-DESCRIPTION="User-space library for low-level interaction with nftables Netlink's API over libmnl"
-HOMEPAGE="http://netfilter.org/projects/nftables/"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="xml json"
-
-COMMON_DEPEND=">=net-libs/libmnl-1.0.0
-		xml? ( >=dev-libs/mini-xml-2.6 )
-		json? ( >=dev-libs/jansson-2.3 )"
-DEPEND="virtual/pkgconfig
-		${COMMON_DEPEND}"
-RDEPEND="${COMMON_DEPEND}"
-
-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() {
-	eautoreconf
-}
-
-src_configure() {
-	econf \
-		$(use_with xml xml-parsing) \
-		$(use_with json json-parsing)
-}

File net-libs/libnftables/metadata.xml

-<?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-  <maintainer>
-    <email>dwfreed@mtu.edu</email>
-    <name>dwfreed</name>
-  </maintainer>
-  <use>
-    <flag name="json">Enable support for JSON parsing</flag>
-  </use>
-</pkgmetadata>

File net-libs/libnftnl/Manifest

+AUX libnftnl-1.0.0-91264d8.patch 1039 SHA256 5fb3f547d1b47b9df6bf7d006bd431e11cd60f3caecd2b216532ddbc94e033e8 SHA512 1bb0a54c4529242b32287249590e65da577d9d49f808a18f5d69ab2e1e6623d2a524d174333499c707412dbf48db435e27fe3aed77bad036b5f78e1a7ab20a01 WHIRLPOOL 00f63747203130f40eac3f59bed3fe22c82963afebd28957c18c8ca7c5809f52cfad0fa8aff1525bc060b40b8fbf16cac48f92c20b2114fe6848422b2cb7b425
+DIST libnftnl-1.0.0.tar.bz2 331296 SHA256 139b99637701647984f54cc637175e5fea167397c6045096872b2f55441a6c02 SHA512 f03a60705f3021e807be5e4cc407a2578435d742fe517487034f38dcf2146486a8f7535b8cf19356e21ba17b8c8431db1211704594cfbeb16dbddcd72cc475bc WHIRLPOOL 4398423e540652a34ad673306cb9a121b2f9d126f44ff3bdc363acb0f253e7a882f45a362f5c7d60e313f4f3680ee80ea32d84e01bb8fc71fc0b4f1f3c524781
+EBUILD libnftnl-1.0.0-r2.ebuild 1222 SHA256 f265369f9bceba944eaf1c1228c2fca2bbaa775b12418448eaed30c1cf532d17 SHA512 17a5c741b89d07f984df52ef3c4408a1055eb55ae3936dc4659b42321f2f281ea9bfc7ca82d7ca2429978741db6580720e465b8dfe9bed794f3890b68446f6b0 WHIRLPOOL 5506025828eb7f9d1d6fca42dbf28349cdd72d0f81ce744df28cc88265729fc59ddfe64e19a20c34b5d1eea9b77076873eec3454be59aa5ddb7342155e455168
+EBUILD libnftnl-9999.ebuild 1159 SHA256 a0642a593dffa30f53694bdfe73cd95263fa2e5e14f6e665a5818348477a2f06 SHA512 329d9ef579f626c0fe8a6e2f5c2c57b7ad4531e7add35b8cd1a68c739c2c38ab11aeeca1762b31896d78fb5a056553ed0779d0562b7bab69f8646c3cdadd106c WHIRLPOOL 070ad440fa8eb451b6f4eea38a9d8d39e9df27c4264caddda772c4f753c153d2c523da6f206ee46b263f616514ab6f2350ba4a9d9a94a0ce266e5cb071514cf6
+MISC metadata.xml 308 SHA256 b37f264e3fcdf9d51ef16576531446fa96c6c2afceff661a0a94750b38bdd796 SHA512 64e2d707b2fc124dadd1e5371ef8660d5802acf388a5bbe7cbab9bd79102c95e756d864ce55918ae50938b6608ca367cb6e3fe4bbb220a4c25d5aa779003a11c WHIRLPOOL c71775f2e90193c26b54464a332355f40cbc4280032fa0c9e7c8ada6a52ee8e126dd0251cac644aa9d269bac68e169cdfc69163736717ee22c215172c04bd74a

File net-libs/libnftnl/files/libnftnl-1.0.0-91264d8.patch

+From 91264d8b8b746f7eee8a3e1ee9b5e57758441cfc Mon Sep 17 00:00:00 2001
+From: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
+Date: Mon, 20 Jan 2014 15:56:21 +0000
+Subject: build: Ensure pkg-config file provides the right informations
+
+It's not -lnftables anymore but -lnftnl (among other details)
+
+Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
+Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
+---
+diff --git a/libnftnl.pc.in b/libnftnl.pc.in
+index 0c6d57e..fd5cc6a 100644
+--- a/libnftnl.pc.in
++++ b/libnftnl.pc.in
+@@ -1,15 +1,15 @@
+-# libnftables pkg-config file
++# libnftnl pkg-config file
+ 
+ prefix=@prefix@
+ exec_prefix=@exec_prefix@
+ libdir=@libdir@
+ includedir=@includedir@
+ 
+-Name: libnftables
++Name: libnftnl
+ Description: Netfilter nf_tables infrastructure library
+-URL: http://netfilter.org/projects/libnftables/
++URL: http://netfilter.org/projects/libnftnl/
+ Version: @VERSION@
+ Requires:
+ Conflicts:
+-Libs: -L${libdir} -lnftables
++Libs: -L${libdir} -lnftnl
+ Cflags: -I${includedir}
+--
+cgit v0.9.2

File net-libs/libnftnl/libnftnl-1.0.0-r2.ebuild

+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils linux-info toolchain-funcs
+
+DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
+HOMEPAGE="http://netfilter.org/projects/nftables/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="xml json examples static-libs"
+SRC_URI="http://netfilter.org/projects/${PN}/files/${P}.tar.bz2"
+
+COMMON_DEPEND=">=net-libs/libmnl-1.0.0
+		xml? ( >=dev-libs/mini-xml-2.6 )
+		json? ( >=dev-libs/jansson-2.3 )"
+DEPEND="virtual/pkgconfig
+		${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+
+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() {
+	epatch "${FILESDIR}"/libnftnl-1.0.0-91264d8.patch
+}
+
+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
+}

File net-libs/libnftnl/libnftnl-9999.ebuild

+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+EGIT_REPO_URI="git://git.netfilter.org/${PN}"
+
+inherit autotools git-r3 linux-info
+
+DESCRIPTION="Netlink API to the in-kernel nf_tables subsystem"
+HOMEPAGE="http://netfilter.org/projects/nftables/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="xml json examples static-libs"
+
+COMMON_DEPEND=">=net-libs/libmnl-1.0.0
+		xml? ( >=dev-libs/mini-xml-2.6 )
+		json? ( >=dev-libs/jansson-2.3 )"
+DEPEND="virtual/pkgconfig
+		${COMMON_DEPEND}"
+RDEPEND="${COMMON_DEPEND}"
+
+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() {
+	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
+}

File net-libs/libnftnl/metadata.xml

+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+  <maintainer>
+    <email>dwfreed@mtu.edu</email>
+    <name>dwfreed</name>
+  </maintainer>
+  <use>
+    <flag name="json">Enable support for JSON parsing</flag>
+  </use>
+</pkgmetadata>

File profiles/updates/1Q-2014

+move net-libs/libnftables net-libs/libnftnl