Gentoo Archives: gentoo-commits

From: "Göktürk Yüksek" <gokturk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/nftables/files/, net-firewall/nftables/
Date: Sun, 03 Jul 2016 22:09:08
Message-Id: 1467583106.4bb40c4276fd8bf1f0e109a033eae18dab1da480.gokturk@gentoo
1 commit: 4bb40c4276fd8bf1f0e109a033eae18dab1da480
2 Author: Nicholas Vinson <nvinson234 <AT> gmail <DOT> com>
3 AuthorDate: Fri Jun 3 03:28:53 2016 +0000
4 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 3 21:58:26 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4bb40c42
7
8 net-firewall/nftables: version bump to 0.6
9
10 Fixes bug #584898 and updates the nftables-0.5-pdf-doc.patch to match
11 upstream submission.
12
13 Gentoo-bug: 584898
14 Package-Manager: portage-2.3.0_rc1
15
16 net-firewall/nftables/Manifest | 1 +
17 .../nftables/files/nftables-0.5-pdf-doc.patch | 22 +++----
18 net-firewall/nftables/nftables-0.6.ebuild | 68 ++++++++++++++++++++++
19 3 files changed, 80 insertions(+), 11 deletions(-)
20
21 diff --git a/net-firewall/nftables/Manifest b/net-firewall/nftables/Manifest
22 index 78785f2..99fde80 100644
23 --- a/net-firewall/nftables/Manifest
24 +++ b/net-firewall/nftables/Manifest
25 @@ -1 +1,2 @@
26 DIST nftables-0.5.tar.gz 216740 SHA256 b48991f4e9e73b689bc254fa06b3ff3c1f937241d333291cb2ae72c0cd2398b6 SHA512 5d804ac9bb340446e52e5b0e86b726216ecc0d1eb42738cf133ba1acc5b442f720f5644005e02b9e3e8fae4e2bdc64d32560d6c6b1b26fe15bde24d62db51679 WHIRLPOOL 348d511c7ee530e6fb04b9828babad45407e4b60c443aaa8902aa9535705ff54cb78cd5e5c8ba970b57b97406b00718e94ab8a346fceaa82803bdaad84d30285
27 +DIST nftables-0.6.tar.gz 252523 SHA256 85dd7fa4e741c0be02efddbc57b5d300e1147f09ec6f81d0399110f96dc958f0 SHA512 17f3b94687865e077dc082cf61b29ab2854fd1ffe18212a8d424f2876aef8db9780dd4d06dca8e6d093498151d47bab73e40e1f54062a83a23a3cbe75f27e921 WHIRLPOOL d15eaf81426d73bea28752f96727d291120120fb2aaa994d421d900974eb45062957435e077664fb916780f636ed9b61889dbec8b627d5d309512bae96f02874
28
29 diff --git a/net-firewall/nftables/files/nftables-0.5-pdf-doc.patch b/net-firewall/nftables/files/nftables-0.5-pdf-doc.patch
30 index b6f7834..d09faa3 100644
31 --- a/net-firewall/nftables/files/nftables-0.5-pdf-doc.patch
32 +++ b/net-firewall/nftables/files/nftables-0.5-pdf-doc.patch
33 @@ -4,22 +4,22 @@ generation.
34 --- a/configure.ac
35 +++ b/configure.ac
36 @@ -27,10 +27,16 @@
37 - AS_IF([test "x$enable_debug" = "xno"], [with_debug=no], [with_debug=yes]),
38 - [with_debug=yes])
39 - AC_SUBST(with_debug)
40 - AM_CONDITIONAL([BUILD_DEBUG], [test "x$with_debug" != xno])
41 + AC_CONFIG_HEADER([config.h])
42 +
43 + AC_DEFINE([_GNU_SOURCE], [], [Enable various GNU extensions])
44 + AC_DEFINE([_STDC_FORMAT_MACROS], [], [printf-style format macros])
45
46 +AC_ARG_ENABLE([pdf-doc],
47 -+ AS_HELP_STRING([--enable-pdf-doc], [Enable PDF documentation]),
48 ++ AS_HELP_STRING([--disable-pdf-doc], [Disable PDF documentation]),
49 + AS_IF([test "x$enable_pdf_doc" = "xno"], [enable_pdf_doc=no],
50 -+ [enable_pdf_doc=yes]), [enable_pdf_doc=no])
51 ++ [enable_pdf_doc=yes]), [enable_pdf_doc=yes])
52 +AM_CONDITIONAL([BUILD_PDF], [test "x$enable_pdf_doc" == "xyes" ])
53 +
54 - # Checks for programs.
55 - AC_PROG_CC
56 - AC_PROG_MKDIR_P
57 - AC_PROG_INSTALL
58 - AC_PROG_SED
59 + AC_ARG_ENABLE([debug],
60 + AS_HELP_STRING([--enable-debug], [Disable debugging]),
61 + AS_IF([test "x$enable_debug" = "xno"], [with_debug=no], [with_debug=yes]),
62 + [with_debug=yes])
63 + AC_SUBST(with_debug)
64 @@ -61,15 +67,15 @@
65 )]
66 )
67
68 diff --git a/net-firewall/nftables/nftables-0.6.ebuild b/net-firewall/nftables/nftables-0.6.ebuild
69 new file mode 100644
70 index 0000000..d97df4d
71 --- /dev/null
72 +++ b/net-firewall/nftables/nftables-0.6.ebuild
73 @@ -0,0 +1,68 @@
74 +# Copyright 1999-2016 Gentoo Foundation
75 +# Distributed under the terms of the GNU General Public License v2
76 +# $Id$
77 +
78 +EAPI=6
79 +
80 +inherit autotools linux-info systemd
81 +
82 +DESCRIPTION="Linux kernel (3.13+) firewall, NAT and packet mangling tools"
83 +HOMEPAGE="http://netfilter.org/projects/nftables/"
84 +SRC_URI="http://git.netfilter.org/nftables/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
85 +
86 +LICENSE="GPL-2"
87 +SLOT="0"
88 +KEYWORDS="~amd64 ~arm ~x86"
89 +IUSE="debug doc gmp +readline"
90 +
91 +RDEPEND=">=net-libs/libmnl-1.0.3
92 + >=net-libs/libnftnl-1.0.6
93 + gmp? ( dev-libs/gmp:0= )
94 + readline? ( sys-libs/readline:0= )"
95 +DEPEND="${RDEPEND}
96 + >=app-text/docbook2X-0.8.8-r4
97 + doc? ( >=app-text/dblatex-0.3.7 )
98 + sys-devel/bison
99 + sys-devel/flex
100 + virtual/pkgconfig"
101 +
102 +S="${WORKDIR}/v${PV}"
103 +
104 +PATCHES=( "${FILESDIR}/${PN}-0.5-pdf-doc.patch" )
105 +
106 +pkg_setup() {
107 + if kernel_is ge 3 13; then
108 + CONFIG_CHECK="~NF_TABLES"
109 + linux-info_pkg_setup
110 + else
111 + eerror "This package requires kernel version 3.13 or newer to work properly."
112 + fi
113 +}
114 +
115 +src_prepare() {
116 + default
117 + eautoreconf
118 +}
119 +
120 +src_configure() {
121 + econf \
122 + --sbindir="${EPREFIX}"/sbin \
123 + $(use_enable doc pdf-doc) \
124 + $(use_enable debug) \
125 + $(use_with readline cli) \
126 + $(use_with !gmp mini_gmp)
127 +}
128 +
129 +src_install() {
130 + default
131 +
132 + dodir /usr/libexec/${PN}
133 + insinto /usr/libexec/${PN}
134 + doins /usr/libexec/${PN}/${PN}.sh
135 +
136 + newconfd "${FILESDIR}"/${PN}.confd ${PN}
137 + newinitd "${FILESDIR}"/${PN}.init-r2 ${PN}
138 + keepdir /var/lib/nftables
139 +
140 + systemd_dounit "${FILESDIR}"/systemd/${PN}{,-{re,}store}.service
141 +}