Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/nftables/
Date: Fri, 28 Jun 2019 11:49:21
Message-Id: 1561722550.c0d8ff20ff2d1ef5b361456f25afcc0a6d7e4ad7.polynomial-c@gentoo
1 commit: c0d8ff20ff2d1ef5b361456f25afcc0a6d7e4ad7
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 28 09:55:38 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 28 11:49:10 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0d8ff20
7
8 net-firewall/nftables: Removed old.
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.16
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 net-firewall/nftables/nftables-0.9.0-r1.ebuild | 89 ------------------------
14 net-firewall/nftables/nftables-0.9.0-r3.ebuild | 94 --------------------------
15 net-firewall/nftables/nftables-0.9.0.ebuild | 85 -----------------------
16 3 files changed, 268 deletions(-)
17
18 diff --git a/net-firewall/nftables/nftables-0.9.0-r1.ebuild b/net-firewall/nftables/nftables-0.9.0-r1.ebuild
19 deleted file mode 100644
20 index 09ccb7d4001..00000000000
21 --- a/net-firewall/nftables/nftables-0.9.0-r1.ebuild
22 +++ /dev/null
23 @@ -1,89 +0,0 @@
24 -# Copyright 1999-2018 Gentoo Authors
25 -# Distributed under the terms of the GNU General Public License v2
26 -
27 -EAPI=6
28 -
29 -inherit autotools linux-info systemd
30 -
31 -DESCRIPTION="Linux kernel (3.13+) firewall, NAT and packet mangling tools"
32 -HOMEPAGE="https://netfilter.org/projects/nftables/"
33 -SRC_URI="https://git.netfilter.org/nftables/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
34 -
35 -LICENSE="GPL-2"
36 -SLOT="0"
37 -KEYWORDS="~amd64 ~arm ~ia64 ~x86"
38 -IUSE="debug doc +gmp json +readline"
39 -
40 -RDEPEND=">=net-libs/libmnl-1.0.3:0=
41 - gmp? ( dev-libs/gmp:0= )
42 - json? ( dev-libs/jansson )
43 - readline? ( sys-libs/readline:0= )
44 - >=net-libs/libnftnl-1.1.1:0="
45 -
46 -DEPEND="${RDEPEND}
47 - >=app-text/docbook2X-0.8.8-r4
48 - doc? ( >=app-text/dblatex-0.3.7 )
49 - sys-devel/bison
50 - sys-devel/flex
51 - virtual/pkgconfig"
52 -
53 -S="${WORKDIR}/v${PV}"
54 -
55 -pkg_setup() {
56 - if kernel_is ge 3 13; then
57 - CONFIG_CHECK="~NF_TABLES"
58 - linux-info_pkg_setup
59 - else
60 - eerror "This package requires kernel version 3.13 or newer to work properly."
61 - fi
62 -}
63 -
64 -src_prepare() {
65 - default
66 - eautoreconf
67 -}
68 -
69 -src_configure() {
70 - local myeconfargs=(
71 - --sbindir="${EPREFIX}"/sbin
72 - $(use_enable debug)
73 - $(use_enable doc pdf-doc)
74 - $(use_with !gmp mini_gmp)
75 - $(use_with json)
76 - $(use_with readline cli)
77 - )
78 - econf "${myeconfargs[@]}"
79 -}
80 -
81 -src_install() {
82 - default
83 -
84 - exeinto /usr/libexec/${PN}
85 - doexe "${FILESDIR}"/libexec/${PN}.sh
86 -
87 - newconfd "${FILESDIR}"/${PN}.confd ${PN}
88 - newinitd "${FILESDIR}"/${PN}.init ${PN}
89 - keepdir /var/lib/nftables
90 -
91 - systemd_dounit "${FILESDIR}"/systemd/${PN}-restore.service
92 - systemd_enable_service basic.target ${PN}-restore.service
93 -
94 - docinto /usr/share/doc/${PF}/skels
95 - dodoc "${D}"/etc/nftables/*
96 - rm -R "${D}"/etc/nftables
97 -}
98 -
99 -pkg_postinst() {
100 - local save_file
101 - save_file="${EROOT%/}/var/lib/nftables/rules-save"
102 -
103 - # In order for the nftables-restore systemd service to start
104 - # the save_file must exist.
105 - if [[ ! -f ${save_file} ]]; then
106 - touch ${save_file}
107 - fi
108 -
109 - elog "If you are creating firewall rules before the next system restart "
110 - elog "the nftables-restore service must be manually started in order to "
111 - elog "save those rules on shutdown."
112 -}
113
114 diff --git a/net-firewall/nftables/nftables-0.9.0-r3.ebuild b/net-firewall/nftables/nftables-0.9.0-r3.ebuild
115 deleted file mode 100644
116 index 346d321bb37..00000000000
117 --- a/net-firewall/nftables/nftables-0.9.0-r3.ebuild
118 +++ /dev/null
119 @@ -1,94 +0,0 @@
120 -# Copyright 1999-2019 Gentoo Authors
121 -# Distributed under the terms of the GNU General Public License v2
122 -
123 -EAPI=6
124 -
125 -inherit autotools linux-info systemd
126 -
127 -DESCRIPTION="Linux kernel (3.13+) firewall, NAT and packet mangling tools"
128 -HOMEPAGE="https://netfilter.org/projects/nftables/"
129 -SRC_URI="https://git.netfilter.org/nftables/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
130 -
131 -LICENSE="GPL-2"
132 -SLOT="0"
133 -KEYWORDS="~amd64 ~arm ~ia64 ~x86"
134 -IUSE="debug doc +gmp json +modern_kernel +readline"
135 -
136 -RDEPEND=">=net-libs/libmnl-1.0.3:0=
137 - gmp? ( dev-libs/gmp:0= )
138 - json? ( dev-libs/jansson )
139 - readline? ( sys-libs/readline:0= )
140 - >=net-libs/libnftnl-1.1.1:0="
141 -
142 -DEPEND="${RDEPEND}
143 - >=app-text/docbook2X-0.8.8-r4
144 - doc? ( >=app-text/dblatex-0.3.7 )
145 - sys-devel/bison
146 - sys-devel/flex
147 - virtual/pkgconfig"
148 -
149 -S="${WORKDIR}/v${PV}"
150 -
151 -pkg_setup() {
152 - if kernel_is ge 3 13; then
153 - if use modern_kernel && kernel_is lt 3 18; then
154 - eerror "The modern_kernel USE flag requires kernel version 3.18 or newer to work properly."
155 - fi
156 - CONFIG_CHECK="~NF_TABLES"
157 - linux-info_pkg_setup
158 - else
159 - eerror "This package requires kernel version 3.13 or newer to work properly."
160 - fi
161 -}
162 -
163 -src_prepare() {
164 - default
165 - eautoreconf
166 -}
167 -
168 -src_configure() {
169 - local myeconfargs=(
170 - --sbindir="${EPREFIX}"/sbin
171 - $(use_enable debug)
172 - $(use_enable doc pdf-doc)
173 - $(use_with !gmp mini_gmp)
174 - $(use_with json)
175 - $(use_with readline cli)
176 - )
177 - econf "${myeconfargs[@]}"
178 -}
179 -
180 -src_install() {
181 - default
182 -
183 - local mksuffix=""
184 - use modern_kernel && mksuffix="-mk"
185 -
186 - exeinto /usr/libexec/${PN}
187 - newexe "${FILESDIR}"/libexec/${PN}${mksuffix}.sh ${PN}.sh
188 - newconfd "${FILESDIR}"/${PN}${mksuffix}.confd ${PN}
189 - newinitd "${FILESDIR}"/${PN}${mksuffix}.init ${PN}
190 - keepdir /var/lib/nftables
191 -
192 - systemd_dounit "${FILESDIR}"/systemd/${PN}-restore.service
193 - systemd_enable_service basic.target ${PN}-restore.service
194 -
195 - docinto /usr/share/doc/${PF}/skels
196 - dodoc "${D}"/etc/nftables/*
197 - rm -R "${D}"/etc/nftables
198 -}
199 -
200 -pkg_postinst() {
201 - local save_file
202 - save_file="${EROOT%/}/var/lib/nftables/rules-save"
203 -
204 - # In order for the nftables-restore systemd service to start
205 - # the save_file must exist.
206 - if [[ ! -f ${save_file} ]]; then
207 - touch ${save_file}
208 - fi
209 -
210 - elog "If you are creating firewall rules before the next system restart "
211 - elog "the nftables-restore service must be manually started in order to "
212 - elog "save those rules on shutdown."
213 -}
214
215 diff --git a/net-firewall/nftables/nftables-0.9.0.ebuild b/net-firewall/nftables/nftables-0.9.0.ebuild
216 deleted file mode 100644
217 index 3a8ef1f307a..00000000000
218 --- a/net-firewall/nftables/nftables-0.9.0.ebuild
219 +++ /dev/null
220 @@ -1,85 +0,0 @@
221 -# Copyright 1999-2019 Gentoo Authors
222 -# Distributed under the terms of the GNU General Public License v2
223 -
224 -EAPI=6
225 -
226 -inherit autotools linux-info systemd
227 -
228 -DESCRIPTION="Linux kernel (3.13+) firewall, NAT and packet mangling tools"
229 -HOMEPAGE="https://netfilter.org/projects/nftables/"
230 -SRC_URI="https://git.netfilter.org/nftables/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
231 -
232 -LICENSE="GPL-2"
233 -SLOT="0"
234 -KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~x86"
235 -IUSE="debug doc +gmp json +readline"
236 -
237 -RDEPEND=">=net-libs/libmnl-1.0.3:0=
238 - gmp? ( dev-libs/gmp:0= )
239 - json? ( dev-libs/jansson )
240 - readline? ( sys-libs/readline:0= )
241 - >=net-libs/libnftnl-1.1.1:0="
242 -
243 -DEPEND="${RDEPEND}
244 - >=app-text/docbook2X-0.8.8-r4
245 - doc? ( >=app-text/dblatex-0.3.7 )
246 - sys-devel/bison
247 - sys-devel/flex
248 - virtual/pkgconfig"
249 -
250 -S="${WORKDIR}/v${PV}"
251 -
252 -pkg_setup() {
253 - if kernel_is ge 3 13; then
254 - CONFIG_CHECK="~NF_TABLES"
255 - linux-info_pkg_setup
256 - else
257 - eerror "This package requires kernel version 3.13 or newer to work properly."
258 - fi
259 -}
260 -
261 -src_prepare() {
262 - default
263 - eautoreconf
264 -}
265 -
266 -src_configure() {
267 - local myeconfargs=(
268 - --sbindir="${EPREFIX}"/sbin
269 - $(use_enable debug)
270 - $(use_enable doc pdf-doc)
271 - $(use_with !gmp mini_gmp)
272 - $(use_with json)
273 - $(use_with readline cli)
274 - )
275 - econf "${myeconfargs[@]}"
276 -}
277 -
278 -src_install() {
279 - default
280 -
281 - exeinto /usr/libexec/${PN}
282 - doexe "${FILESDIR}"/libexec/${PN}.sh
283 -
284 - newconfd "${FILESDIR}"/${PN}.confd ${PN}
285 - newinitd "${FILESDIR}"/${PN}.init ${PN}
286 - keepdir /var/lib/nftables
287 -
288 - systemd_dounit "${FILESDIR}"/systemd/${PN}-restore.service
289 - systemd_enable_service basic.target ${PN}-restore.service
290 -}
291 -
292 -pkg_postinst() {
293 - local save_file
294 - save_file="${EROOT%/}/var/lib/nftables/rules-save"
295 -
296 - # In order for the nftables-restore systemd service to start
297 - # the save_file must exist.
298 - if [[ ! -f ${save_file} ]]; then
299 - touch ${save_file}
300 - fi
301 -
302 - elog "If you are creating firewall rules before the next system restart "
303 - elog "the nftables-restore service must be manually started in order to "
304 - elog "save those rules on shutdown."
305 -}