summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2014-03-15 23:02:02 +0000
committerMarkos Chandras <hwoarang@gentoo.org>2014-03-15 23:02:02 +0000
commitdda6a9e90950fd1c8e452a96d2e01368ccce1d63 (patch)
treea0ba5f1ae5188cdff7b6186ac6c8a91801f506b1 /net-firewall/shorewall-init
parentversion bump (diff)
downloadhistorical-dda6a9e90950fd1c8e452a96d2e01368ccce1d63.tar.gz
historical-dda6a9e90950fd1c8e452a96d2e01368ccce1d63.tar.bz2
historical-dda6a9e90950fd1c8e452a96d2e01368ccce1d63.zip
Version bump. Bug #499174 thanks to Thomas D.
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0xC2BA7F3C!
Diffstat (limited to 'net-firewall/shorewall-init')
-rw-r--r--net-firewall/shorewall-init/ChangeLog15
-rw-r--r--net-firewall/shorewall-init/Manifest33
-rw-r--r--net-firewall/shorewall-init/files/4.5.21.7/01_Remove-ipset-functionality.patch27
-rw-r--r--net-firewall/shorewall-init/files/4.5.21.7/10-releasenotes.patch13
-rw-r--r--net-firewall/shorewall-init/files/4.5.21.7/README.Gentoo.txt30
-rw-r--r--net-firewall/shorewall-init/files/4.5.21.7/shorewall-init.confd9
-rw-r--r--net-firewall/shorewall-init/files/4.5.21.7/shorewall-init.initd196
-rw-r--r--net-firewall/shorewall-init/files/4.5.21.7/shorewall-init.systemd16
-rw-r--r--net-firewall/shorewall-init/files/4.5.21.7/shorewallrc23
-rw-r--r--net-firewall/shorewall-init/metadata.xml12
-rw-r--r--net-firewall/shorewall-init/shorewall-init-4.5.21.7.ebuild105
11 files changed, 463 insertions, 16 deletions
diff --git a/net-firewall/shorewall-init/ChangeLog b/net-firewall/shorewall-init/ChangeLog
index cd9c6f80e64f..8ce8b69e91ac 100644
--- a/net-firewall/shorewall-init/ChangeLog
+++ b/net-firewall/shorewall-init/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for net-firewall/shorewall-init
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-init/ChangeLog,v 1.2 2013/12/02 19:58:43 constanze Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-init/ChangeLog,v 1.3 2014/03/15 23:01:59 hwoarang Exp $
+
+*shorewall-init-4.5.21.7 (15 Mar 2014)
+
+ 15 Mar 2014; Markos Chandras <hwoarang@gentoo.org>
+ +files/4.5.21.7/01_Remove-ipset-functionality.patch,
+ +files/4.5.21.7/10-releasenotes.patch, +files/4.5.21.7/README.Gentoo.txt,
+ +files/4.5.21.7/shorewall-init.confd, +files/4.5.21.7/shorewall-init.initd,
+ +files/4.5.21.7/shorewall-init.systemd, +files/4.5.21.7/shorewallrc,
+ +shorewall-init-4.5.21.7.ebuild, metadata.xml:
+ Version bump. Bug #499174 thanks to Thomas D.
*shorewall-init-4.5.21.4 (02 Dec 2013)
@@ -19,4 +29,3 @@
+files/4.5.21.2/shorewall-init.initd, +files/4.5.21.2/shorewall-init.systemd,
+shorewall-init-4.5.21.2.ebuild, +files/4.5.21.2/shorewallrc, +metadata.xml:
Initial version of shorewall-init; Thanks to Thomas D.
-
diff --git a/net-firewall/shorewall-init/Manifest b/net-firewall/shorewall-init/Manifest
index 834acde0550f..6a3ea20a7efd 100644
--- a/net-firewall/shorewall-init/Manifest
+++ b/net-firewall/shorewall-init/Manifest
@@ -13,18 +13,37 @@ AUX 4.5.21.4/shorewall-init.confd 230 SHA256 f3845fcdf5e76492c23238a42e03ef028a6
AUX 4.5.21.4/shorewall-init.initd 4480 SHA256 d397f495cfa6726ed70e3acb088abecaea82b4566f4dfa1ebb4c6994e878a2dc SHA512 6fa4d0665ab0d8856e3b55f3374077e1b4ab6e16092b850709be10b70c6c4cb5b67d387d660d6d17bd4dd2b0bac17157285ac30ad072189828f5c301c93bdb2f WHIRLPOOL 8b5a8fc6298817687ed1e896bf437ba16e28f5d5c3497210fde0f73fb2710005ad4e8d2c524b2340e88cc8cf31b7916aba64ca37a473508a8527627b465e27fc
AUX 4.5.21.4/shorewall-init.systemd 343 SHA256 54b9800171441271808a4fe01b85d7e6408cfb284b69d88c1abdd9491a5e6921 SHA512 d326933f4ebcc7a6780e64c2a32413d553fb8cfd7d183395efacc7348e30f7e7f62589917025996694f46a4fc31fdca7404dd5de8b8f90e52518f812597451a0 WHIRLPOOL d7ab450c30e10588fcacb19382fecd0a0654ce308275392945148d7353af69a51d20cde8199fafded80098522452ca2a4ff42314d8b63f18e347ca66283c5d90
AUX 4.5.21.4/shorewallrc 2006 SHA256 1f5a784ccb33ffe50cbacc066f783e1446996a60d99deb473ffbd5a69e9150a6 SHA512 c397c556f56444b08b091f405f2b82d16cf4b4e42d98176bede01ff32f270841fbaa6e0e5f5e7e1e4871ed5a0be22b654ae5c07f728e747449ab5f43025cde9f WHIRLPOOL 1d94b8bc7a9a4ac73480a610be58d4842bf0243f004fd7d5f668eab9be0e02ed3ce58bef9281bb638e5e5d346f47e8a15cc33d9a1e0bba1d642e125923d953e3
+AUX 4.5.21.7/01_Remove-ipset-functionality.patch 563 SHA256 ed4e8debb0eac40527f4c63df929e84d54bce066f1c7f002cafd9e34b01079ce SHA512 d4b9c4aea7a0d1eea24c6e7f045ce7b61b24969e962fee0f95b28c6fad490eb20c6c6cb568813d0bebf91fa6da22b9de06da03ed5bf7b2284309d0bd7d236394 WHIRLPOOL 1c3cb1f5a3829e317e834fb56a6be9a1d3ed3c63f5e4825875bbb71a85f9db195de09f6b36002e25b477e70ddf57ce6921290c31a001bb6f7036dc6600943708
+AUX 4.5.21.7/10-releasenotes.patch 672 SHA256 2a7638cdf09e6fe8440f83c239e473878453749b7485c7d697fa33193364a0f6 SHA512 eae8a680840080efcd08ba2e3f252cea7eb89a5d8d8ecf0f0481af6cac11e2e6322e1f42f89b1c5cd950c635a5ed72be0bb5a6707fbc80914afc58f4c246e98a WHIRLPOOL 90cce01ece70f660aee3ac84a63f43f9c08c3cafecc58722870d7d99259d066e26533909506458a9db467e57954edd8796d2045d7cf4c3d9f5885ef757148d88
+AUX 4.5.21.7/README.Gentoo.txt 1233 SHA256 01439a974c15797954f3b9ce8fc7dbd8c81baff79e6a4e81e745416103896ce3 SHA512 8dbb70cc381b81ae811dcbfbcff63f5de0ba776472107a7d3b53e912fe50f20acb59f5da2aecec5de87ad0513a40fb4b4dfa30b51ff5f4b0da9186504870304a WHIRLPOOL a4293a49656253e3d7903b5a067d67b1bffdb1fffb3d92a43a2c32dd8a796998c67ad66beb756b4c45db618ab72b0dbc1bc81f183976c174b483bb4a2401a643
+AUX 4.5.21.7/shorewall-init.confd 230 SHA256 f3845fcdf5e76492c23238a42e03ef028a63841f383213e8d7ba229d4396470a SHA512 c032f7eddded7c29212fa363cb7af7305bdea70e48de45c42747331cd6fd5f3319f3f0d9172f02a33e925d8a1bd6d02a6a27bcaaa3bf6006005873d293577e62 WHIRLPOOL 60057322b80f785924b832d3bdd0a0efc4dcd10358d0589f31cb7a932ecd363b43910f2b2f23c43e66fddc52f563b034fe547ddc43541ef07967e76055f7c3d8
+AUX 4.5.21.7/shorewall-init.initd 4479 SHA256 c47ca7f0c7aa57450f40994010891dfd6ba7541b071ef2525b1d1a19dd89a706 SHA512 b6b4a5d67cde309d330d06fc218fb40d83a1c5c4400357d8deba0bc3421fc4951606c57da2eed2d4b26fc8d974e8293f967ea7f23354bce6939c780d96a3ed14 WHIRLPOOL 1c51c9151f7752be58849b62b591346187273eb9454ab397a0a0d026be9d8a2ce1a7c32aa9091495329d96f637fdc8cfb4547d1900bddba133f561d109992db6
+AUX 4.5.21.7/shorewall-init.systemd 343 SHA256 54b9800171441271808a4fe01b85d7e6408cfb284b69d88c1abdd9491a5e6921 SHA512 d326933f4ebcc7a6780e64c2a32413d553fb8cfd7d183395efacc7348e30f7e7f62589917025996694f46a4fc31fdca7404dd5de8b8f90e52518f812597451a0 WHIRLPOOL d7ab450c30e10588fcacb19382fecd0a0654ce308275392945148d7353af69a51d20cde8199fafded80098522452ca2a4ff42314d8b63f18e347ca66283c5d90
+AUX 4.5.21.7/shorewallrc 2006 SHA256 1f5a784ccb33ffe50cbacc066f783e1446996a60d99deb473ffbd5a69e9150a6 SHA512 c397c556f56444b08b091f405f2b82d16cf4b4e42d98176bede01ff32f270841fbaa6e0e5f5e7e1e4871ed5a0be22b654ae5c07f728e747449ab5f43025cde9f WHIRLPOOL 1d94b8bc7a9a4ac73480a610be58d4842bf0243f004fd7d5f668eab9be0e02ed3ce58bef9281bb638e5e5d346f47e8a15cc33d9a1e0bba1d642e125923d953e3
DIST shorewall-init-4.5.21.2.tar.bz2 65230 SHA256 f43125910f1c771afab2ce8daa405ca46c08b53bee3d856d7835154509833883 SHA512 94250a1e5d61bb9ebdfc7148a9aaacd1a6e589beb7916f5417eaf56f153b1d9c64e7d1a399a6ad55c952d7ebfa40bfa22ac4915b1d58a82a76e8da3c6037f3d9 WHIRLPOOL d84112de6b2db88041fabe79043df4b71813221ccd3aac29320ad2619ad6af6c90a547099124ba581a4dce7407adcd17a0abd2afb46cddeccd7fd6f3b820554e
DIST shorewall-init-4.5.21.4.tar.bz2 65466 SHA256 c2c98c425a651ddc61136965a8549762dd35efe3d85a79efad25591ddfc4d077 SHA512 e4448fc6146bd312a4fa3cffa9997597349d16b6ab8d8d361da958f5ac63c74511ee5b367163aa4ba5f9dc6bbb9d7854aee8f9e267ca56c5575e54ce16e618c6 WHIRLPOOL bfbe491068766627036c2601a9adf6632607fda448a91d3873b5c09237a8f6ab84b432bb394b019e0a9ab41a37991b1918a7b57214e8798876b1578b7998bcd6
+DIST shorewall-init-4.5.21.7.tar.bz2 66069 SHA256 333904c191c670d463bbf9c3143df51ecf1e33454a89f3917a07817f0f3ce68b SHA512 2c44a6ec5d5b4395b8e41b8a54cff066c75b8c8b8aba87d97f98d7011841a947b497e91272cd31e7422db306b237d102c02b76bacd9537574e359d275fe33286 WHIRLPOOL 49251ed0600a4ab387b5d36882c049cd95bfd4aa7e6d6cc8782731707d739725348bcfcb3c3e1115ce9387e730b71ebff5773f70f2045a05ed00438d15a266ee
EBUILD shorewall-init-4.5.21.2.ebuild 3044 SHA256 8a5529ffc79a8431ca556a8a0a7303f67866f66470f140c979ac05a8aaddd301 SHA512 0582470ea20595b7a10a7759c24dcee47ffed3325e87c817beb350e921e31a2b9f9217c6670fb2047f2e72bf1adb8f4a23db925eeffcfa219997fb7b2b8ff678 WHIRLPOOL de75cfef89d7ba3419486e058130475a891546d347fedba53f4572771be33e619c14a1a8935e4fa02b9e103b8653a07c289fb63a569bd576492b233c0b3338f1
EBUILD shorewall-init-4.5.21.4.ebuild 3044 SHA256 62609113e7f860889a9871956aff8da49538bd4dab846df15d53134e2db0e50d SHA512 580d0efa5a8de3aa8a51eb08b08c9e47af3f1440f55530167aff583ddf64502281cbbc667274935c34d8eeb1d1f000a026b83ab7157bcc0b000a6803de502fd6 WHIRLPOOL 2cb318764b4374c94be8573fd00ff7b3ee0ae511547486d9f853d238c5cff4f3032e12b7f59f28db6a1fe65e6d860fbea8785be635c98c83c3bc8482f394f943
-MISC ChangeLog 1080 SHA256 841a295bad5c60426798273566c1cf81fed5cc288b564a1fb541ca2f1442327e SHA512 a1cba4198f91489b7778c606577b1a267f1d0f5f7fd82808efe54fc012292137c3f5f727ff58e733241753d3dd535b89f8f0280075eedea228df12cd28721741 WHIRLPOOL 9789cadd558af8e000ec76358b25622fb083c4e428acd34ed93d2f719d6c07a95f5246558a0da293510fbb5b1dedfb9bb99663e7d59007084d3ed42d2db1078d
-MISC metadata.xml 276 SHA256 c0509cd51ecd918ca2fb54f777ac69644f3df01ad04cb7876421792b1fae7799 SHA512 dd4a0d2c0a0ad7bf3fbea0a0dc1a120ffaa7e36f7ece3c4067f318a4c742f6a37ff5d6ff9b7982c0ba694d12e9f0f33d32f92d5e5da0256d298a6262256373ae WHIRLPOOL 0ade135cd178412b03da32cb792e0db02e984a7fec226452ce18d48044f656be72f98ead7498157ab1f4d5e861ac696e1635f7bc70a9061a6b7e2354bf51ba56
+EBUILD shorewall-init-4.5.21.7.ebuild 3132 SHA256 70ab6fa401f6d31a30a7f54034552ae585c947d90909d461865a098b846b26db SHA512 398510d555a64e09b99062e43493fa5903c2cb18b863d2645846c5a65c3d7475a8ecd9d5fdee1a312f9f5ac91bdf2034c479144d151f87f98b90d8b86c63e619 WHIRLPOOL 68f7b47281f5e9c106f36ce8399c7a22f9ddcf5e445ad61ca1f4fbb777d9a15ce70481bb1793cec62f134add95be85ca765f450465e293c9629729192601bbd0
+MISC ChangeLog 1549 SHA256 5e43c8a41cf4d72ef968b8daa7a2129281791b3dbeac6b37df7ee89022448611 SHA512 b185f949618e9012e6a7a65be19e0c51ac034014a63b7b585313cfcce74a59d0a4d8d4df04796122d9e2b16aff774c2e30342510f6e9edec23b6ae7ca60a2fba WHIRLPOOL 081fabe1b44f50a6228b3d38594922839ab3d5bc90a0de58accd62d503912dd66f11c17f7cfcc2a760293e9014c660b4a252e6d493333eca843540cfbf1cd9c8
+MISC metadata.xml 289 SHA256 8c1fb547b467632a3f8f41524f2aa2fb7bfcaaeb980e5b9eb7dcde83464df222 SHA512 b626395ae7b75ae4bcd3ca4120e967f649ceb514661dcc967679f9e5e93a9974baf890ea77426144623821f01e9f42d6fbc405172d0530e1e7d8bb0f046150b0 WHIRLPOOL d0e1145ee0aa32be11b6ad80c3d6e69392b3853a72af757fea16deb5f84e01c5fa8f943589662697efc2eda5f7149dd9601e95bf653cf2bd24917d82d3844449
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iL4EAREIAGYFAlKc5n5fFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl
-bnBncC5maWZ0aGhvcnNlbWFuLm5ldEIwNjQwRkMzRTI1OTEyQUUwM0MwQjVBQUJC
-ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsN0FAD/WZoE2dj+M7kFuWTmeOwFttoa
-6ud7UtfakbXTUFYH7REA/i33C1JJtMWV7lVWQ18KcNmhI9sfQS61DsJKzk13eopj
-=j2sY
+iQJ8BAEBCABmBQJTJNujXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzNTVDNDczOUYzRjJEMTRGNDRGMzU2RkMw
+OUJGNEY1NEMyQkE3RjNDAAoJEAm/T1TCun881skQAIBK6im4H81vL0/dsA2CzTPt
+9WWnVhoXfggfGWhoXIKQNcYfJTafE4WMoxZDiUGkc5OyoG8chcl5xx2+0mlQm+gt
+7nOqaqbEtJxaU5ISsvrMJXxd/hup5B6LDUWiBQCBjWMSErgqIdVxRDNjkakHWF9/
+2ukZ7+3UrrknPpnmMrJPJ2bl33+uWZ+G9pp0N3EkKWOwJnMwlK1VGzHQwxnPvKbW
+fRRTv/E6nSgbZtoI0Zjt5jID61QFV+zYbY8U3RkWDAmxpEyIOUVK4AG63KDD36/H
+ISxHIIEyMYc7H7iKSGQJpnOXOQuJJzYlfMdMglvbe39yEDiPrPPwmFIihnXSgUQ7
+3jo5QaVSnvFr2/eraa26jgAFe42zRC7v2NwBJpWR4RWcshZdweAf8pqqDOSAEpbE
+ucZwUi6k3S72CpsP1SwSZzpNtDgZIMppzhgVkOOI2PxKb/s4/ccDKVaPo9bfaIWa
+h+SAE4bWp2EN6QM+YqZ+NgNjkHsT5BmUOOW0/ERNhfpYBP7+oQQtr/qTmf5VeSD0
+USvGRHQzRmI9NJGFuSo0M2v9ohE+gcvlKksf4DMvevs9yjmHnGOCwbOs0BXV2LLe
+06l0d/HdqOLQRYh2rOuqeBx1IFikgPFH/6of9544Ww07xiVl6fH5pNi6AirDvEFm
+e8pfF8qte9tYRStmIsYO
+=uIAD
-----END PGP SIGNATURE-----
diff --git a/net-firewall/shorewall-init/files/4.5.21.7/01_Remove-ipset-functionality.patch b/net-firewall/shorewall-init/files/4.5.21.7/01_Remove-ipset-functionality.patch
new file mode 100644
index 000000000000..620e479f92fc
--- /dev/null
+++ b/net-firewall/shorewall-init/files/4.5.21.7/01_Remove-ipset-functionality.patch
@@ -0,0 +1,27 @@
+--- shorewall-init.old 2013-09-08 23:25:36.364924304 +0200
++++ shorewall-init 2013-09-08 23:29:27.418736392 +0200
+@@ -79,10 +79,6 @@
+ fi
+ done
+
+- if [ -n "$SAVE_IPSETS" -a -f "$SAVE_IPSETS" ]; then
+- ipset -R < "$SAVE_IPSETS"
+- fi
+-
+ return 0
+ }
+
+@@ -100,13 +96,6 @@
+ fi
+ done
+
+- if [ -n "$SAVE_IPSETS" ]; then
+- mkdir -p $(dirname "$SAVE_IPSETS")
+- if ipset -S > "${SAVE_IPSETS}.tmp"; then
+- grep -qE -- '^(-N|create )' "${SAVE_IPSETS}.tmp" && mv -f "${SAVE_IPSETS}.tmp" "$SAVE_IPSETS"
+- fi
+- fi
+-
+ return 0
+ }
+
diff --git a/net-firewall/shorewall-init/files/4.5.21.7/10-releasenotes.patch b/net-firewall/shorewall-init/files/4.5.21.7/10-releasenotes.patch
new file mode 100644
index 000000000000..2b7a21af798b
--- /dev/null
+++ b/net-firewall/shorewall-init/files/4.5.21.7/10-releasenotes.patch
@@ -0,0 +1,13 @@
+This patch will update the version number in the release notes.
+
+See http://thread.gmane.org/gmane.comp.security.shorewall/30808
+
+--- shorewall-init-4.5.21.7.old/releasenotes.txt 2014-03-08 16:35:39.000000000 +0100
++++ shorewall-init-4.5.21.7/releasenotes.txt 2014-03-09 14:38:19.503337459 +0100
+@@ -1,5 +1,5 @@
+ ----------------------------------------------------------------------------
+- S H O R E W A L L 4 . 5 . 2 1 . 6
++ S H O R E W A L L 4 . 5 . 2 1 . 7
+ ------------------------------------
+ M a r c h 0 8 , 2 0 1 4
+ ----------------------------------------------------------------------------
diff --git a/net-firewall/shorewall-init/files/4.5.21.7/README.Gentoo.txt b/net-firewall/shorewall-init/files/4.5.21.7/README.Gentoo.txt
new file mode 100644
index 000000000000..f7b13fed3de6
--- /dev/null
+++ b/net-firewall/shorewall-init/files/4.5.21.7/README.Gentoo.txt
@@ -0,0 +1,30 @@
+shorewall-init from upstream offers two features (taken from [1]):
+
+ 1. It can 'close' the firewall before the network interfaces are
+ brought up during boot.
+
+ 2. It can change the firewall state as the result of interfaces
+ being brought up or taken down.
+
+On Gentoo we only support the first feature -- the firewall lockdown during
+boot.
+
+We do not support the second feature, because Gentoo doesn't support a
+if-{up,down}.d folder like other distributions do. If you would want to use
+such a feature, you would have to add a custom action to /etc/conf.d/net
+(please refer to the Gentoo Linux Handbook [2] for more information).
+If you are able to add your custom {pre,post}{up,down} action, your are
+also able to specify what shorewall{6,-lite,6-lite} should do, so there is
+no need for upstream's scripts in Gentoo.
+
+If you disagree with us, feel free to open a bug [3] and contribute your
+solution for Gentoo.
+
+Upstream's original init script also supports saving and restoring of
+ipsets. Please use the init script from net-firewall/ipset if you need
+such a feature.
+
+
+[1] http://www.shorewall.net/Shorewall-init.html
+[2] http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4&chap=5
+[3] https://bugs.gentoo.org
diff --git a/net-firewall/shorewall-init/files/4.5.21.7/shorewall-init.confd b/net-firewall/shorewall-init/files/4.5.21.7/shorewall-init.confd
new file mode 100644
index 000000000000..4ca0024579f7
--- /dev/null
+++ b/net-firewall/shorewall-init/files/4.5.21.7/shorewall-init.confd
@@ -0,0 +1,9 @@
+# List the Shorewall products that Shorewall-init is to
+# initialize (space-separated list).
+#
+# Sample: PRODUCTS="shorewall shorewall6-lite"
+#
+PRODUCTS=""
+
+# Startup options - set verbosity to 0 (minimal reporting)
+OPTIONS="-V0"
diff --git a/net-firewall/shorewall-init/files/4.5.21.7/shorewall-init.initd b/net-firewall/shorewall-init/files/4.5.21.7/shorewall-init.initd
new file mode 100644
index 000000000000..95c5581f5961
--- /dev/null
+++ b/net-firewall/shorewall-init/files/4.5.21.7/shorewall-init.initd
@@ -0,0 +1,196 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-init/files/4.5.21.7/shorewall-init.initd,v 1.1 2014/03/15 23:01:59 hwoarang Exp $
+
+SHOREWALLRC_FILE="@GENTOO_PORTAGE_EPREFIX@/usr/share/shorewall/shorewallrc"
+CONFIG_FILE="@GENTOO_PORTAGE_EPREFIX@/etc/conf.d/${SVCNAME}"
+
+description="Puts Shorewall in a safe state at boot time"
+description="${description} prior to bringing up the network."
+
+required_files="$SHOREWALLRC_FILE"
+
+depend() {
+ need localmount
+ before net
+ after bootmisc ipset tmpfiles.setup ulogd
+}
+
+
+. $SHOREWALLRC_FILE
+
+checkconfig() {
+ local PRODUCT=
+
+ if [ -z "${VARLIB}" ]; then
+ eerror "\"VARLIB\" isn't defined or empty! Please check" \
+ "\"${SHOREWALLRC_FILE}\"."
+
+
+ return 1
+ fi
+
+ if [ -z "${PRODUCTS}" ]; then
+ eerror "${SVCNAME} isn't configured! Please check" \
+ "\"${CONFIG_FILE}\"."
+
+
+ return 1
+ fi
+
+ for PRODUCT in ${PRODUCTS}; do
+ if [ ! -x ${SBINDIR}/${PRODUCT} ]; then
+ eerror "Invalid product \"${PRODUCT}\" specified" \
+ "in \"${CONFIG_FILE}\"!"
+ eerror "Maybe \"${PRODUCT}\" isn't installed?"
+
+
+ return 1
+ fi
+ done
+
+
+ return 0
+}
+
+check_firewall_script() {
+ if [ ! -x ${STATEDIR}/firewall ]; then
+ if [ ${PRODUCT} = shorewall -o ${PRODUCT} = shorewall6 ]; then
+ ebegin "Creating \"${STATEDIR}/firewall\""
+ ${SBINDIR}/${PRODUCT} compile 1>/dev/null
+ eend $?
+ else
+ eerror "\"${PRODUCT}\" isn't configured!"
+ eerror "Please go to your 'administrative system'" \
+ "and deploy the compiled firewall" \
+ "configuration for this system."
+
+
+ return 1
+ fi
+ fi
+
+
+ return 0
+}
+
+is_allowed_to_be_executed() {
+ # This is not a real service. shorewall-init is an intermediate
+ # script to put your Shorewall-based firewall into a safe state
+ # at boot time prior to bringing up the network.
+ # Please read /usr/share/doc/shorewall-init-*/README.gentoo.gz
+ # for more information.
+ # When your system is up, there is no need to call shorewall-init.
+ # Please call shorewall{,6,-lite,6-lite} directly. That's the
+ # reason why we are preventing start, stop or restart here.
+
+ local PRODUCT=
+
+ if [ "${RC_RUNLEVEL}" != "boot" -a "${RC_CMD}" = "start" ]; then
+ # Starting shorewall-init is only allowed at boot time
+ eerror "This is a boot service, which can only be started" \
+ "at boot."
+ eerror "If you want to get your shorewall-based firewall" \
+ "into the same safe boot state again, run"
+ eerror ""
+ eindent
+ for PRODUCT in ${PRODUCTS}; do
+ eerror "/etc/init.d/${PRODUCT} stop"
+ done
+ eoutdent
+ eerror ""
+ eerror "Yes, \"stop\" and not start."
+ eerror ""
+ return 1
+ fi
+
+ if [ "${RC_RUNLEVEL}" != "shutdown" -a "${RC_CMD}" = "stop" ]; then
+ # Stopping shorewall-init is only allowed at shutdown
+ eerror "This is a boot service, which cannot be stopped."
+ eerror "If you really want to stop your Shorewall-based" \
+ "firewall the same way this service would stop" \
+ "Shorewall at shutdown, please run"
+ eerror ""
+ eindent
+ for PRODUCT in ${PRODUCTS}; do
+ eerror "/etc/init.d/${PRODUCT} clear"
+ done
+ eoutdent
+ eerror ""
+ eerror "Keep in mind that this will clear (=bring down)" \
+ "your firewall!"
+ eerror ""
+ return 1
+ fi
+
+ if [ "${RC_CMD}" = "restart" ]; then
+ eerror "This is a boot service, which cannot be restarted."
+ eerror "If you want to restart any of your Shorewall-based" \
+ "firewalls, run"
+ eerror ""
+ eindent
+ for PRODUCT in ${PRODUCTS}; do
+ eerror "/etc/init.d/${PRODUCT} restart"
+ done
+ eoutdent
+ eerror ""
+ return 1
+ fi
+
+
+ return 0
+}
+
+set_statedir() {
+ STATEDIR=
+ local VARDIR=
+
+ if [ -f ${CONFDIR}/${PRODUCT}/vardir ]; then
+ STATEDIR=$( . ${CONFDIR}/${PRODUCT}/vardir && echo ${VARDIR} )
+ fi
+
+ [ ! -n "${STATEDIR}" ] && STATEDIR=${VARLIB}/${PRODUCT}
+}
+
+start_pre() {
+ checkconfig || return 1
+
+ is_allowed_to_be_executed || return 1
+}
+
+start() {
+ local PRODUCT=
+ local STATEDIR=
+
+ for PRODUCT in ${PRODUCTS}; do
+ set_statedir
+
+ check_firewall_script || return 1
+
+ ebegin "Initializing \"${PRODUCT}\""
+ ${STATEDIR}/firewall stop 1>/dev/null
+ eend $?
+ done
+}
+
+stop_pre() {
+ checkconfig || return 1
+
+ is_allowed_to_be_executed || return 1
+}
+
+stop() {
+ local PRODUCT=
+ local STATEDIR=
+
+ for PRODUCT in ${PRODUCTS}; do
+ set_statedir
+
+ check_firewall_script || return 1
+
+ ebegin "Clearing \"${PRODUCT}\""
+ ${STATEDIR}/firewall clear 1>/dev/null
+ eend $?
+ done
+}
diff --git a/net-firewall/shorewall-init/files/4.5.21.7/shorewall-init.systemd b/net-firewall/shorewall-init/files/4.5.21.7/shorewall-init.systemd
new file mode 100644
index 000000000000..e48a729105b8
--- /dev/null
+++ b/net-firewall/shorewall-init/files/4.5.21.7/shorewall-init.systemd
@@ -0,0 +1,16 @@
+#
+# The Shoreline Firewall (Shorewall) Packet Filtering Firewall - V4.5
+#
+[Unit]
+Description=shorewall-init
+Documentation=http://www.shorewall.net/Shorewall-init.html
+Before=network.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/sbin/shorewall-init start
+ExecStop=/sbin/shorewall-init stop
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-firewall/shorewall-init/files/4.5.21.7/shorewallrc b/net-firewall/shorewall-init/files/4.5.21.7/shorewallrc
new file mode 100644
index 000000000000..46f5eb9a3603
--- /dev/null
+++ b/net-firewall/shorewall-init/files/4.5.21.7/shorewallrc
@@ -0,0 +1,23 @@
+#
+# Gentoo Shorewall 4.5 rc file
+#
+BUILD= #Default is to detect the build system
+HOST=gentoo #Gentoo GNU 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)
+SERVICEFILE=gentoo.service #Name of the distributed file to be installed as systemd service file
+SYSCONFFILE=default.gentoo #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/shorewall-init/metadata.xml b/net-firewall/shorewall-init/metadata.xml
index 03caed7b9582..52ffdde3f9be 100644
--- a/net-firewall/shorewall-init/metadata.xml
+++ b/net-firewall/shorewall-init/metadata.xml
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>netmon</herd>
-<herd>proxy-maintainers</herd>
-<maintainer>
- <email>whissi@whissi.de</email>
- <name>Thomas D.</name>
-</maintainer>
+ <herd>netmon</herd>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>whissi@whissi.de</email>
+ <name>Thomas D. (Whissi)</name>
+ </maintainer>
</pkgmetadata>
diff --git a/net-firewall/shorewall-init/shorewall-init-4.5.21.7.ebuild b/net-firewall/shorewall-init/shorewall-init-4.5.21.7.ebuild
new file mode 100644
index 000000000000..9d281367d6cf
--- /dev/null
+++ b/net-firewall/shorewall-init/shorewall-init-4.5.21.7.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-init/shorewall-init-4.5.21.7.ebuild,v 1.1 2014/03/15 23:01:59 hwoarang Exp $
+
+EAPI="5"
+
+inherit eutils versionator prefix
+
+MY_URL_PREFIX=
+case ${P} in
+ *_beta* | \
+ *_rc*)
+ MY_URL_PREFIX='development/'
+ ;;
+esac
+
+MY_PV=${PV/_rc/-RC}
+MY_PV=${MY_PV/_beta/-Beta}
+MY_P=${PN}-${MY_PV}
+
+MY_MAJOR_RELEASE_NUMBER=$(get_version_component_range 1-2)
+MY_MAJORMINOR_RELEASE_NUMBER=$(get_version_component_range 1-3)
+
+DESCRIPTION="Component to secure a Shorewall-protected system at boot time prior to bringing up the network."
+HOMEPAGE="http://www.shorewall.net/"
+SRC_URI="http://www1.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=sys-apps/coreutils-8.20"
+RDEPEND="
+ ${DEPEND}
+ || ( =net-firewall/shorewall-${PVR} =net-firewall/shorewall6-${PVR} =net-firewall/shorewall-lite-${PVR} =net-firewall/shorewall6-lite-${PVR} )
+"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ cp "${FILESDIR}"/${PVR}/shorewallrc "${S}"/shorewallrc.gentoo || die "Copying shorewallrc failed"
+ eprefixify "${S}"/shorewallrc.gentoo
+
+ cp "${FILESDIR}"/${PVR}/${PN}.confd "${S}"/default.gentoo || die "Copying ${PN}.confd failed"
+
+ cp "${FILESDIR}"/${PVR}/${PN}.initd "${S}"/init.gentoo.sh || die "Copying ${PN}.initd failed"
+ eprefixify "${S}"/init.gentoo.sh
+
+ cp "${FILESDIR}"/${PVR}/${PN}.systemd "${S}"/gentoo.service || die "Copying ${PN}.systemd failed"
+
+ epatch "${FILESDIR}"/${PVR}/01_Remove-ipset-functionality.patch
+ epatch "${FILESDIR}"/${PVR}/10-releasenotes.patch
+ epatch_user
+}
+
+src_configure() {
+ :;
+}
+
+src_compile() {
+ :;
+}
+
+src_install() {
+ DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed"
+
+ if [ -d "${D}/etc/logrotate.d" ]; then
+ # On Gentoo, shorewall-init will not create shorewall-ifupdown.log,
+ # so we don't need a logrotate folder at all
+ rm -rf "${D}"/etc/logrotate.d
+ fi
+
+ if [ -d "${D}/etc/NetworkManager" ]; then
+ # On Gentoo, we don't support NetworkManager
+ # so we don't need these folder at all
+ rm -rf "${D}"/etc/NetworkManager
+ fi
+
+ if [ -f "${D}/usr/share/shorewall-init/ifupdown" ]; then
+ # This script won't work on Gentoo
+ rm -rf "${D}"/usr/share/shorewall-init/ifupdown
+ fi
+
+ dodoc changelog.txt releasenotes.txt "${FILESDIR}"/${PVR}/README.Gentoo.txt
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ # This is a new installation
+ elog "Before you can use ${PN}, you need to edit its configuration in:"
+ elog ""
+ elog " ${EPREFIX}/etc/conf.d/${PN}"
+ elog ""
+ elog "To use ${PN}, please add ${PN} to your boot runlevel:"
+ elog ""
+ elog " # rc-update add ${PN} boot"
+ elog ""
+ ewarn "Notice:"
+ ewarn "${PN} is more like a start script than a service."
+ ewarn "Therefore you cannot start or stop ${PN} at default runlevel."
+ ewarn ""
+ ewarn "For more information read ${EPREFIX}/usr/share/doc/${PF}/README.Gentoo.txt.bz2"
+ fi
+}