summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstanze Hausner <constanze@gentoo.org>2013-09-22 13:19:12 +0000
committerConstanze Hausner <constanze@gentoo.org>2013-09-22 13:19:12 +0000
commit98949564e7fbe7f8e130f37a49e2e7bc4bcc323b (patch)
treec90ad2f29e441e0a724f4b0aa866fd8a22bb2c55 /net-firewall/shorewall6
parentversion bump, remove old (diff)
downloadhistorical-98949564e7fbe7f8e130f37a49e2e7bc4bcc323b.tar.gz
historical-98949564e7fbe7f8e130f37a49e2e7bc4bcc323b.tar.bz2
historical-98949564e7fbe7f8e130f37a49e2e7bc4bcc323b.zip
Bugfix 459316 for 4.5.18; Thanks to Thomas D.
Package-Manager: portage-2.2.1/cvs/Linux x86_64 Manifest-Sign-Key: 0xBB80F419010E3EC3
Diffstat (limited to 'net-firewall/shorewall6')
-rw-r--r--net-firewall/shorewall6/ChangeLog10
-rw-r--r--net-firewall/shorewall6/Manifest15
-rw-r--r--net-firewall/shorewall6/files/4.5.18-r1/shorewall6.conf-SUBSYSLOCK.patch22
-rw-r--r--net-firewall/shorewall6/files/4.5.18-r1/shorewall6.initd107
-rw-r--r--net-firewall/shorewall6/files/4.5.18-r1/shorewall6.systemd20
-rw-r--r--net-firewall/shorewall6/files/4.5.18-r1/shorewallrc_new22
-rw-r--r--net-firewall/shorewall6/shorewall6-4.5.18-r1.ebuild70
7 files changed, 260 insertions, 6 deletions
diff --git a/net-firewall/shorewall6/ChangeLog b/net-firewall/shorewall6/ChangeLog
index fca009f1ac1b..9aee7989ab39 100644
--- a/net-firewall/shorewall6/ChangeLog
+++ b/net-firewall/shorewall6/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for net-firewall/shorewall6
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/ChangeLog,v 1.85 2013/08/29 19:03:41 constanze Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/ChangeLog,v 1.86 2013/09/22 13:18:09 constanze Exp $
+
+*shorewall6-4.5.18-r1 (22 Sep 2013)
+
+ 22 Sep 2013; Constanze Hausner <constanze@gentoo.org>
+ +files/4.5.18-r1/shorewall6.conf-SUBSYSLOCK.patch,
+ +files/4.5.18-r1/shorewall6.initd, +files/4.5.18-r1/shorewallrc_new,
+ +shorewall6-4.5.18-r1.ebuild, +files/4.5.18-r1/shorewall6.systemd:
+ Bugfix 459316 for 4.5.18; Thanks to Thomas D.
29 Aug 2013; Constanze Hausner <constanze@gentoo.org> metadata.xml:
Added Thomas D. as new maintainer
diff --git a/net-firewall/shorewall6/Manifest b/net-firewall/shorewall6/Manifest
index 3e0b499fce41..3352bc57bcdd 100644
--- a/net-firewall/shorewall6/Manifest
+++ b/net-firewall/shorewall6/Manifest
@@ -1,6 +1,10 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
+AUX 4.5.18-r1/shorewall6.conf-SUBSYSLOCK.patch 709 SHA256 6fcf06104fade54ae601b540dc2e6a1c282233742f6ee6a68b8d8599e8fd68c5 SHA512 16a20ac4db95f1d4658038553d816a5158a23ab241cce7bb5103f48d5e83bf438814cb26bdaac62d4733e41653c557dffb83a3c15ec11e7346b3d6ac355ba8e6 WHIRLPOOL bb2dfdfea1df96e0a72c0c9ae4a5b7a1f151de4d83513f97f716e9f22c354cc02f23b063940fa3a602dbf69bde45b7a2d0945012b21ec71de307275a5ad2b046
+AUX 4.5.18-r1/shorewall6.initd 2844 SHA256 ce1e60d23ecce4a2c6d9e0829c152411439c275e1eafc1b8a8e834e5da72f3f7 SHA512 a8d03bf3652a6488bb7d5bc8ecaa9febeefac1b7d1f2e86ab52a7de79a8d01ac70b243cfe626c244e4ffbcf64de13dfd3500d5222009b6955636303433e22e6a WHIRLPOOL dd2957be764ba457b6e537de0337b39fb2ebbf6061f1da84c6939f2a5b5ed58067ce446ca248e74274ef2a60fa9c002df7b6e576bc70a5d1302df8f5985768a5
+AUX 4.5.18-r1/shorewall6.systemd 453 SHA256 9e1e5d7657591a395b3f66849f323e00226c0bf739e7c875b9787b43cc64d11c SHA512 a7cfe34c106bdc2d50cceb607d92888f4c6b0d618d5dfa96f0c3a78689ab1f2092db609427393718495ed6753f89a4279e6883d44743da6bdeb1da3a111b1da3 WHIRLPOOL bd4253a8b58975674bd40b0606efcbcbdc6facf8ecb48e9c14792f96fa1fe49eb84fb05f89e7a54b1cd01d7f9b4463894670738b3b0b0ad2b7a01fbadc64ade6
+AUX 4.5.18-r1/shorewallrc_new 1893 SHA256 f24c31f70e1de7b802d8fdb400833885df2a04a1fe15a0b53e828cd877995de1 SHA512 ad0b4aa60ef414ba279fc425995ebc088b7a6913ba4748cd205542fec7555ea6bd2cb31cb109d9eb11767ee259cda9aa2a05f979269a54c905bb59a3cc4c014e WHIRLPOOL d37ec5e41ba96a3e54ea6bcdb10f0623518949360b5553387669d2bdcbbd5d22836b176d566a21efcfafb854605cbde960b19a69b9c486a54ee5a659e78afb81
AUX 4.5.19/shorewall6.conf-SUBSYSLOCK.patch 709 SHA256 6fcf06104fade54ae601b540dc2e6a1c282233742f6ee6a68b8d8599e8fd68c5 SHA512 16a20ac4db95f1d4658038553d816a5158a23ab241cce7bb5103f48d5e83bf438814cb26bdaac62d4733e41653c557dffb83a3c15ec11e7346b3d6ac355ba8e6 WHIRLPOOL bb2dfdfea1df96e0a72c0c9ae4a5b7a1f151de4d83513f97f716e9f22c354cc02f23b063940fa3a602dbf69bde45b7a2d0945012b21ec71de307275a5ad2b046
AUX 4.5.19/shorewall6.confd 160 SHA256 99aa9a4d3ae9f3bb590f5426c1266b6f7ee50a9e52f5a65b4cc56744a953982b SHA512 00e58351aade2ea9ade38373f3cacca3f10dcf4230b29e4a4e2b5d5d449ea9b78f40e2da7d94ed7c23980de2428198e3472399c6268662598b0fdbe008aff4b8 WHIRLPOOL 18532d1659a794d531548a91b0f096942fe5e82637ed05a9c5d49ed580d99a3e0c2807fd5ca5ea5c38139dc4c6f798b952433e59ee893f80240e5f4254435eda
AUX 4.5.19/shorewall6.initd 2964 SHA256 9ab8d2afe04ac64af42bd515ce54f39bc93c44a0f6e943e723ddcaf92facd4bb SHA512 80ca72cea77f9274ef4de7e44515072ff5d2267757cef3605b61376d37484234c99377623fa49ced8c43a983af1dcc61afb23807e71f8a38a2f3819f5e9a60a2 WHIRLPOOL b5bf30f8af4319b01db595aab9290303802a347ac2cd439f89224e2f3f04096ffb77a1f5af04a4b688a7c0b314769269a388c4b2e93758f952fa8f04cf38c9b8
@@ -13,16 +17,17 @@ DIST shorewall-docs-html-4.5.18.tar.bz2 4022828 SHA256 a98263059952ed50b826eb178
DIST shorewall-docs-html-4.5.19.tar.bz2 4033970 SHA256 7be6ebfa73a52151137201e098588ff6e67aa6fc21cf530a0fba564eeb8e77d1 SHA512 8ce06db614a6114cfe2c5c78acfaf111cba0ae5aa488df3879af6b5ecb20205ee453e308a7299e5df243a71067f93dcd8f4cf5faefbd8729ba11acee35cf34e0 WHIRLPOOL b55f90c6f9ca28cccddfb7bd899ce5815573db3ff4b4deabe454c6f30a9b01196ec4609d5251413d9761a28944a6acb19b6748c4dd41ea58fe2fa8da9845ed49
DIST shorewall6-4.5.18.tar.bz2 245009 SHA256 f3fb0cec903b98bed6c968e2d6af6faf49b346cbb6508731888304e1372cf62c SHA512 d3ce8d70239cc76d05520d244b958078240af795cfbbfddf010cb31681f1453d40817497939ff02b7e0a5da57291b707254a9eea420d7ad4921edad126eb585f WHIRLPOOL ed6e83b67d680493574818f0ada820f704aad37baf9dd973ea7702890d25a2989c53c5a4f1d8272ca4741aac595c9124011fe95071ee87ab3064e048d65192d8
DIST shorewall6-4.5.19.tar.bz2 245873 SHA256 6681669055d86338bcb3959afce43b9d073fe8e10ba9b482b5664ddb196a9201 SHA512 aa38fbc494a2c5f59f7bf4e5f84443c092e7bfff757e0b9e4f2669a0a214ce28f0022cae9a4ed51624de1974a261df6a3c43055b2e990af011e2027929e250de WHIRLPOOL fcb736bb440973b7997b79adc8021b618e8e8a9ebc0df81e9c9c07736df072de16f6a9d9a727520528b396c96264497d9f6f367bd6125a389a66a6d3a442db1c
+EBUILD shorewall6-4.5.18-r1.ebuild 1941 SHA256 af6fd1086d1a560678e241f6dce56b174b3850063e96c28fabf13aca59916286 SHA512 dc3962526782338ce7aaabaa6143beb30492839146e1d20d4b729270064a8bd002d6bed7324d299d0c61bb5da1bb45b10fc4b653e995be3805525aeebbf76794 WHIRLPOOL f0c32ec9f14b745425f41a2401cf32cda704ca5a601507349c37516d793c15e52c18168d10ec3c4e7017df1ce2ebcc9e1c1ca96bdddaf32f1dff9f2300f3ddd4
EBUILD shorewall6-4.5.18.ebuild 1631 SHA256 4ad78a59af8c9ea6f657033c1aa332b865bd8888a069ef2c5db088df92e9abb2 SHA512 278f7c3824d266b24db67c71709955287fef59c1a5467a5e8be935b0117fc0d3171ae09d231f5379ba3a21e4be941a82c38bb7cb9205c6e3925701cd06b753bb WHIRLPOOL e7cb6faa7cbc1ec6545b0237c8be6a861a8b6ce702461c52f202b97df795cc3cc8669fd01772646f251caeadecb9f3ce29a83fea79f69ae69ddc3ae3f2b814e1
EBUILD shorewall6-4.5.19.ebuild 2902 SHA256 f8fa92a85d7cb5352cf14b77acf0e81db461583594ca214ea93895e50375b4a6 SHA512 9ee94ef13cb107e819281e15d001de92cc3e57ba595d76260ac8b535a842155fa1e873ad2bba14d71b960300764af6858f34bb7f8ab367fe32491764d3427a2a WHIRLPOOL 5c40af6bee9616486b6a35f0988e3b93a2529ffacbd88530285e29f8d2178d107090daaa2d29e39e82c4bceaad1eea69daed3382bdf99d5cbab8b3d097a7c7a4
-MISC ChangeLog 13471 SHA256 c732825e6e626647c835d44a53b0296043836a79ec1e1c9f594060d153a2592c SHA512 7b9d64ac1510466eee94028ee1883ce4eb0243be8a223f9b49b678d618c1781026763c4d46c253b83abb1d9e9550b087a93ba3354fd423b1c116dca4793d3a84 WHIRLPOOL d4bfb83a47c82e8e20545b8135cd740722e14d7a4c1be8a1a28b5d1582bd3413f6b271247c0257caf8d791e3407d43ed8b8bf3e1b7179b3d22705d3196c9be5f
+MISC ChangeLog 13806 SHA256 c7d7f0f5596f5d6db05d3d9248939bec980865681dfdb99b43caff5850f4fa45 SHA512 e786da5cd375f2ca837ab4bbc054bf34ab001539398814a6c9cde7548753a581cc5abfdf22318c85e51f4b26ce2a8b7fc513dbaba5b7dc9f978aedb821d6549b WHIRLPOOL 47532556b4bc43cea51a9b7bc9f26ef5c5e64ab83808802e9a03ad49cbeb5e49b3728232bee06fa9569be3599328ae0f5408721897dc74240d2990dbfaf8b9f9
MISC metadata.xml 361 SHA256 ea12ad6e474c28d25b9203225c99d9a0336bd606fd3c2cd260c11d4982712357 SHA512 da1d88bdae3187e1c5d63b90da4fb2798f0a3f79558a57eb5ae0fab42eaa7268bfbd4102a870cbff73aa83c64bc1b10c1c7f71c01ee29f64772f7635e7da0ac9 WHIRLPOOL ae0b57811bf7617fb9cf3840a2e182d334a8303fda841c879c2791b893bd5515cae72fc0bb38f6554045bb531774798539f80b474a6152ebc04c31e5bc2f0464
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
-iL4EAREIAGYFAlIfmw5fFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl
+iL4EAREIAGYFAlI+8RRfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl
bnBncC5maWZ0aGhvcnNlbWFuLm5ldEIwNjQwRkMzRTI1OTEyQUUwM0MwQjVBQUJC
-ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsMSewD/ZzP38JBvtTmE/8XzRO0lVpaE
-hjW38CwBBgpg602nFhoA/2qhh0mMS9yu+S5UutBqkAuG4cHeMgfSsaDN6fjEqyNn
-=rcos
+ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsNUqAD+OxQTbghse73UkQXIp79fADUc
+xRYER5mtZR7bjSn8N40A/1wVABqHK/6tX7Mo1q0wlikxD4kb6HVUytXzUPqmDgWr
+=IGzP
-----END PGP SIGNATURE-----
diff --git a/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.conf-SUBSYSLOCK.patch b/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.conf-SUBSYSLOCK.patch
new file mode 100644
index 000000000000..9f3742a83568
--- /dev/null
+++ b/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.conf-SUBSYSLOCK.patch
@@ -0,0 +1,22 @@
+--- configfiles/shorewall6.conf 2013-06-24 22:07:38.000000000 +0200
++++ configfiles/shorewall6.conf.new 2013-07-01 15:50:54.747711444 +0200
+@@ -85,7 +85,7 @@
+
+ SHOREWALL_SHELL=/bin/sh
+
+-SUBSYSLOCK=/var/lock/subsys/shorewall6
++SUBSYSLOCK=/run/lock/shorewall6
+
+ TC=
+
+--- configfiles/shorewall6.conf.annotated 2013-06-27 20:32:22.000000000 +0200
++++ configfiles/shorewall6.conf.annotated.new 2013-07-01 15:51:38.448332964 +0200
+@@ -444,7 +444,7 @@
+ # or specified as a null value, /bin/sh is assumed. Using a light-weight
+ # shell such as ash or dash can significantly improve performance.
+ #
+-SUBSYSLOCK=/var/lock/subsys/shorewall6
++SUBSYSLOCK=/run/lock/shorewall6
+ #
+ # SUBSYSLOCK=[pathname]
+ #
diff --git a/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.initd b/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.initd
new file mode 100644
index 000000000000..5bb6f434d122
--- /dev/null
+++ b/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.initd
@@ -0,0 +1,107 @@
+#!/sbin/runscript
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.initd,v 1.1 2013/09/22 13:18:09 constanze Exp $
+
+description='The Shoreline Firewall 6, more commonly known as "Shorewall6", is'
+description="${description} a high-level tool for configuring Netfilter."
+
+extra_commands="check clear"
+extra_started_commands="refresh reset"
+
+description_check="Checks if the configuration will compile or not."
+
+description_clear="Clear will remove all rules and chains installed by"
+description_clear="${description_clear} Shorewall6. The firewall is then"
+description_clear="${description_clear} wide open and unprotected."
+
+description_refresh="The mangle table will be refreshed along with the"
+description_refresh="${description_refresh} blacklist chain (if any)."
+
+description_reset="All the packet and byte counters in the firewall are reset."
+
+depend() {
+ need net
+ provide firewall
+ after ulogd
+}
+
+status() {
+ local _retval
+ /sbin/shorewall6 status 1>/dev/null
+ _retval=$?
+ if [ ${_retval} = '0' ]; then
+ einfo 'status: started'
+ mark_service_started "${SVCNAME}"
+ return 0
+ else
+ einfo 'status: stopped'
+ mark_service_stopped "${SVCNAME}"
+ return 3
+ fi
+}
+
+start() {
+ ebegin "Starting shorewall6"
+ /sbin/shorewall6 start 1>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping shorewall6"
+ /sbin/shorewall6 stop 1>/dev/null
+ eend $?
+}
+
+restart() {
+ # shorewall comes with its own control script that includes a
+ # restart function, so refrain from calling svc_stop/svc_start
+ # here. Note that this comment is required to fix bug 55576;
+ # runscript.sh greps this script... (09 Jul 2004 agriffis)
+
+ ebegin "Restarting shorewall6"
+ /sbin/shorewall6 status 1>/dev/null
+ if [ $? != 0 ] ; then
+ svc_start
+ else
+ /sbin/shorewall6 restart 1>/dev/null
+ fi
+ eend $?
+}
+
+clear() {
+ # clear will remove all the rules and bring the system to an unfirewalled
+ # state. (21 Nov 2004 eldad)
+
+ ebegin "Clearing all shorewall rules and setting policy to ACCEPT"
+ /sbin/shorewall6 clear 1>/dev/null
+ eend $?
+}
+
+reset() {
+ # reset the packet and byte counters in the firewall
+
+ ebegin "Resetting the packet and byte counters in shorewall6"
+ /sbin/shorewall6 reset 1>/dev/null
+ eend $?
+}
+
+refresh() {
+ # refresh the rules involving the broadcast addresses of firewall
+ # interfaces, the black list, traffic control rules and
+ # ECN control rules
+
+ ebegin "Refreshing shorewall6 rules"
+ /sbin/shorewall6 refresh 1>/dev/null
+ eend $?
+}
+
+check() {
+ # perform cursory validation of the zones, interfaces, hosts, rules
+ # and policy files. CAUTION: does not parse and validate the generated
+ # iptables commands.
+
+ ebegin "Checking shorewall6 configuration"
+ /sbin/shorewall6 check 1>/dev/null
+ eend $?
+}
diff --git a/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.systemd b/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.systemd
new file mode 100644
index 000000000000..1c6e95374a80
--- /dev/null
+++ b/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.systemd
@@ -0,0 +1,20 @@
+#
+# The Shoreline Firewall (Shorewall) Packet Filtering Firewall - V4.4
+#
+# Copyright 2011 Jonathan Underwood (jonathan.underwood@gmail.com)
+#
+[Unit]
+Description=Shorewall IPv6 firewall
+After=syslog.target
+After=network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+EnvironmentFile=/etc/shorewall6
+StandardOutput=syslog
+ExecStart=/sbin/shorewall6 $OPTIONS start
+ExecStop=/sbin/shorewall6 $OPTIONS stop
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-firewall/shorewall6/files/4.5.18-r1/shorewallrc_new b/net-firewall/shorewall6/files/4.5.18-r1/shorewallrc_new
new file mode 100644
index 000000000000..0f9301cfeb49
--- /dev/null
+++ b/net-firewall/shorewall6/files/4.5.18-r1/shorewallrc_new
@@ -0,0 +1,22 @@
+#
+# Gentoo Shorewall 4.5 rc file
+#
+BUILD= #Default is to detect the build system
+HOST=linux #Generic Linux
+PREFIX=@GENTOO_PORTAGE_EPREFIX@/usr #Top-level directory for shared files, libraries, etc.
+SHAREDIR=${PREFIX}/share #Directory for arch-neutral files.
+LIBEXECDIR=${PREFIX}/share #Directory for executable scripts.
+PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory
+CONFDIR=@GENTOO_PORTAGE_EPREFIX@/etc #Directory where subsystem configurations are installed
+SBINDIR=@GENTOO_PORTAGE_EPREFIX@/sbin #Directory where system administration programs are installed
+MANDIR=${PREFIX}/share/man #Directory where manpages are installed.
+INITDIR=${CONFDIR}/init.d #Directory where SysV init scripts are installed.
+INITFILE=${PRODUCT} #Name of the product's installed SysV init script
+INITSOURCE=init.gentoo.sh #Name of the distributed file to be installed as the SysV init script
+ANNOTATED= #If non-zero, annotated configuration files are installed
+SYSTEMD=@GENTOO_PORTAGE_EPREFIX@/usr/lib/systemd/system #Directory where .service files are installed (systems running systemd only)
+SYSCONFFILE= #Name of the distributed file to be installed in $SYSCONFDIR
+SYSCONFDIR=${CONFDIR}/conf.d #Directory where SysV init parameter files are installed
+SPARSE= #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR
+VARLIB=@GENTOO_PORTAGE_EPREFIX@/var/lib #Directory where product variable data is stored.
+VARDIR=${VARLIB}/${PRODUCT} #Directory where product variable data is stored.
diff --git a/net-firewall/shorewall6/shorewall6-4.5.18-r1.ebuild b/net-firewall/shorewall6/shorewall6-4.5.18-r1.ebuild
new file mode 100644
index 000000000000..dcb552f02bc4
--- /dev/null
+++ b/net-firewall/shorewall6/shorewall6-4.5.18-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/shorewall6-4.5.18-r1.ebuild,v 1.1 2013/09/22 13:18:09 constanze Exp $
+
+EAPI="5"
+
+inherit eutils linux-info prefix systemd versionator
+
+# Select version (stable, RC, Beta, upstream patched):
+MY_PV_TREE=$(get_version_component_range 1-2) # for devel versions use "development/$(get_version_component_range 1-2)"
+MY_PV_BASE=$(get_version_component_range 1-3) # which shorewall-common to use
+
+MY_PN="${PN/6/}"
+MY_P="${MY_PN}-${MY_PV_BASE}"
+MY_P_DOCS="${MY_PN}-docs-html-${PV}"
+
+DESCRIPTION="Shoreline Firewall with IPv6 support."
+HOMEPAGE="http://www.shorewall.net/"
+SRC_URI="http://www1.shorewall.net/pub/${MY_PN}/${MY_PV_TREE}/${MY_P}/${P}.tar.bz2
+ doc? ( http://www1.shorewall.net/pub/${PN}/${MY_PV_TREE}/${MY_P}/${MY_P_DOCS}.tar.bz2 )"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+
+IUSE="doc"
+
+RDEPEND=">=net-firewall/iptables-1.4.0
+ sys-apps/iproute2
+ >=net-firewall/shorewall-${PVR}
+ dev-perl/Socket6"
+
+pkg_pretend() {
+ if kernel_is lt 2 6 25 ; then
+ die "${PN} requires at least kernel 2.6.25."
+ fi
+}
+
+src_prepare() {
+ cp "${FILESDIR}"/${PVR}/shorewallrc_new "${S}"/shorewallrc.gentoo || die "Copying shorewallrc_new failed"
+ eprefixify "${S}"/shorewallrc.gentoo
+
+ cp "${FILESDIR}"/${PVR}/${PN}.initd "${S}"/init.gentoo.sh || die "Copying shorewall.initd failed"
+
+ epatch "${FILESDIR}"/${PVR}/shorewall6.conf-SUBSYSLOCK.patch
+ epatch_user
+}
+
+src_configure() {
+ :;
+}
+
+src_compile() {
+ :;
+}
+
+src_install() {
+ keepdir /var/lib/${PN}
+
+ cd "${WORKDIR}/${P}"
+ DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed"
+ systemd_newunit "${FILESDIR}"/${PVR}/shorewall6.systemd 'shorewall6.service'
+
+ dodoc changelog.txt releasenotes.txt
+ if use doc; then
+ dodoc -r Samples6
+ cd "${WORKDIR}/${MY_P_DOCS}"
+ dohtml -r *
+ fi
+}