Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/shorewall/, net-firewall/shorewall/files/
Date: Fri, 04 May 2018 23:24:09
Message-Id: 1525476238.61d1aa3b52e014eba8f662eaa00ad853ebf49298.whissi@gentoo
1 commit: 61d1aa3b52e014eba8f662eaa00ad853ebf49298
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 4 23:22:06 2018 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Fri May 4 23:23:58 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61d1aa3b
7
8 net-firewall/shorewall: Bump to v5.2.0.1
9
10 Package-Manager: Portage-2.3.34, Repoman-2.3.9
11
12 net-firewall/shorewall/Manifest | 7 +
13 .../files/shorewall-5.2.0.1-AUTOMAKE-SAVE.patch | 47 +++
14 .../shorewall/files/shorewall-5.2.0.1-YESNO.patch | 46 ++
15 .../shorewall/files/shorewall-lite.initd-r3 | 90 ++++
16 net-firewall/shorewall/files/shorewall.initd-r3 | 98 +++++
17 net-firewall/shorewall/files/shorewallrc-r3 | 24 ++
18 net-firewall/shorewall/shorewall-5.2.0.1.ebuild | 462 +++++++++++++++++++++
19 7 files changed, 774 insertions(+)
20
21 diff --git a/net-firewall/shorewall/Manifest b/net-firewall/shorewall/Manifest
22 index c8563a272b6..0a5c0613425 100644
23 --- a/net-firewall/shorewall/Manifest
24 +++ b/net-firewall/shorewall/Manifest
25 @@ -1,7 +1,14 @@
26 DIST shorewall-5.1.12.4.tar.bz2 555854 BLAKE2B 697fb7dbe4217b3a8d7230b3d79cec94f33ff69975b9f52477def8424e2ed9c79614e5aff4a40e31c2c0c69bc32f88c40810b7b1e5381037df1cf225b8bf97ec SHA512 25038865df0b3a4d1bcdb14b58108cd0f42e8738c3415ef2ce6fcbf3b15fc651fa90ce6adcfc3c67d6e0dd18709c4862a3ca18f1976e6c96567db6cdae86e000
27 +DIST shorewall-5.2.0.1.tar.bz2 535180 BLAKE2B 4e7e1d1f43b1bd5a9e683d6ab4e0dde5201dce0616c66c38b518838210bcc69c31a5bb586933ac3d83f8852704166cb7376dd07d8ee4d74e777c483a5178db34 SHA512 9896836e709f728a2320c805cae588dbea37621587bbb0f11937be911c80d0302f63a230642089cdb9839cc55f16b67341392c5d76a71406e0cfadb7b99b4cc5
28 DIST shorewall-core-5.1.12.4.tar.bz2 86548 BLAKE2B 8384c2f8ec673db3f0fed04af702e1967d41133f3a066ba09cbd58199654878d4d6c73730a933525304d68f7834c80d5c2a2452a4dd6faa71e2580deadf3189e SHA512 f77ae4080fa81a3259ab620ba7615c4188e6bec0244e898702dc641aacd8ac54160331e270b3708d818bfa9452cf96014868199a48c28f15c50d128365cb62e6
29 +DIST shorewall-core-5.2.0.1.tar.bz2 74523 BLAKE2B b4b204a9802a3fd0a69498acd7bb52a0fe0010a38df6feca5c98f15150e3924346911862745950269af60dd4ee2102a8e935a5c8d9f26edc8e726203bb8c3df2 SHA512 ebb184b33ade8111b961679c3aa90907ddc23410c17dd1fe49848425c465725a5f4c24f6bfbd158e759df6f651046db30120310a3edd7e594399721770cc9471
30 DIST shorewall-docs-html-5.1.12.4.tar.bz2 4281202 BLAKE2B 51624bf6a36766fa8f1aad9600885dc2b92f656ef3a7bc6cf3704a33d2e014af590bbe1621793bd77d291baa3441a0f493c27f838159ccbb15b0684ab26f4bef SHA512 e1592137013b463a7cbd28c7354f51b36460c054d55e1819198b72c600ccbdc8b3fee4bab33d7a71466397338bd38e0aa6312f1c182e79052f249c51d1017dc1
31 +DIST shorewall-docs-html-5.2.0.1.tar.bz2 4294859 BLAKE2B 317d1e014f94e040154617a355619317efed4c318e14a6c2a6cfabeb1ee2c5fb0bf49a7e9a80ca8ffbd5828798d33617fdcf18af0bc6ec8333a2a1b8231136c1 SHA512 52c5af9c682bbb233be3e779a45f7d09ca874849e6a118271bf90d6791cceaa31740dee8cdfd08a50807565fb9f8d6191ca1096ab31d1419b7088668c349c71c
32 DIST shorewall-init-5.1.12.4.tar.bz2 41541 BLAKE2B 149b31b2ffd37c64cfc69de7d2d3a39824ce427a98a84f4e96af02aad9e04f0973f862ea0b158245a1d806504dc0dac9a5a554776d9533a7c88dbf6c096d4d07 SHA512 971f0a7a25f49c289e9c9d6d564e05b7f2675d271ef95c15b06a4a4e878a74c5b13a1ea80411014a5130f53267df6691042b313c423db193b9cd6cde172ed359
33 +DIST shorewall-init-5.2.0.1.tar.bz2 29381 BLAKE2B 6c0c937a8fd7499ce07f9ef0f1ef07c892e3d0585e2d29506377ca311ffa5939160aa62bd4e9602d346bfec2698865228ba69cdfbf6229520288485ced1e7f39 SHA512 ce9ba1a8bec5823650022f80db70b60930fa4b5c65462e4e8317f71ee467f75ff3af2b658c1d3bbe0cb7cb41acd4226cb2cfb657afde1375740c737f4528256f
34 DIST shorewall-lite-5.1.12.4.tar.bz2 47209 BLAKE2B ca39daa7a864b86cd9075f8604d053984ef8c451285520c568b83171163513bdbe7f910b21638f4f69e716d4bdbb4f148856b02dbe83392789d8b962669374e1 SHA512 1bcdb90fccc634103ff190be9a058abf1b5158d562702c8c1ad51e8edebc2939271f3279bcb0fd8ff7389ea175387ce5a090a0d9e5655524a11203b5c0d55604
35 +DIST shorewall-lite-5.2.0.1.tar.bz2 35244 BLAKE2B b4983c21bb46c684adecb4d771839bc4a31a6737827e68944e75752fc4296aa458f24f9cdba46f19d09308634b00368e7fe5ec7a6417c1348cc083f7d8d437c0 SHA512 5562c41993a6047b5a334ab26d296df836976749da24796f005e12afc1e987b4f784ec25ffe176c81b8e9f129930c91a5869335d15eca649bb7a03c214b700ad
36 DIST shorewall6-5.1.12.4.tar.bz2 197179 BLAKE2B 1c120388d0b8eafdbf6ec2fb64a8cc3e1e301dd109bb03f5dcfce60c534489210f669327eaa07bac5fbc7497e39c9167586f02017318ce9a2b054b4a39e4ae50 SHA512 9ff09b093f641452d3c5d615163336c903c74d4133cd620982760df6b8ee3acc704c460adb5db52b109f768d623152e47617c7d05742c2e6f19527c34eec9a61
37 +DIST shorewall6-5.2.0.1.tar.bz2 184727 BLAKE2B ff9502e2ff84af146ba42cbfe4a7e383e6e2c56f43cd53c21085908660c672d8e579fd8615f841a202bb6bd796d434f7a462d684e45496880599902a3a3a0acb SHA512 dd34968d2e074e0460aeb562a2c4ab857e6c9a680d4d9f41cf006bfddfffc647d472693401c6a8f03da25af2f1117ae61c640fa7db099af3e5b5cd27be74ecef
38 DIST shorewall6-lite-5.1.12.4.tar.bz2 46902 BLAKE2B 6e9bad615833beacbb0d4b779dc8479cad73c1964bc2220541419b99a7fc8dd1b57ca42d61d6ef708460beffa65106166dbd5c60a90ce7f4cdf60ce3a879defb SHA512 95b5b96b3744bd1a499d00b4f98d71b264369752e6fd9ede21717657785833d1124b97434fe33457bc6f80026b204eb9306d73af9eb8abf23840291ecc1caf32
39 +DIST shorewall6-lite-5.2.0.1.tar.bz2 34931 BLAKE2B 94155a21be8d8aba07d9742b2d92428285588dbf33f1b522644dd7be4a05dd25b93ad4d3bbc3fd147f544a7d9ce8bf01dbadaee642bcb014f43aef6ba61f1596 SHA512 dc2f1c61efd8673335b117771baf8cec2145b5afc4a6b74b80834daa321f22475e2ec9baa23358c5e2d4787b5ec1cc092b17617cdfe9a921bd0075328eb0cdd5
40
41 diff --git a/net-firewall/shorewall/files/shorewall-5.2.0.1-AUTOMAKE-SAVE.patch b/net-firewall/shorewall/files/shorewall-5.2.0.1-AUTOMAKE-SAVE.patch
42 new file mode 100644
43 index 00000000000..2927d4c17ab
44 --- /dev/null
45 +++ b/net-firewall/shorewall/files/shorewall-5.2.0.1-AUTOMAKE-SAVE.patch
46 @@ -0,0 +1,47 @@
47 +diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli
48 +index 0e2de1525..60499180d 100644
49 +--- a/Shorewall-core/lib.cli
50 ++++ b/Shorewall-core/lib.cli
51 +@@ -1201,11 +1201,17 @@ show_saves_command() {
52 + echo
53 +
54 + for f in ${VARDIR}/*-iptables; do
55 +- fn=$(basename $f)
56 +- fn=${fn%-iptables}
57 +- mtime=$(ls -lt $f | tail -n 1 | cut -d ' ' -f '6 7 8' )
58 +- [ $fn = "$RESTOREFILE" ] && fn="$fn (default)"
59 +- echo " $mtime ${fn%-iptables}"
60 ++ case $f in
61 ++ *\**)
62 ++ ;;
63 ++ *)
64 ++ fn=$(basename $f)
65 ++ fn=${fn%-iptables}
66 ++ mtime=$(ls -lt $f | tail -n 1 | cut -d ' ' -f '6 7 8' )
67 ++ [ $fn = "$RESTOREFILE" ] && fn="$fn (default)"
68 ++ echo " $mtime ${fn%-iptables}"
69 ++ ;;
70 ++ esac
71 + done
72 +
73 + echo
74 +diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std
75 +index 2d8c7df67..46c932335 100644
76 +--- a/Shorewall/lib.cli-std
77 ++++ b/Shorewall/lib.cli-std
78 +@@ -412,10 +412,14 @@ uptodate() {
79 + elif [ -n "$(${find} ${dir} -maxdepth $AUTOMAKE -type f -newer $1 -print)" ]; then
80 + return 1;
81 + fi
82 +- elif [ $AUTOMAKE = recursive ]; then
83 ++ elif [ "$AUTOMAKE" = recursive ]; then
84 + if [ -n "$(${find} ${dir} -newer $1 -print -quit)" ]; then
85 + return 1;
86 + fi
87 ++ elif [ -z "$AUTOMAKE" ]; then
88 ++ if [ -n "$(${find} ${dir} -maxdepth 1 -type f -newer $1 -print -quit)" ]; then
89 ++ return 1;
90 ++ fi
91 + elif [ -n "$(${find} ${dir} -maxdepth $AUTOMAKE -type f -newer $1 -print -quit)" ]; then
92 + return 1;
93 + fi
94
95 diff --git a/net-firewall/shorewall/files/shorewall-5.2.0.1-YESNO.patch b/net-firewall/shorewall/files/shorewall-5.2.0.1-YESNO.patch
96 new file mode 100644
97 index 00000000000..91791e01c4d
98 --- /dev/null
99 +++ b/net-firewall/shorewall/files/shorewall-5.2.0.1-YESNO.patch
100 @@ -0,0 +1,46 @@
101 +diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std
102 +index 9896e18d4..2d8c7df67 100644
103 +--- a/Shorewall/lib.cli-std
104 ++++ b/Shorewall/lib.cli-std
105 +@@ -1063,6 +1063,41 @@ restart_command() {
106 + return $rc
107 + }
108 +
109 ++read_yesno_with_timeout() {
110 ++ local timeout
111 ++ timeout=${1:-60}
112 ++
113 ++ case $timeout in
114 ++ *s)
115 ++ ;;
116 ++ *m)
117 ++ timeout=$((${timeout%m} * 60))
118 ++ ;;
119 ++ *h)
120 ++ timeout=$((${timeout%h} * 3600))
121 ++ ;;
122 ++ esac
123 ++
124 ++ read -t $timeout yn 2> /dev/null
125 ++ if [ $? -eq 2 ]
126 ++ then
127 ++ # read doesn't support timeout
128 ++ test -x /bin/bash || return 2 # bash is not installed so the feature is not available
129 ++ /bin/bash -c "read -t $timeout yn ; if [ \"\$yn\" == \"y\" ] ; then exit 0 ; else exit 1 ; fi" # invoke bash and use its version of read
130 ++ return $?
131 ++ else
132 ++ # read supports timeout
133 ++ case "$yn" in
134 ++ y|Y)
135 ++ return 0
136 ++ ;;
137 ++ *)
138 ++ return 1
139 ++ ;;
140 ++ esac
141 ++ fi
142 ++}
143 ++
144 + #
145 + # Safe-start/safe-reload/safe-restart Command Executor
146 + #
147
148 diff --git a/net-firewall/shorewall/files/shorewall-lite.initd-r3 b/net-firewall/shorewall/files/shorewall-lite.initd-r3
149 new file mode 100644
150 index 00000000000..ee304926f97
151 --- /dev/null
152 +++ b/net-firewall/shorewall/files/shorewall-lite.initd-r3
153 @@ -0,0 +1,90 @@
154 +#!/sbin/openrc-run
155 +# Copyright 1999-2018 Gentoo Foundation
156 +# Distributed under the terms of the GNU General Public License v2
157 +
158 +if [ "${RC_SVCNAME}" = "shorewall6-lite" ]; then
159 + PRODUCT_NAME="Shorewall6-Lite"
160 + command="/usr/sbin/shorewall-lite -6"
161 +else
162 + PRODUCT_NAME="Shorewall-Lite"
163 + command="/usr/sbin/shorewall-lite"
164 +fi
165 +
166 +description="The Shoreline Firewall Lite, more commonly known as \"${PRODUCT_NAME}\", is"
167 +description="${description} a high-level tool for configuring Netfilter."
168 +
169 +extra_commands="clear"
170 +extra_started_commands="reload reset"
171 +
172 +description_clear="Clear will remove all rules and chains installed by"
173 +description_clear="${description_clear} ${PRODUCT_NAME}. The firewall is"
174 +description_clear="${description_clear} then wide open and unprotected."
175 +
176 +description_reload="Reload is similar to \"${RC_SERVICE} start\" except that it assumes"
177 +description_reload="${description_reload} that the firewall is already started."
178 +description_reload="${description_reload} Existing connections are maintained."
179 +
180 +description_reset="All the packet and byte counters in the firewall are reset."
181 +
182 +depend() {
183 + provide firewall
184 + after ulogd
185 +}
186 +
187 +clear() {
188 + ebegin "Clearing all ${RC_SVCNAME} rules and setting policy to ACCEPT"
189 + ${command} ${OPTIONS} clear 1>/dev/null
190 + eend $?
191 +}
192 +
193 +reload() {
194 + ebegin "Reloading ${RC_SVCNAME}"
195 + ${command} ${OPTIONS} reload ${RELOADOPTIONS} 1>/dev/null
196 + eend $?
197 +}
198 +
199 +reset() {
200 + ebegin "Resetting the packet and byte counters in ${RC_SVCNAME}"
201 + ${command} ${OPTIONS} reset 1>/dev/null
202 + eend $?
203 +}
204 +
205 +restart() {
206 + local _retval
207 + ebegin "Restarting ${RC_SVCNAME}"
208 + ${command} status 1>/dev/null
209 + _retval=$?
210 + if [ ${_retval} = '0' ]; then
211 + svc_start
212 + else
213 + ${command} ${OPTIONS} restart ${RESTARTOPTIONS} 1>/dev/null
214 + fi
215 + eend $?
216 +}
217 +
218 +start() {
219 + ebegin "Starting ${RC_SVCNAME}"
220 + ${command} ${OPTIONS} start ${STARTOPTIONS} 1>/dev/null
221 + eend $?
222 +}
223 +
224 +status() {
225 + local _retval
226 + ${command} status 1>/dev/null
227 + _retval=$?
228 + if [ ${_retval} = '0' ]; then
229 + einfo 'status: started'
230 + mark_service_started "${SVCNAME}"
231 + return 0
232 + else
233 + einfo 'status: stopped'
234 + mark_service_stopped "${SVCNAME}"
235 + return 3
236 + fi
237 +}
238 +
239 +stop() {
240 + ebegin "Stopping ${RC_SVCNAME}"
241 + ${command} ${OPTIONS} stop ${STOPOPTIONS} 1>/dev/null
242 + eend $?
243 +}
244
245 diff --git a/net-firewall/shorewall/files/shorewall.initd-r3 b/net-firewall/shorewall/files/shorewall.initd-r3
246 new file mode 100644
247 index 00000000000..a6794815581
248 --- /dev/null
249 +++ b/net-firewall/shorewall/files/shorewall.initd-r3
250 @@ -0,0 +1,98 @@
251 +#!/sbin/openrc-run
252 +# Copyright 1999-2018 Gentoo Foundation
253 +# Distributed under the terms of the GNU General Public License v2
254 +
255 +if [ "${RC_SVCNAME}" = "shorewall6" ]; then
256 + PRODUCT_NAME="Shorewall6"
257 + command="/usr/sbin/shorewall -6"
258 +else
259 + PRODUCT_NAME="Shorewall"
260 + command="/usr/sbin/shorewall"
261 +fi
262 +
263 +description="The Shoreline Firewall, more commonly known as \"${PRODUCT_NAME}\", is"
264 +description="${description} a high-level tool for configuring Netfilter."
265 +
266 +extra_commands="check clear"
267 +extra_started_commands="reload reset"
268 +
269 +description_check="Checks if the configuration will compile or not."
270 +
271 +description_clear="Clear will remove all rules and chains installed by"
272 +description_clear="${description_clear} ${PRODUCT_NAME}. The firewall is then"
273 +description_clear="${description_clear} wide open and unprotected."
274 +
275 +description_reload="Reload is similar to \"${RC_SERVICE} start\" except that it assumes"
276 +description_reload="${description_reload} that the firewall is already started."
277 +description_reload="${description_reload} Existing connections are maintained."
278 +
279 +description_reset="All the packet and byte counters in the firewall are reset."
280 +
281 +depend() {
282 + provide firewall
283 + after ulogd
284 +}
285 +
286 +check() {
287 + ebegin "Checking ${RC_SVCNAME} configuration"
288 + ${command} ${OPTIONS} check 1>/dev/null
289 + eend $?
290 +}
291 +
292 +clear() {
293 + ebegin "Clearing all ${RC_SVCNAME} rules and setting policy to ACCEPT"
294 + ${command} ${OPTIONS} clear 1>/dev/null
295 + eend $?
296 +}
297 +
298 +reload() {
299 + ebegin "Reloading ${RC_SVCNAME}"
300 + ${command} ${OPTIONS} reload ${RELOADOPTIONS} 1>/dev/null
301 + eend $?
302 +}
303 +
304 +reset() {
305 + ebegin "Resetting the packet and byte counters in ${RC_SVCNAME}"
306 + ${command} ${OPTIONS} reset 1>/dev/null
307 + eend $?
308 +}
309 +
310 +restart() {
311 + local _retval
312 + ebegin "Restarting ${RC_SVCNAME}"
313 + ${command} status 1>/dev/null
314 + _retval=$?
315 + if [ ${_retval} = '0' ]; then
316 + svc_start
317 + else
318 + ${command} ${OPTIONS} restart ${RESTARTOPTIONS} 1>/dev/null
319 + fi
320 + eend $?
321 +}
322 +
323 +start() {
324 + ebegin "Starting ${RC_SVCNAME}"
325 + ${command} ${OPTIONS} start ${STARTOPTIONS} 1>/dev/null
326 + eend $?
327 +}
328 +
329 +status() {
330 + local _retval
331 + ${command} status 1>/dev/null
332 + _retval=$?
333 + if [ ${_retval} = '0' ]; then
334 + einfo 'status: started'
335 + mark_service_started "${SVCNAME}"
336 + return 0
337 + else
338 + einfo 'status: stopped'
339 + mark_service_stopped "${SVCNAME}"
340 + return 3
341 + fi
342 +}
343 +
344 +stop() {
345 + ebegin "Stopping ${RC_SVCNAME}"
346 + ${command} ${OPTIONS} stop ${STOPOPTIONS} 1>/dev/null
347 + eend $?
348 +}
349
350 diff --git a/net-firewall/shorewall/files/shorewallrc-r3 b/net-firewall/shorewall/files/shorewallrc-r3
351 new file mode 100644
352 index 00000000000..a0ed9f7f049
353 --- /dev/null
354 +++ b/net-firewall/shorewall/files/shorewallrc-r3
355 @@ -0,0 +1,24 @@
356 +#
357 +# Gentoo Shorewall 5.2 rc file
358 +#
359 +BUILD=gentoo #Default is to detect the build system
360 +HOST=gentoo #Gentoo GNU Linux
361 +PREFIX=@GENTOO_PORTAGE_EPREFIX@/usr #Top-level directory for shared files, libraries, etc.
362 +SHAREDIR=${PREFIX}/share #Directory for arch-neutral files.
363 +LIBEXECDIR=${PREFIX}/share #Directory for executable scripts.
364 +PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory
365 +CONFDIR=@GENTOO_PORTAGE_EPREFIX@/etc #Directory where subsystem configurations are installed
366 +SBINDIR=${PREFIX}/sbin #Directory where system administration programs are installed
367 +MANDIR=${PREFIX}/share/man #Directory where manpages are installed.
368 +INITDIR=${CONFDIR}/init.d #Directory where SysV init scripts are installed.
369 +INITFILE=${PRODUCT} #Name of the product's installed SysV init script
370 +INITSOURCE=init.gentoo.sh #Name of the distributed file to be installed as the SysV init script
371 +ANNOTATED= #If non-zero, annotated configuration files are installed
372 +SERVICEDIR=tbs #Directory where .service files are installed (systems running systemd only)
373 +SERVICEFILE=gentoo.service #Name of the distributed file to be installed as systemd service file
374 +SYSCONFFILE=default.gentoo #Name of the distributed file to be installed in $SYSCONFDIR
375 +SYSCONFDIR=${CONFDIR}/conf.d #Directory where SysV init parameter files are installed
376 +SPARSE= #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR
377 +VARLIB=@GENTOO_PORTAGE_EPREFIX@/var/lib #Directory where product variable data is stored.
378 +VARDIR=${VARLIB}/${PRODUCT} #Directory where product variable data is stored.
379 +DEFAULT_PAGER=${PAGER} #Pager to use if none specified in shorewall[6].conf
380
381 diff --git a/net-firewall/shorewall/shorewall-5.2.0.1.ebuild b/net-firewall/shorewall/shorewall-5.2.0.1.ebuild
382 new file mode 100644
383 index 00000000000..ef57ddf2042
384 --- /dev/null
385 +++ b/net-firewall/shorewall/shorewall-5.2.0.1.ebuild
386 @@ -0,0 +1,462 @@
387 +# Copyright 1999-2018 Gentoo Foundation
388 +# Distributed under the terms of the GNU General Public License v2
389 +
390 +EAPI="6"
391 +
392 +inherit linux-info prefix systemd versionator
393 +
394 +DESCRIPTION='A high-level tool for configuring Netfilter'
395 +HOMEPAGE="http://www.shorewall.net/"
396 +LICENSE="GPL-2"
397 +SLOT="0"
398 +IUSE="doc +init +ipv4 ipv6 lite4 lite6 selinux"
399 +
400 +MY_PV=${PV/_rc/-RC}
401 +MY_PV=${MY_PV/_beta/-Beta}
402 +MY_P=${PN}-${MY_PV}
403 +
404 +MY_MAJOR_RELEASE_NUMBER=$(get_version_component_range 1-2)
405 +MY_MAJORMINOR_RELEASE_NUMBER=$(get_version_component_range 1-3)
406 +
407 +# shorewall
408 +MY_PN_IPV4=Shorewall
409 +MY_P_IPV4=${MY_PN_IPV4/#S/s}-${MY_PV}
410 +
411 +# shorewall6
412 +MY_PN_IPV6=Shorewall6
413 +MY_P_IPV6=${MY_PN_IPV6/#S/s}-${MY_PV}
414 +
415 +# shorewall-lite
416 +MY_PN_LITE4=Shorewall-lite
417 +MY_P_LITE4=${MY_PN_LITE4/#S/s}-${MY_PV}
418 +
419 +# shorewall6-lite
420 +MY_PN_LITE6=Shorewall6-lite
421 +MY_P_LITE6=${MY_PN_LITE6/#S/s}-${MY_PV}
422 +
423 +# shorewall-init
424 +MY_PN_INIT=Shorewall-init
425 +MY_P_INIT=${MY_PN_INIT/#S/s}-${MY_PV}
426 +
427 +# shorewall-core
428 +MY_PN_CORE=Shorewall-core
429 +MY_P_CORE=${MY_PN_CORE/#S/s}-${MY_PV}
430 +
431 +# shorewall-docs-html
432 +MY_PN_DOCS=Shorewall-docs-html
433 +MY_P_DOCS=${MY_PN_DOCS/#S/s}-${MY_PV}
434 +
435 +# Upstream URL schema:
436 +# Beta: $MIRROR/pub/shorewall/development/4.6/shorewall-4.6.4-Beta2/shorewall-4.6.4-Beta2.tar.bz2
437 +# RC: $MIRROR/pub/shorewall/development/4.6/shorewall-4.6.4-RC1/shorewall-4.6.4-RC1.tar.bz2
438 +# Release: $MIRROR/pub/shorewall/4.6/shorewall-4.6.3/shorewall-4.6.3.3.tar.bz2
439 +
440 +MY_URL_PREFIX=
441 +MY_URL_SUFFIX=
442 +if [[ ${MY_PV} = *-Beta* ]] || [[ ${MY_PV} = *-RC* ]]; then
443 + MY_URL_PREFIX='development/'
444 +
445 + _tmp_last_index=$(($(get_last_version_component_index ${MY_PV})+1))
446 + _tmp_suffix=$(get_version_component_range ${_tmp_last_index} ${MY_PV})
447 + if [[ ${_tmp_suffix} = *Beta* ]] || [[ ${_tmp_suffix} = *RC* ]]; then
448 + MY_URL_SUFFIX="-${_tmp_suffix}"
449 + fi
450 +
451 + # Cleaning up temporary variables
452 + unset _tmp_last_index
453 + unset _tmp_suffix
454 +else
455 + KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
456 +fi
457 +
458 +SRC_URI="
459 + http://www.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}${MY_URL_SUFFIX}/shorewall-core-${MY_PV}.tar.bz2
460 + ipv4? ( http://www.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}${MY_URL_SUFFIX}/shorewall-${MY_PV}.tar.bz2 )
461 + ipv6? ( http://www.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}${MY_URL_SUFFIX}/shorewall6-${MY_PV}.tar.bz2 )
462 + lite4? ( http://www.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}${MY_URL_SUFFIX}/shorewall-lite-${MY_PV}.tar.bz2 )
463 + lite6? ( http://www.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}${MY_URL_SUFFIX}/shorewall6-lite-${MY_PV}.tar.bz2 )
464 + init? ( http://www.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}${MY_URL_SUFFIX}/shorewall-init-${MY_PV}.tar.bz2 )
465 + doc? ( http://www.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}${MY_URL_SUFFIX}/${MY_P_DOCS}.tar.bz2 )
466 +"
467 +
468 +# - Shorewall6 requires Shorewall
469 +# - Installing Shorewall-init or just the documentation doesn't make any sense,
470 +# that's why we force the user to select at least one "real" Shorewall product
471 +#
472 +# See http://shorewall.net/download.htm#Which
473 +REQUIRED_USE="
474 + ipv6? ( ipv4 )
475 + || ( ipv4 lite4 lite6 )
476 +"
477 +
478 +# No build dependencies! Just plain shell scripts...
479 +DEPEND=""
480 +
481 +RDEPEND="
482 + >=net-firewall/iptables-1.4.20
483 + >=sys-apps/iproute2-3.8.0[-minimal]
484 + >=sys-devel/bc-1.06.95
485 + ipv4? (
486 + >=dev-lang/perl-5.16
487 + virtual/perl-Digest-SHA
488 + )
489 + ipv6? (
490 + >=dev-perl/Socket6-0.230.0
491 + >=net-firewall/iptables-1.4.20[ipv6]
492 + >=sys-apps/iproute2-3.8.0[ipv6]
493 + )
494 + lite6? (
495 + >=net-firewall/iptables-1.4.20[ipv6]
496 + >=sys-apps/iproute2-3.8.0[ipv6]
497 + )
498 + init? ( >=sys-apps/coreutils-8.20 )
499 + selinux? ( >=sec-policy/selinux-shorewall-2.20161023-r3 )
500 + !net-firewall/shorewall-core
501 + !net-firewall/shorewall6
502 + !net-firewall/shorewall-lite
503 + !net-firewall/shorewall6-lite
504 + !net-firewall/shorewall-init
505 + !<sys-apps/systemd-214
506 +"
507 +
508 +S=${WORKDIR}
509 +
510 +pkg_pretend() {
511 + local CONFIG_CHECK="~NF_CONNTRACK"
512 +
513 + local WARNING_CONNTRACK="Without NF_CONNTRACK support, you will be unable"
514 + local WARNING_CONNTRACK+=" to run any shorewall-based firewall on the local system."
515 +
516 + if use ipv4 || use lite4; then
517 + CONFIG_CHECK="${CONFIG_CHECK} ~NF_CONNTRACK_IPV4"
518 +
519 + local WARNING_CONNTRACK_IPV4="Without NF_CONNTRACK_IPV4 support, you will"
520 + local WARNING_CONNTRACK_IPV4+=" be unable to run any shorewall-based IPv4 firewall on the local system."
521 + fi
522 +
523 + if use ipv6 || use lite6; then
524 + CONFIG_CHECK="${CONFIG_CHECK} ~NF_CONNTRACK_IPV6"
525 +
526 + local WARNING_CONNTRACK_IPV6="Without NF_CONNTRACK_IPV6 support, you will"
527 + local WARNING_CONNTRACK_IPV6+=" be unable to run any shorewall-based IPv6 firewall on the local system."
528 + fi
529 +
530 + check_extra_config
531 +}
532 +
533 +pkg_setup() {
534 + if [[ -n "${DIGEST}" ]]; then
535 + einfo "Unsetting environment variable \"DIGEST\" to prevent conflicts with package's \"install.sh\" script ..."
536 + unset DIGEST
537 + fi
538 +}
539 +
540 +src_prepare() {
541 + # We are moving each unpacked source from MY_P_* to MY_PN_*.
542 + # This allows us to use patches from upstream and keeps epatch_user working
543 +
544 + einfo "Preparing shorewallrc ..."
545 + cp "${FILESDIR}"/shorewallrc-r3 "${S}"/shorewallrc.gentoo || die "Copying shorewallrc failed"
546 + eprefixify "${S}"/shorewallrc.gentoo
547 + sed -i \
548 + -e "s|SERVICEDIR=tbs|SERVICEDIR=$(systemd_get_systemunitdir)|" \
549 + "${S}"/shorewallrc.gentoo || die "Failed to update shorewallrc"
550 +
551 + # shorewall-core
552 + mv "${S}"/${MY_P_CORE} "${S}"/${MY_PN_CORE} || die "Failed to move '${S}/${MY_P_CORE}' to '${S}/${MY_PN_CORE}'"
553 + ebegin "Applying Gentoo-specific changes to ${MY_P_CORE} ..."
554 + ln -s ../shorewallrc.gentoo ${MY_PN_CORE}/shorewallrc.gentoo || die "Failed to symlink shorewallrc.gentoo"
555 + eend 0
556 +
557 + # shorewall
558 + if use ipv4; then
559 + mv "${S}"/${MY_P_IPV4} "${S}"/${MY_PN_IPV4} || die "Failed to move '${S}/${MY_P_IPV4}' to '${S}/${MY_PN_IPV4}'"
560 + ebegin "Applying Gentoo-specific changes to ${MY_P_IPV4}"
561 + ln -s ../shorewallrc.gentoo ${MY_PN_IPV4}/shorewallrc.gentoo || die "Failed to symlink shorewallrc.gentoo"
562 + cp "${FILESDIR}"/shorewall.confd-r1 "${S}"/${MY_PN_IPV4}/default.gentoo || die "Copying shorewall.confd-r1 failed"
563 + cp "${FILESDIR}"/shorewall.initd-r3 "${S}"/${MY_PN_IPV4}/init.gentoo.sh || die "Copying shorewall.initd-r2 failed"
564 + cp "${FILESDIR}"/shorewall.systemd "${S}"/${MY_PN_IPV4}/gentoo.service || die "Copying shorewall.systemd failed"
565 + eend 0
566 +
567 + eapply "${FILESDIR}"/shorewall-5.2.0.1-YESNO.patch
568 + eapply "${FILESDIR}"/shorewall-5.2.0.1-AUTOMAKE-SAVE.patch
569 + fi
570 +
571 + # shorewall6
572 + if use ipv6; then
573 + mv "${S}"/${MY_P_IPV6} "${S}"/${MY_PN_IPV6} || die "Failed to move '${S}/${MY_P_IPV6}' to '${S}/${MY_PN_IPV6}'"
574 + ebegin "Applying Gentoo-specific changes to ${MY_P_IPV6}"
575 + ln -s ../shorewallrc.gentoo ${MY_PN_IPV6}/shorewallrc.gentoo || die "Failed to symlink shorewallrc.gentoo"
576 + cp "${FILESDIR}"/shorewall.confd-r1 "${S}"/${MY_PN_IPV6}/default.gentoo || die "Copying shorewall.confd-r1 failed"
577 + cp "${FILESDIR}"/shorewall.initd-r3 "${S}"/${MY_PN_IPV6}/init.gentoo.sh || die "Copying shorewall.initd-r2 failed"
578 + cp "${FILESDIR}"/shorewall6.systemd "${S}"/${MY_PN_IPV6}/gentoo.service || die "Copying shorewall6.systemd failed"
579 + eend 0
580 + fi
581 +
582 + # shorewall-lite
583 + if use lite4; then
584 + mv "${S}"/${MY_P_LITE4} "${S}"/${MY_PN_LITE4} || die "Failed to move '${S}/${MY_P_LITE4}' to '${S}/${MY_PN_LITE4}'"
585 + ebegin "Applying Gentoo-specific changes to ${MY_P_LITE4}"
586 + ln -s ../shorewallrc.gentoo ${MY_PN_LITE4}/shorewallrc.gentoo || die "Failed to symlink shorewallrc.gentoo"
587 + cp "${FILESDIR}"/shorewall-lite.confd-r1 "${S}"/${MY_PN_LITE4}/default.gentoo || die "Copying shorewall-lite.confd-r1 failed"
588 + cp "${FILESDIR}"/shorewall-lite.initd-r3 "${S}"/${MY_PN_LITE4}/init.gentoo.sh || die "Copying shorewall-lite.initd-r2 failed"
589 + cp "${FILESDIR}"/shorewall-lite.systemd "${S}"/${MY_PN_LITE4}/gentoo.service || die "Copying shorewall-lite.systemd failed"
590 + eend 0
591 + fi
592 +
593 + # shorewall6-lite
594 + if use lite6; then
595 + mv "${S}"/${MY_P_LITE6} "${S}"/${MY_PN_LITE6} || die "Failed to move '${S}/${MY_P_LITE6}' to '${S}/${MY_PN_LITE6}'"
596 + ebegin "Applying Gentoo-specific changes to ${MY_P_LITE6}"
597 + ln -s ../shorewallrc.gentoo ${MY_PN_LITE6}/shorewallrc.gentoo || die "Failed to symlink shorewallrc.gentoo"
598 + cp "${FILESDIR}"/shorewall-lite.confd-r1 "${S}"/${MY_PN_LITE6}/default.gentoo || die "Copying shorewall-lite.confd-r1 failed"
599 + cp "${FILESDIR}"/shorewall-lite.initd-r3 "${S}"/${MY_PN_LITE6}/init.gentoo.sh || die "Copying shorewall-lite.initd-r2 failed"
600 + cp "${FILESDIR}"/shorewall6-lite.systemd "${S}"/${MY_PN_LITE6}/gentoo.service || die "Copying shorewall6-lite.systemd failed"
601 + eend 0
602 + fi
603 +
604 + # shorewall-init
605 + if use init; then
606 + mv "${S}"/${MY_P_INIT} "${S}"/${MY_PN_INIT} || die "Failed to move '${S}/${MY_P_INIT}' to '${S}/${MY_PN_INIT}'"
607 + ebegin "Applying Gentoo-specific changes to ${MY_P_INIT}"
608 + ln -s ../shorewallrc.gentoo ${MY_PN_INIT}/shorewallrc.gentoo || die "Failed to symlink shorewallrc.gentoo"
609 + cp "${FILESDIR}"/shorewall-init.confd "${S}"/${MY_PN_INIT}/default.gentoo || die "Copying shorewall-init.confd failed"
610 + cp "${FILESDIR}"/shorewall-init.initd "${S}"/${MY_PN_INIT}/init.gentoo.sh || die "Copying shorewall-init.initd failed"
611 + cp "${FILESDIR}"/shorewall-init.systemd "${S}"/${MY_PN_INIT}/gentoo.service || die "Copying shorewall-init.systemd failed"
612 + cp "${FILESDIR}"/shorewall-init.readme "${S}"/${MY_PN_INIT}/shorewall-init.README.Gentoo.txt || die "Copying shorewall-init.systemd failed"
613 + eend 0
614 +
615 + eprefixify "${S}"/${MY_PN_INIT}/init.gentoo.sh
616 +
617 + cd "${S}"/${MY_PN_INIT} || die
618 + eapply -p2 "${FILESDIR}"/shorewall-init-01_remove-ipset-functionality-r1.patch
619 + cd "${S}" || die
620 + fi
621 +
622 + # shorewall-docs-html
623 + if use doc; then
624 + mv "${S}"/${MY_P_DOCS} "${S}"/${MY_PN_DOCS} || die "Failed to move '${S}/${MY_P_DOCS}' to '${S}/${MY_PN_DOCS}'"
625 + fi
626 +
627 + eapply_user
628 +}
629 +
630 +src_configure() {
631 + :;
632 +}
633 +
634 +src_compile() {
635 + :;
636 +}
637 +
638 +src_install() {
639 + # shorewall-core
640 + einfo "Installing ${MY_P_CORE} ..."
641 + DESTDIR="${D%/}" ${MY_PN_CORE}/install.sh shorewallrc.gentoo || die "${MY_PN_CORE}/install.sh failed"
642 + dodoc "${S}"/${MY_PN_CORE}/changelog.txt "${S}"/${MY_PN_CORE}/releasenotes.txt
643 +
644 + # shorewall
645 + if use ipv4; then
646 + einfo "Installing ${MY_P_IPV4} ..."
647 + DESTDIR="${D%/}" ${MY_PN_IPV4}/install.sh shorewallrc.gentoo || die "${MY_PN_IPV4}/install.sh failed"
648 + keepdir /var/lib/shorewall
649 +
650 + if use doc; then
651 + dodoc -r "${S}"/${MY_PN_IPV4}/Samples
652 + fi
653 + fi
654 +
655 + # shorewall6
656 + if use ipv6; then
657 + einfo "Installing ${MY_P_IPV6} ..."
658 + DESTDIR="${D%/}" ${MY_PN_IPV6}/install.sh shorewallrc.gentoo || die "${MY_PN_IPV6}/install.sh failed"
659 + keepdir /var/lib/shorewall6
660 +
661 + if use doc; then
662 + dodoc -r "${S}"/${MY_PN_IPV6}/Samples6
663 + fi
664 + fi
665 +
666 + # shorewall-lite
667 + if use lite4; then
668 + einfo "Installing ${MY_P_LITE4} ..."
669 + DESTDIR="${D%/}" ${MY_PN_LITE4}/install.sh shorewallrc.gentoo || die "${MY_PN_LITE4}/install.sh failed"
670 + keepdir /var/lib/shorewall-lite
671 + fi
672 +
673 + # shorewall6-lite
674 + if use lite6; then
675 + einfo "Installing ${MY_P_LITE6} ..."
676 + DESTDIR="${D%/}" ${MY_PN_LITE6}/install.sh shorewallrc.gentoo || die "${MY_PN_LITE6}/install.sh failed"
677 + keepdir /var/lib/shorewall6-lite
678 + fi
679 +
680 + # shorewall-init
681 + if use init; then
682 + einfo "Installing ${MY_P_INIT} ..."
683 + DESTDIR="${D%/}" ${MY_PN_INIT}/install.sh shorewallrc.gentoo || die "${MY_PN_INIT}/install.sh failed"
684 + dodoc "${S}"/${MY_PN_INIT}/shorewall-init.README.Gentoo.txt
685 +
686 + if [[ -f "${D}etc/logrotate.d/shorewall-init" ]]; then
687 + # On Gentoo, shorewall-init will not create shorewall-ifupdown.log,
688 + # so we don't need a logrotate configuration file for shorewall-init
689 + einfo "Removing unused \"${D}etc/logrotate.d/shorewall-init\" ..."
690 + rm -rf "${D}"etc/logrotate.d/shorewall-init || die "Removing \"${D}etc/logrotate.d/shorewall-init\" failed"
691 + fi
692 +
693 + if [[ -d "${D}etc/NetworkManager" ]]; then
694 + # On Gentoo, we don't support NetworkManager
695 + # so we don't need this folder at all
696 + einfo "Removing unused \"${D}etc/NetworkManager\" ..."
697 + rm -rf "${D}"etc/NetworkManager || die "Removing \"${D}etc/NetworkManager\" failed"
698 + fi
699 +
700 + if [[ -f "${D}usr/share/shorewall-init/ifupdown" ]]; then
701 + # This script isn't supported on Gentoo
702 + rm -rf "${D}"usr/share/shorewall-init/ifupdown || die "Removing \"${D}usr/share/shorewall-init/ifupdown\" failed"
703 + fi
704 + fi
705 +
706 + if use doc; then
707 + einfo "Installing ${MY_P_DOCS} ..."
708 + docinto html && dodoc -r "${S}"/${MY_PN_DOCS}/*
709 + fi
710 +}
711 +
712 +pkg_postinst() {
713 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
714 + # This is a new installation
715 +
716 + # Show first steps for shorewall/shorewall6
717 + local _PRODUCTS=""
718 + if use ipv4; then
719 + _PRODUCTS="shorewall"
720 +
721 + if use ipv6; then
722 + _PRODUCTS="${_PRODUCTS}/shorewall6"
723 + fi
724 + fi
725 +
726 + if [[ -n "${_PRODUCTS}" ]]; then
727 + elog "Before you can use ${_PRODUCTS}, you need to edit its configuration in:"
728 + elog ""
729 + elog " /etc/shorewall/shorewall.conf"
730 +
731 + if use ipv6; then
732 + elog " /etc/shorewall6/shorewall6.conf"
733 + fi
734 +
735 + elog ""
736 + elog "To activate your shorewall-based firewall on system start, please add ${_PRODUCTS} to your default runlevel:"
737 + elog ""
738 + elog " # rc-update add shorewall default"
739 +
740 + if use ipv6; then
741 + elog " # rc-update add shorewall6 default"
742 + fi
743 + fi
744 +
745 + # Show first steps for shorewall-lite/shorewall6-lite
746 + _PRODUCTS=""
747 + if use lite4; then
748 + _PRODUCTS="shorewall-lite"
749 + fi
750 +
751 + if use lite6; then
752 + if [[ -z "${_PRODUCTS}" ]]; then
753 + _PRODUCTS="shorewall6-lite"
754 + else
755 + _PRODUCTS="${_PRODUCTS}/shorewall6-lite"
756 + fi
757 + fi
758 +
759 + if [[ -n "${_PRODUCTS}" ]]; then
760 + if use ipv4; then
761 + elog ""
762 + fi
763 +
764 + elog "Before you can use ${_PRODUCTS}, you need to provide a configuration, which you can"
765 + elog "create using ${CATEGORY}/shorewall (with \"ipv4\" and or \"ipv6\" USE flag)."
766 + elog ""
767 + elog "To read more about ${_PRODUCTS}, please visit"
768 + elog " http://shorewall.net/CompiledPrograms.html"
769 + elog ""
770 + elog "To activate your shorewall-lite-based firewall on system start, please add ${PRODUCTS} to your default runlevel:"
771 + elog ""
772 +
773 + if use lite4; then
774 + elog " # rc-update add shorewall-lite default"
775 + fi
776 +
777 + if use lite6; then
778 + elog " # rc-update add shorewall6-lite default"
779 + fi
780 + fi
781 +
782 + if use init; then
783 + elog ""
784 + elog "To secure your system on boot, please add shorewall-init to your boot runlevel:"
785 + elog ""
786 + elog " # rc-update add shorewall-init boot"
787 + elog ""
788 + elog "and review \$PRODUCTS in"
789 + elog ""
790 + elog " /etc/conf.d/shorewall-init"
791 + fi
792 +
793 + fi
794 +
795 + local v
796 + for v in ${REPLACING_VERSIONS}; do
797 + if ! version_is_at_least ${MY_MAJOR_RELEASE_NUMBER} ${v}; then
798 + # This is an upgrade
799 +
800 + elog "You are upgrading from a previous major version. It is highly recommended that you read"
801 + elog ""
802 + elog " - /usr/share/doc/shorewall*/releasenotes.tx*"
803 + elog " - http://shorewall.net/Shorewall-5.html#idm214"
804 +
805 + if use ipv4; then
806 + elog ""
807 + elog "You can auto-migrate your configuration using"
808 + elog ""
809 + elog " # shorewall update -A"
810 +
811 + if use ipv6; then
812 + elog " # shorewall6 update -A"
813 + fi
814 +
815 + elog ""
816 + elog "*after* you have merged the changed files using one of the configuration"
817 + elog "files update tools of your choice (dispatch-conf, etc-update...)."
818 +
819 + elog ""
820 + elog "But if you are not familiar with the \"shorewall[6] update\" command,"
821 + elog "please read the shorewall[6] man page first."
822 + fi
823 +
824 + # Show this elog only once
825 + break
826 + fi
827 + done
828 +
829 + if ! use init; then
830 + elog ""
831 + elog "Consider emerging ${CATEGORY}/${PN} with USE flag \"init\" to secure your system on boot"
832 + elog "before your shorewall-based firewall is ready to start."
833 + elog ""
834 + elog "To read more about shorewall-init, please visit"
835 + elog " http://www.shorewall.net/Shorewall-init.html"
836 + fi
837 +
838 + if ! has_version "net-firewall/conntrack-tools"; then
839 + elog ""
840 + elog "Your Shorewall firewall can utilize \"conntrack\" from the \"net-firewall/conntrack-tools\""
841 + elog "package. if you want to use this feature, you need to install \"net-firewall/conntrack-tools\"!"
842 + fi
843 +
844 + if ! has_version "dev-perl/Devel-NYTProf"; then
845 + elog ""
846 + elog "If you want to profile your Shorewall firewall you need to install \"dev-perl/Devel-NYTProf\"!"
847 + fi
848 +}