From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5B80B1382C5 for ; Thu, 4 Jan 2018 10:58:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9111AE0882; Thu, 4 Jan 2018 10:58:01 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5F5DEE0882 for ; Thu, 4 Jan 2018 10:57:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0C746335C0C for ; Thu, 4 Jan 2018 10:57:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 620D117B for ; Thu, 4 Jan 2018 10:57:56 +0000 (UTC) From: "Lars Wendler" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lars Wendler" Message-ID: <1515063464.2ea8a644f282001900f7955e50b1f854b5296c55.polynomial-c@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libnftnl/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/libnftnl/Manifest net-libs/libnftnl/libnftnl-1.0.9.ebuild X-VCS-Directories: net-libs/libnftnl/ X-VCS-Committer: polynomial-c X-VCS-Committer-Name: Lars Wendler X-VCS-Revision: 2ea8a644f282001900f7955e50b1f854b5296c55 X-VCS-Branch: master Date: Thu, 4 Jan 2018 10:57:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 41421ce6-7f25-492d-aa9f-00ee568f3fc5 X-Archives-Hash: bacc07bdc3d2b686121892f264b22bb5 commit: 2ea8a644f282001900f7955e50b1f854b5296c55 Author: Lars Wendler gentoo org> AuthorDate: Thu Jan 4 10:47:33 2018 +0000 Commit: Lars Wendler gentoo org> CommitDate: Thu Jan 4 10:57:44 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ea8a644 net-libs/libnftnl: Bump to version 1.0.9 Package-Manager: Portage-2.3.19, Repoman-2.3.6 net-libs/libnftnl/Manifest | 1 + net-libs/libnftnl/libnftnl-1.0.9.ebuild | 61 +++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/net-libs/libnftnl/Manifest b/net-libs/libnftnl/Manifest index f599cc2a29d..ab7d2dfac87 100644 --- a/net-libs/libnftnl/Manifest +++ b/net-libs/libnftnl/Manifest @@ -1,3 +1,4 @@ DIST libnftnl-1.0.6.tar.bz2 381897 BLAKE2B 9811c3a3faac0323ba3126bc4e4e1c81e3a29f2b5456f516a431581099678aa821ca822387b4e84e768b254ff21b57456bb31fdf0f1dd5583d937b4b67fa3252 SHA512 d813c9d0dbdeaffc30695fb0b5dbf987849339d119774c4f0e219db835f2ad9111a7436fd474ffa96b07e288d537cb4a1be153afcca23dabce0c264e1c4a3c62 DIST libnftnl-1.0.7.tar.bz2 384969 BLAKE2B 9817fac76e2e29c7fef44a83ec454eced1a435045a47171506d264a6175011b09a9b4d02c4934e7fba86bfe6f8560f4ea7452cef193287de7e88f211f4e9a241 SHA512 a220c6a2857b4ff7325bfa4fbf537c5afeb66232a7e190b50c3077f01b86f0fb1842055ccc719280b36820ac7103cbe8168944ffe10c55444830ff77449fa6a5 DIST libnftnl-1.0.8.tar.bz2 400496 BLAKE2B d2563f707ceb40b8cd7c4b4fdede64943fabcc8a639eb61c844f7b941786a49b1c029e375977759717e5cb8f8dc2019ddcbf48223347f868713d1a077d51d8a8 SHA512 df9f5967908ce5e6a6a85fe4328bdf6e7501ce6b0e42239b750782aeb76c30b1aae80dd07f73a06fb077d072b1269c4e0c5fd525feed1055400201567d215ef9 +DIST libnftnl-1.0.9.tar.bz2 402296 BLAKE2B 87d1fe9543c1451bf90bd8b2dd442d783649940f38cf10081acac46cd985bd0826f5d2eaab2af65b80ebd4b0a9bfd7dba53ff420fa0f6b901296aa02c746e3ca SHA512 ca4a9402fba8b1354314aed45637026afa4faf880991baf93b2b7e01ca7f44e75ffedc624728bd5a7aa1b30bcbb83b849d2f9aea55be7a18f49036653c08151b diff --git a/net-libs/libnftnl/libnftnl-1.0.9.ebuild b/net-libs/libnftnl/libnftnl-1.0.9.ebuild new file mode 100644 index 00000000000..ba796364c64 --- /dev/null +++ b/net-libs/libnftnl/libnftnl-1.0.9.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 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="https://netfilter.org/projects/nftables/" +SRC_URI="https://netfilter.org/projects/${PN}/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0/7" # libnftnl.so version +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() { + local myeconfargs=( + $(use_enable static-libs static) + $(use_with json json-parsing) + ) + econf "${myeconfargs[@]}" +} + +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 +}