summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2017-07-24 19:20:26 +0200
committerThomas Deutschmann <whissi@gentoo.org>2017-07-24 19:20:26 +0200
commitc6ca2ae91cda83b3492525962122da9f8ab01dc4 (patch)
tree0123e902f32b5f29aaa994f509b71bec7c47211d /net-firewall
parentapp-emulation/diskimage-builder: 2.7.0 bup (diff)
downloadgentoo-c6ca2ae91cda83b3492525962122da9f8ab01dc4.tar.gz
gentoo-c6ca2ae91cda83b3492525962122da9f8ab01dc4.tar.bz2
gentoo-c6ca2ae91cda83b3492525962122da9f8ab01dc4.zip
net-firewall/shorewall: Bump to v5.1.5.1
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/shorewall/Manifest7
-rw-r--r--net-firewall/shorewall/shorewall-5.1.5.1.ebuild456
2 files changed, 463 insertions, 0 deletions
diff --git a/net-firewall/shorewall/Manifest b/net-firewall/shorewall/Manifest
index 5be60d4c7515..a32bd14fc7b7 100644
--- a/net-firewall/shorewall/Manifest
+++ b/net-firewall/shorewall/Manifest
@@ -1,21 +1,28 @@
DIST shorewall-5.0.15.6.tar.bz2 525827 SHA256 17ae4613eac68a62d4cd520af8c63b54b36ae79aac4e22fc57c74929a968ef46 SHA512 d1665a30a9b1273e3cfdb7e8001a679beb3d09e75e8fd21caadcd528d3912cceca5525c6ef7c8191865e8e62d1abaa894480a403cc2e8ef6545301ca36f83b32 WHIRLPOOL 1e2e613de27e6caf449b8f3127526dc68971d08693b7235a7f504abc8cf2afcdda244f910b726e37e2554080830f13eb197424995a0a5155b73d5c538042ce5d
DIST shorewall-5.1.4.4.tar.bz2 511611 SHA256 fe71c2a2efdc45b594ecc097115322c2203fe31b3098efa4023eff429ff2c55f SHA512 14c7a8cb750b37b72adba28ae00619d4e27fdc73801f1462705754ddbb47727d60425021018bdefdef6c373f2310a774569a88728125e52fd59cf10d94ee4aea WHIRLPOOL 0ef8b315f577c4c8612ad5f842dc8b5e3f4248445cda56136f733fc78d8217d6b5607ff9ed17d43cdd81109b3e493b640ce7bf7e9d33750eaff1cd0effac5c37
+DIST shorewall-5.1.5.1.tar.bz2 519694 SHA256 ef07733c45cbdde4a11b9ce1895f1aeeb36e69146282b8b943f6eda438694a8a SHA512 ab2f8a55c6f03cb4834c5914d77cdfa19cba30e23160533c423cf8f1425b5929df379ed12fee5630e52f2b869bc21111788bffdd2ef3c5937c2e8139ec311817 WHIRLPOOL 7b9dd3ec05f84faae2e9760afb1c70371655bc12c9479603836a8a5fed3c3979ec23421eba1117aaa51fedffb806eca7bcb82e8f615c88e56cd63ee80d405f7f
DIST shorewall-5.1.5.tar.bz2 519297 SHA256 8604f07fcfde07afc6215988d47229a135d1a30da412974fda127af13aef3899 SHA512 54c02d34f3d79aa210ca18c99de5f51dc404b1104f0456dfc12d0917bcabb4bf76bd6ff98ba78ee36a7e35adfcc37c6bbe9d0c878a96f4380b0ab5b3e59946b6 WHIRLPOOL 9825cf31b1144cc1c47d7e6a6b1a75c3a897db122d2fd49039ac75a57db5aabc5575e4f838b3fe32247d83983ef20d124db4ff7f4e3efc3484ec83937bf6ae4b
DIST shorewall-core-5.0.15.6.tar.bz2 65272 SHA256 6b1c461494922f207397ce2d9ed12b0a105d82ee3528a02a4448bc6c028623b8 SHA512 5e33ef55c4ca43a5c49747d5b3f40c9f43b0696e7084a6db56df73810551d216bd313860eb5354f50b1f9849c4d332f665e3f4832ff1cf3a9542bb6a43a73119 WHIRLPOOL 1b66e763e0d37b78b0343c8ad4964d46459347114bbebfeb965af075d73bbf71a8c695310f051f4160e5dd1cc7033e32545a5404538acce7d0452aa1618af4cd
DIST shorewall-core-5.1.4.4.tar.bz2 76206 SHA256 e5fddd7f25b717bce6cc3a9e50d72cb172335d113c58aaef4496004297db6a13 SHA512 24a9a0176d3b1c3dede7428393b9e04a37329053fff95f15102a04d97fb95b30a11c7e0d550a457a29b07291c9347c9b96969ea1b03b68858b3e022f29fd908a WHIRLPOOL 1ff57177c352bd828a0f113267ea154ff5288eb83caa556b07fe85784de896e227f89bae47e7eaaecb76f1a2dbd0fdc87c95f20f8706ef480504a2c5cba0ad2b
+DIST shorewall-core-5.1.5.1.tar.bz2 77100 SHA256 8fe63431785ec1fa8c3ec5f9ba68647f4da9845168a84e410cf905804a6aae8a SHA512 9f3651bcccc84be172c12e27f7b352b706ed397c767e5092a76c45f705a7c53b5650e69eb810b4d00be2a7f37e9dd43f20748ba54a8ff868e84dddf2b3b8c965 WHIRLPOOL 47eaf747e2ffa7a7f81a948860ce3a65fafc17806abe29e2848bec426fcc55b20d9d4b1714f1561b82a8bd1c20996bf5166874b1ad1402a3765cc347b715e90f
DIST shorewall-core-5.1.5.tar.bz2 76964 SHA256 7ad44b91342538e10be438a2e2bfc987789191865ff57c61bb24e35bdb6b8301 SHA512 b9e18f853187d8e382fe1993d7094cc2ca4e982d12bf765c7a521f7d45fe002a5456816787d27107b38be3b9091f8fc20e3f6e0d5844593673677835ab09b571 WHIRLPOOL 22c253d442c1d2f8dc35ca86988104b9838154c55ddf3ef6fee518209cbca2cf14276817192ea330bad7026d56dab1c7e957e8ebfdef7b98c3ff17637bfc4f4c
DIST shorewall-docs-html-5.0.15.6.tar.bz2 4290931 SHA256 e6b253591fd9df7d00bf0bbcfd9c563f4248013119e13b22b34d947b244ce4e4 SHA512 e1304ea2b0e05645654b04ea825d255de70e02edc5f183dcf9eba88641aaeda8cd9781bf46a84b98628a7ed148bf1450e37e7871ef2a577e54ffd3707d7d85c3 WHIRLPOOL f1c038886f1428480c1f6b6be688717cee11717a8ae2b31ea35aef915245d2e46f7934e5bc0e54aaca7a9c83b0328cb3e96c949ed96730bada25896d85fbbf4a
DIST shorewall-docs-html-5.1.4.4.tar.bz2 4280886 SHA256 892d704fe4b15b4f8fe5cd7bee8d456122bfc25f8d514d6efdb767b071e9991a SHA512 15c66e82c40de0a0edad798dc0acda45323160720d806a2759dd82816270e175a5891270b0198f1533f4092b8744629b3c8389f0093869a63d66af2a1d7ff9f1 WHIRLPOOL 20cf5de986eb07e0693671454904f87d2cbf4a66895029d94e96f3ed4d3ef312e69ce4ecbdd8fb876ef02b982803f6042848ed807ad4ee240eac67d4b6c64782
+DIST shorewall-docs-html-5.1.5.1.tar.bz2 4218521 SHA256 c9da6309e72c530af253e90c50fe994d338ab887bc3603a4a140c6c781d3e2a8 SHA512 30e1e3049c2992588d5d542962d4a7f6c97d1a5db1a5a6d0bf0e0c291108a0f01555c72cb336dc859d9446f5be38f86d7c83288151e689ac7d7423fb55ef36e3 WHIRLPOOL d17f0db967ee2d3138b691d2131051f2f20cf8637495509c7a22c4fed005a3cc2fe5dda4e2fc67b05f1e1d8546d55d78c6b17d5912d287e2eec8afe6422e86ad
DIST shorewall-docs-html-5.1.5.tar.bz2 4210862 SHA256 a1b6c59edff3f0222ed7eafbfd0d8f7873caa06316d4a1c28174e133051b8640 SHA512 0635f57916a71a823ee9e05ac6099447af6e1aaab1c6478b9800d15cfc57a0928ceed17a3347037a7cf4bf02cec25af6089f7a6e201cc158affac272d70fbd93 WHIRLPOOL 3598986c4fe1c98cbe95bb829ff240dc92d69e9f8f3892ef49749681f53841b1d202abb39601ff0cc9231bb994ee654796f52a87b4c2bc0afad0d60ebc9f6f8b
DIST shorewall-init-5.0.15.6.tar.bz2 42934 SHA256 c7afa1aff586186c4ce0cbe0f4e0fc06a84e936349f3dc69c84ef97c815fc6c1 SHA512 11c639b20992005e74ccd4aaa855a519fe6f96b030f171e91d68ec4ba1ca5ff5f73c6a1c823c5ffc88e3ad8e3cc2809dd24a91e0c892ab1f71d6c957113367e9 WHIRLPOOL c1190c31f5c2556fa7e73385856c8bbeb3b0cadb5ebed834e9b2138eee90059a864d85301095d3accdf537b6b4347cffe213d26c6a2201e040887647c65f4291
DIST shorewall-init-5.1.4.4.tar.bz2 31258 SHA256 7ba1d2910fdb5dea4078aae96b469e228e20934e3637d6d3d7f6a5f89f535eb2 SHA512 b49bb7787a3c0a748af15d5d98b63beaaea4f4b8448e48b2064a10197a74d087107d6bdd70dcfd9211ddb2e58d6e97991591c2f617648b87401bc53f76e3a5ea WHIRLPOOL f0121eff5ff1fe6ad1a191a1a764925d8bc2ca6b847e3442f334190d048e6b8c38e42283b33d8e542321d3d606f0ba28b204ff31e49dce9fd4067abefd498a29
+DIST shorewall-init-5.1.5.1.tar.bz2 32356 SHA256 44d1fefb6884e61e18d047e7ab41f267722bf85bef2dff1c4e58118be5087a0f SHA512 4cc3d06ee200c2d6a2f34915315194ec8a8e795239b43b6dbe7f92c43f3725bc33f68eebc87943933e0031f56a65e50578927ad8c5507f498433159dcbdb89fd WHIRLPOOL de79be3d062b28d120c79570aa8496cc9613fa2825dca137a77349bf891d28d51e31c34707d61fa8f406818b73c85e382b3266a7f40a5ce5ca61abd982c1fe90
DIST shorewall-init-5.1.5.tar.bz2 32080 SHA256 3b98742b38c5cd347e034c494d80a8b565406ceb3dee0df97a7c4ed30da30ea4 SHA512 ca4b4b04944401fdc7dfd257beefda001597d5e45e7b73b7eddb28fede558beba42cf65a71ffb65de4e8f46cb0391e7018634cc9af9cf3110f75791bd18443e8 WHIRLPOOL 6e22f543c422f97d34e51ef62e8619876326005216b12c967f65536485d3db71bd0288b7d4f5f9d9696b3806aef8767fcaff5ae5e4908d196b6a481e8bba874b
DIST shorewall-lite-5.0.15.6.tar.bz2 59347 SHA256 393a2aea8fe8c9d43babaad969e00c80508900123d78a0433d3a3ac6470fd6a8 SHA512 e49f74bfa39d65fffca00657487bc4d8600d6330af0413d3b146ff9192769def1e3f66e181c02bf541d50b73e327ff4035f86fd4ded5a133fc02b84c958a4bbc WHIRLPOOL 85e25de97e5594ae41e2277f6a48500d14add389710c0727483a270b8d071dec2ef66c8d2633b96a34109b432c4025832cdb7c05c9eb4de4d8ac9aba755651e8
DIST shorewall-lite-5.1.4.4.tar.bz2 37096 SHA256 38c956fa2ecbda9c625f8d511673158f70e126e11017b1945006ac2c6d66a3ba SHA512 d29a8676e1e117fca5fc1068bb180c88b5560535c46e6ae089a0f0646939cfe6c9c990ec02a35fd21ac62f8435a1e34f6bcbca8b09f7ef09c65a901d59bfe107 WHIRLPOOL 0d380427ce07f26f0882f8011391ca94f8db17137961595a920b241a7ba0529268cd1d96ec50be3204f4e2a6b46e1b29d21cb845551a61a66313d16f84ac8123
+DIST shorewall-lite-5.1.5.1.tar.bz2 38154 SHA256 071a981a66c87304ebdfce20a650516840663c7a4f9ae4017c6645d705cac943 SHA512 504c3f16014ce00efe180894904b00493cbcf6af9e350e881ea1f499bbedf425d9e20b88e7aa3496ba78339e85973849cb9f3b3671a01515adde512876594ef1 WHIRLPOOL dcc96a662c2eb68abb8c1e84589785bd5fffc98cd6b1a1991cf702a47734bf76582a8d590994b12fa580f6c522d9909d1c33872fde5b9b0ce9886d4828f0e9ac
DIST shorewall-lite-5.1.5.tar.bz2 37871 SHA256 c15e4adc0cea595b90d82361d8d6c2f8e1ac843a3918e75d53c2e480f013cb1b SHA512 e40647f06e61a5bd87d36d3591ca872cfcb850defe1954375009d6a2207ad7e912b94b1b891ac105b08cc80fa01eaa6ce83aa58925a86b5eeb79226e5c9754c0 WHIRLPOOL 1dd49ecc36d057df10e0f34f148432519dc49945c841492c9c6242b53011dd78079b2fb3802672dbaaf124339ccf66401421aeba1b3ff176c35b137191351c1b
DIST shorewall6-5.0.15.6.tar.bz2 240682 SHA256 1434b973e76ed75080aa1853986406a2346e57f0f21b094a2e1793a8b6bd7ee4 SHA512 26ea371bf40548ceda7bff786b790dd74e9a1a74a3745dcc683e7101ea5303eef87006116704d15aa688b0c40c0777c7732a7727fe714c71c8566b85ae4c560a WHIRLPOOL 92097d48bcd77ff814ab2ce9a0edb9514f2ec2e27725fd01492982ae9e4731e4366b6a5a10d903122ec7e0c43a4107d370b8f2ee11dc213a9ae78a19df6dd172
DIST shorewall6-5.1.4.4.tar.bz2 224995 SHA256 17ffd91eab228766c8fae80d7087a7a229de62f2a7e93e71e22807b647e9165d SHA512 dbc73ca2805f022a06594192ecef35a33874e0099e306d7e1b052765a5bb2e1a51008f2e08f66d505b2b6e36d8f0da730ec77f1b625abae0403af88030d878ac WHIRLPOOL f91d1db40956ad289014ff7156b74246cf12504ff0b84f46ea641e06fc2d55c417357f2c812e78c48f3ea29a4635e408b20946ebcf6ce35a2bcd0de20128e212
+DIST shorewall6-5.1.5.1.tar.bz2 187735 SHA256 15199281e09623b2e196062a07c3789a17c6b034fef6cf9501480681113227ef SHA512 01864eac5aa48fd096b19ea7923a051d635d18aeda47feaee2ae586996b430290a6f6eeeb2de68d97826bbd156dcda43bf1eae75cd7e47e64441752cb33fee5e WHIRLPOOL e807bf48446ad4576fe3cf493a4aeb34ee0964bb768d70924422d302aa0480aba1d2cdce420cf94571433f0e404bb04651db421cd36f265af5ddca600190297e
DIST shorewall6-5.1.5.tar.bz2 187203 SHA256 aac997b2e335ef8d5d041f2b2f791e4dc6abe537f7f009a7b2ac11aabf9391f2 SHA512 6876f7a2f9820152e6bd15fc77b36f6734b5bb39895059f29497c231840c3eff3b973cf9976f0a63483379309341f158dae9e007e8f6de4c6a12833ec37ffbba WHIRLPOOL d51b2bc37bba659c6789dda13541a8f8816cba8163f3173f0aba5ba11f35f13b2fe231ea8189dd927b88107c92425cb0a0625caaf50be91f1384ec357a5d24e0
DIST shorewall6-lite-5.0.15.6.tar.bz2 58776 SHA256 1d693d3815bd0c2e4a9e7acad7be38ff2b354681da847a5ec4b8d87ca860378f SHA512 83cab85eda851e071eb004688b10a70811bd6f896c831e97713c48b322ee419ed9fc8ac7570b4faf567be317ca1d6f5c89c1e0da0e025a94abe39aa0f000e9ad WHIRLPOOL 842e02fe907854682b54343750df60b0e4c60613eca675d69c071c4d726a05d5d940c8283e9b718413520b3ccc11a01913dabba49189c41a61aa756645a401ae
DIST shorewall6-lite-5.1.4.4.tar.bz2 36797 SHA256 2372bc0e9c6e253c1e4db82353d6e4eb4b2a4353a57834e00b775fad99c22af0 SHA512 a1b2ff1f509e6560a94cd5d4f7f3ae3aff456bf19720a5e967b5a609bab3aa2c15a0d5e5b9b9fd54e9e3a551eb6d2da57f993f87354909d045e8f8b31bc073c4 WHIRLPOOL db463165743c799776221d25148311404a687a79377ae5672c7e80d01e1854a3be6b20ebbc17b5d0abd2cd931116ca9a19dbd02249a33f36ef13b32d0a50c556
+DIST shorewall6-lite-5.1.5.1.tar.bz2 37868 SHA256 341493e5549edc90c6767afae295fd17ffa05889ce0dbf8624a9849ae636abb5 SHA512 5fff35a195d7d509a2a849525fb9947cbe613734637161818f0dce43c90bc5c2d357d52972e74dde2fe23757c49fcf1e6eff1bc39e31eab09bb929cf14871b30 WHIRLPOOL 590608a46ff4954bda7582ca69079b1ec68f6501b496e5f45f36d5fa64b37596d9ed8313977d8286586e8ba4d774048da5a624c2574b2e756ebe6d5d835132b4
DIST shorewall6-lite-5.1.5.tar.bz2 37557 SHA256 3399b83da651904d34267512b8054ff9b336b6a9d666e0b26e9cbf84cedf509f SHA512 efe0fc9c6109a04d08ca81dec086d9e33f4b6c1476904c5749c472ff0bad8d7b5115713ae76ea29e226733a990db67b7f8ae3d87464c08fe4a913d28c5e027dd WHIRLPOOL 302a6298f9ad0b2dac79442e4b9a2c6e2be08d2c8de42bc3a594fc256ee292a13fa95604865023b3483a030ee4ee796439693f54c8aa9d83af0fb2b07ba56b8b
diff --git a/net-firewall/shorewall/shorewall-5.1.5.1.ebuild b/net-firewall/shorewall/shorewall-5.1.5.1.ebuild
new file mode 100644
index 000000000000..ea2ef11ce095
--- /dev/null
+++ b/net-firewall/shorewall/shorewall-5.1.5.1.ebuild
@@ -0,0 +1,456 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit linux-info prefix systemd versionator
+
+DESCRIPTION='A high-level tool for configuring Netfilter'
+HOMEPAGE="http://www.shorewall.net/"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="doc +init +ipv4 ipv6 lite4 lite6 selinux"
+
+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)
+
+# shorewall
+MY_PN_IPV4=Shorewall
+MY_P_IPV4=${MY_PN_IPV4/#S/s}-${MY_PV}
+
+# shorewall6
+MY_PN_IPV6=Shorewall6
+MY_P_IPV6=${MY_PN_IPV6/#S/s}-${MY_PV}
+
+# shorewall-lite
+MY_PN_LITE4=Shorewall-lite
+MY_P_LITE4=${MY_PN_LITE4/#S/s}-${MY_PV}
+
+# shorewall6-lite
+MY_PN_LITE6=Shorewall6-lite
+MY_P_LITE6=${MY_PN_LITE6/#S/s}-${MY_PV}
+
+# shorewall-init
+MY_PN_INIT=Shorewall-init
+MY_P_INIT=${MY_PN_INIT/#S/s}-${MY_PV}
+
+# shorewall-core
+MY_PN_CORE=Shorewall-core
+MY_P_CORE=${MY_PN_CORE/#S/s}-${MY_PV}
+
+# shorewall-docs-html
+MY_PN_DOCS=Shorewall-docs-html
+MY_P_DOCS=${MY_PN_DOCS/#S/s}-${MY_PV}
+
+# Upstream URL schema:
+# Beta: $MIRROR/pub/shorewall/development/4.6/shorewall-4.6.4-Beta2/shorewall-4.6.4-Beta2.tar.bz2
+# RC: $MIRROR/pub/shorewall/development/4.6/shorewall-4.6.4-RC1/shorewall-4.6.4-RC1.tar.bz2
+# Release: $MIRROR/pub/shorewall/4.6/shorewall-4.6.3/shorewall-4.6.3.3.tar.bz2
+
+MY_URL_PREFIX=
+MY_URL_SUFFIX=
+if [[ ${MY_PV} = *-Beta* ]] || [[ ${MY_PV} = *-RC* ]]; then
+ MY_URL_PREFIX='development/'
+
+ _tmp_last_index=$(($(get_last_version_component_index ${MY_PV})+1))
+ _tmp_suffix=$(get_version_component_range ${_tmp_last_index} ${MY_PV})
+ if [[ ${_tmp_suffix} = *Beta* ]] || [[ ${_tmp_suffix} = *RC* ]]; then
+ MY_URL_SUFFIX="-${_tmp_suffix}"
+ fi
+
+ # Cleaning up temporary variables
+ unset _tmp_last_index
+ unset _tmp_suffix
+else
+ KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+fi
+
+SRC_URI="
+ 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
+ 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 )
+ 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 )
+ 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 )
+ 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 )
+ 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 )
+ 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 )
+"
+
+# - Shorewall6 requires Shorewall
+# - Installing Shorewall-init or just the documentation doesn't make any sense,
+# that's why we force the user to select at least one "real" Shorewall product
+#
+# See http://shorewall.net/download.htm#Which
+REQUIRED_USE="
+ ipv6? ( ipv4 )
+ || ( ipv4 lite4 lite6 )
+"
+
+# No build dependencies! Just plain shell scripts...
+DEPEND=""
+
+RDEPEND="
+ >=net-firewall/iptables-1.4.20
+ >=sys-apps/iproute2-3.8.0[-minimal]
+ >=sys-devel/bc-1.06.95
+ ipv4? (
+ >=dev-lang/perl-5.16
+ virtual/perl-Digest-SHA
+ )
+ ipv6? (
+ >=dev-perl/Socket6-0.230.0
+ >=net-firewall/iptables-1.4.20[ipv6]
+ >=sys-apps/iproute2-3.8.0[ipv6]
+ )
+ lite6? (
+ >=net-firewall/iptables-1.4.20[ipv6]
+ >=sys-apps/iproute2-3.8.0[ipv6]
+ )
+ init? ( >=sys-apps/coreutils-8.20 )
+ selinux? ( >=sec-policy/selinux-shorewall-2.20161023-r3 )
+ !net-firewall/shorewall-core
+ !net-firewall/shorewall6
+ !net-firewall/shorewall-lite
+ !net-firewall/shorewall6-lite
+ !net-firewall/shorewall-init
+ !<sys-apps/systemd-214
+"
+
+S=${WORKDIR}
+
+pkg_pretend() {
+ local CONFIG_CHECK="~NF_CONNTRACK"
+
+ local WARNING_CONNTRACK="Without NF_CONNTRACK support, you will be unable"
+ local WARNING_CONNTRACK+=" to run any shorewall-based firewall on the local system."
+
+ if use ipv4 || use lite4; then
+ CONFIG_CHECK="${CONFIG_CHECK} ~NF_CONNTRACK_IPV4"
+
+ local WARNING_CONNTRACK_IPV4="Without NF_CONNTRACK_IPV4 support, you will"
+ local WARNING_CONNTRACK_IPV4+=" be unable to run any shorewall-based IPv4 firewall on the local system."
+ fi
+
+ if use ipv6 || use lite6; then
+ CONFIG_CHECK="${CONFIG_CHECK} ~NF_CONNTRACK_IPV6"
+
+ local WARNING_CONNTRACK_IPV6="Without NF_CONNTRACK_IPV6 support, you will"
+ local WARNING_CONNTRACK_IPV6+=" be unable to run any shorewall-based IPv6 firewall on the local system."
+ fi
+
+ check_extra_config
+}
+
+pkg_setup() {
+ if [[ -n "${DIGEST}" ]]; then
+ einfo "Unsetting environment variable \"DIGEST\" to prevent conflicts with package's \"install.sh\" script ..."
+ unset DIGEST
+ fi
+}
+
+src_prepare() {
+ # We are moving each unpacked source from MY_P_* to MY_PN_*.
+ # This allows us to use patches from upstream and keeps epatch_user working
+
+ einfo "Preparing shorewallrc ..."
+ cp "${FILESDIR}"/shorewallrc-r1 "${S}"/shorewallrc.gentoo || die "Copying shorewallrc failed"
+ eprefixify "${S}"/shorewallrc.gentoo
+
+ # shorewall-core
+ mv "${S}"/${MY_P_CORE} "${S}"/${MY_PN_CORE} || die "Failed to move '${S}/${MY_P_CORE}' to '${S}/${MY_PN_CORE}'"
+ ebegin "Applying Gentoo-specific changes to ${MY_P_CORE} ..."
+ ln -s ../shorewallrc.gentoo ${MY_PN_CORE}/shorewallrc.gentoo || die "Failed to symlink shorewallrc.gentoo"
+ eend 0
+
+ # shorewall
+ if use ipv4; then
+ mv "${S}"/${MY_P_IPV4} "${S}"/${MY_PN_IPV4} || die "Failed to move '${S}/${MY_P_IPV4}' to '${S}/${MY_PN_IPV4}'"
+ ebegin "Applying Gentoo-specific changes to ${MY_P_IPV4}"
+ ln -s ../shorewallrc.gentoo ${MY_PN_IPV4}/shorewallrc.gentoo || die "Failed to symlink shorewallrc.gentoo"
+ cp "${FILESDIR}"/shorewall.confd-r1 "${S}"/${MY_PN_IPV4}/default.gentoo || die "Copying shorewall.confd-r1 failed"
+ cp "${FILESDIR}"/shorewall.initd-r2 "${S}"/${MY_PN_IPV4}/init.gentoo.sh || die "Copying shorewall.initd-r2 failed"
+ cp "${FILESDIR}"/shorewall.systemd "${S}"/${MY_PN_IPV4}/gentoo.service || die "Copying shorewall.systemd failed"
+ eend 0
+ fi
+
+ # shorewall6
+ if use ipv6; then
+ mv "${S}"/${MY_P_IPV6} "${S}"/${MY_PN_IPV6} || die "Failed to move '${S}/${MY_P_IPV6}' to '${S}/${MY_PN_IPV6}'"
+ ebegin "Applying Gentoo-specific changes to ${MY_P_IPV6}"
+ ln -s ../shorewallrc.gentoo ${MY_PN_IPV6}/shorewallrc.gentoo || die "Failed to symlink shorewallrc.gentoo"
+ cp "${FILESDIR}"/shorewall.confd-r1 "${S}"/${MY_PN_IPV6}/default.gentoo || die "Copying shorewall.confd-r1 failed"
+ cp "${FILESDIR}"/shorewall.initd-r2 "${S}"/${MY_PN_IPV6}/init.gentoo.sh || die "Copying shorewall.initd-r2 failed"
+ cp "${FILESDIR}"/shorewall6.systemd "${S}"/${MY_PN_IPV6}/gentoo.service || die "Copying shorewall6.systemd failed"
+ eend 0
+ fi
+
+ # shorewall-lite
+ if use lite4; then
+ mv "${S}"/${MY_P_LITE4} "${S}"/${MY_PN_LITE4} || die "Failed to move '${S}/${MY_P_LITE4}' to '${S}/${MY_PN_LITE4}'"
+ ebegin "Applying Gentoo-specific changes to ${MY_P_LITE4}"
+ ln -s ../shorewallrc.gentoo ${MY_PN_LITE4}/shorewallrc.gentoo || die "Failed to symlink shorewallrc.gentoo"
+ cp "${FILESDIR}"/shorewall-lite.confd-r1 "${S}"/${MY_PN_LITE4}/default.gentoo || die "Copying shorewall-lite.confd-r1 failed"
+ cp "${FILESDIR}"/shorewall-lite.initd-r2 "${S}"/${MY_PN_LITE4}/init.gentoo.sh || die "Copying shorewall-lite.initd-r2 failed"
+ cp "${FILESDIR}"/shorewall-lite.systemd "${S}"/${MY_PN_LITE4}/gentoo.service || die "Copying shorewall-lite.systemd failed"
+ eend 0
+ fi
+
+ # shorewall6-lite
+ if use lite6; then
+ mv "${S}"/${MY_P_LITE6} "${S}"/${MY_PN_LITE6} || die "Failed to move '${S}/${MY_P_LITE6}' to '${S}/${MY_PN_LITE6}'"
+ ebegin "Applying Gentoo-specific changes to ${MY_P_LITE6}"
+ ln -s ../shorewallrc.gentoo ${MY_PN_LITE6}/shorewallrc.gentoo || die "Failed to symlink shorewallrc.gentoo"
+ cp "${FILESDIR}"/shorewall-lite.confd-r1 "${S}"/${MY_PN_LITE6}/default.gentoo || die "Copying shorewall-lite.confd-r1 failed"
+ cp "${FILESDIR}"/shorewall-lite.initd-r2 "${S}"/${MY_PN_LITE6}/init.gentoo.sh || die "Copying shorewall-lite.initd-r2 failed"
+ cp "${FILESDIR}"/shorewall6-lite.systemd "${S}"/${MY_PN_LITE6}/gentoo.service || die "Copying shorewall6-lite.systemd failed"
+ eend 0
+ fi
+
+ # shorewall-init
+ if use init; then
+ mv "${S}"/${MY_P_INIT} "${S}"/${MY_PN_INIT} || die "Failed to move '${S}/${MY_P_INIT}' to '${S}/${MY_PN_INIT}'"
+ ebegin "Applying Gentoo-specific changes to ${MY_P_INIT}"
+ ln -s ../shorewallrc.gentoo ${MY_PN_INIT}/shorewallrc.gentoo || die "Failed to symlink shorewallrc.gentoo"
+ cp "${FILESDIR}"/shorewall-init.confd "${S}"/${MY_PN_INIT}/default.gentoo || die "Copying shorewall-init.confd failed"
+ cp "${FILESDIR}"/shorewall-init.initd "${S}"/${MY_PN_INIT}/init.gentoo.sh || die "Copying shorewall-init.initd failed"
+ cp "${FILESDIR}"/shorewall-init.systemd "${S}"/${MY_PN_INIT}/gentoo.service || die "Copying shorewall-init.systemd failed"
+ cp "${FILESDIR}"/shorewall-init.readme "${S}"/${MY_PN_INIT}/shorewall-init.README.Gentoo.txt || die "Copying shorewall-init.systemd failed"
+ eend 0
+
+ eprefixify "${S}"/${MY_PN_INIT}/init.gentoo.sh
+
+ cd "${S}"/${MY_PN_INIT} || die
+ eapply -p2 "${FILESDIR}"/shorewall-init-01_remove-ipset-functionality.patch
+ cd "${S}" || die
+ fi
+
+ # shorewall-docs-html
+ if use doc; then
+ mv "${S}"/${MY_P_DOCS} "${S}"/${MY_PN_DOCS} || die "Failed to move '${S}/${MY_P_DOCS}' to '${S}/${MY_PN_DOCS}'"
+ fi
+
+ eapply_user
+}
+
+src_configure() {
+ :;
+}
+
+src_compile() {
+ :;
+}
+
+src_install() {
+ # shorewall-core
+ einfo "Installing ${MY_P_CORE} ..."
+ DESTDIR="${D%/}" ${MY_PN_CORE}/install.sh shorewallrc.gentoo || die "${MY_PN_CORE}/install.sh failed"
+ dodoc "${S}"/${MY_PN_CORE}/changelog.txt "${S}"/${MY_PN_CORE}/releasenotes.txt
+
+ # shorewall
+ if use ipv4; then
+ einfo "Installing ${MY_P_IPV4} ..."
+ keepdir /var/lib/shorewall
+ DESTDIR="${D%/}" ${MY_PN_IPV4}/install.sh shorewallrc.gentoo || die "${MY_PN_IPV4}/install.sh failed"
+
+ if use doc; then
+ dodoc -r "${S}"/${MY_PN_IPV4}/Samples
+ fi
+ fi
+
+ # shorewall6
+ if use ipv6; then
+ einfo "Installing ${MY_P_IPV6} ..."
+ keepdir /var/lib/shorewall6
+ DESTDIR="${D%/}" ${MY_PN_IPV6}/install.sh shorewallrc.gentoo || die "${MY_PN_IPV6}/install.sh failed"
+
+ if use doc; then
+ dodoc -r "${S}"/${MY_PN_IPV6}/Samples6
+ fi
+ fi
+
+ # shorewall-lite
+ if use lite4; then
+ einfo "Installing ${MY_P_LITE4} ..."
+ keepdir /var/lib/shorewall-lite
+ DESTDIR="${D%/}" ${MY_PN_LITE4}/install.sh shorewallrc.gentoo || die "${MY_PN_LITE4}/install.sh failed"
+ fi
+
+ # shorewall6-lite
+ if use lite6; then
+ einfo "Installing ${MY_P_LITE6} ..."
+ keepdir /var/lib/shorewall6-lite
+ DESTDIR="${D%/}" ${MY_PN_LITE6}/install.sh shorewallrc.gentoo || die "${MY_PN_LITE6}/install.sh failed"
+ fi
+
+ # shorewall-init
+ if use init; then
+ einfo "Installing ${MY_P_INIT} ..."
+ DESTDIR="${D%/}" ${MY_PN_INIT}/install.sh shorewallrc.gentoo || die "${MY_PN_INIT}/install.sh failed"
+ dodoc "${S}"/${MY_PN_INIT}/shorewall-init.README.Gentoo.txt
+
+ if [[ -f "${D}etc/logrotate.d/shorewall-init" ]]; then
+ # On Gentoo, shorewall-init will not create shorewall-ifupdown.log,
+ # so we don't need a logrotate configuration file for shorewall-init
+ einfo "Removing unused \"${D}etc/logrotate.d/shorewall-init\" ..."
+ rm -rf "${D}"etc/logrotate.d/shorewall-init || die "Removing \"${D}etc/logrotate.d/shorewall-init\" failed"
+ fi
+
+ if [[ -d "${D}etc/NetworkManager" ]]; then
+ # On Gentoo, we don't support NetworkManager
+ # so we don't need this folder at all
+ einfo "Removing unused \"${D}etc/NetworkManager\" ..."
+ rm -rf "${D}"etc/NetworkManager || die "Removing \"${D}etc/NetworkManager\" failed"
+ fi
+
+ if [[ -f "${D}usr/share/shorewall-init/ifupdown" ]]; then
+ # This script isn't supported on Gentoo
+ rm -rf "${D}"usr/share/shorewall-init/ifupdown || die "Removing \"${D}usr/share/shorewall-init/ifupdown\" failed"
+ fi
+ fi
+
+ if use doc; then
+ einfo "Installing ${MY_P_DOCS} ..."
+ docinto html && dodoc -r "${S}"/${MY_PN_DOCS}/*
+ fi
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ # This is a new installation
+
+ # Show first steps for shorewall/shorewall6
+ local _PRODUCTS=""
+ if use ipv4; then
+ _PRODUCTS="shorewall"
+
+ if use ipv6; then
+ _PRODUCTS="${_PRODUCTS}/shorewall6"
+ fi
+ fi
+
+ if [[ -n "${_PRODUCTS}" ]]; then
+ elog "Before you can use ${_PRODUCTS}, you need to edit its configuration in:"
+ elog ""
+ elog " /etc/shorewall/shorewall.conf"
+
+ if use ipv6; then
+ elog " /etc/shorewall6/shorewall6.conf"
+ fi
+
+ elog ""
+ elog "To activate your shorewall-based firewall on system start, please add ${_PRODUCTS} to your default runlevel:"
+ elog ""
+ elog " # rc-update add shorewall default"
+
+ if use ipv6; then
+ elog " # rc-update add shorewall6 default"
+ fi
+ fi
+
+ # Show first steps for shorewall-lite/shorewall6-lite
+ _PRODUCTS=""
+ if use lite4; then
+ _PRODUCTS="shorewall-lite"
+ fi
+
+ if use lite6; then
+ if [[ -z "${_PRODUCTS}" ]]; then
+ _PRODUCTS="shorewall6-lite"
+ else
+ _PRODUCTS="${_PRODUCTS}/shorewall6-lite"
+ fi
+ fi
+
+ if [[ -n "${_PRODUCTS}" ]]; then
+ if use ipv4; then
+ elog ""
+ fi
+
+ elog "Before you can use ${_PRODUCTS}, you need to provide a configuration, which you can"
+ elog "create using ${CATEGORY}/shorewall (with \"ipv4\" and or \"ipv6\" USE flag)."
+ elog ""
+ elog "To read more about ${_PRODUCTS}, please visit"
+ elog " http://shorewall.net/CompiledPrograms.html"
+ elog ""
+ elog "To activate your shorewall-lite-based firewall on system start, please add ${PRODUCTS} to your default runlevel:"
+ elog ""
+
+ if use lite4; then
+ elog " # rc-update add shorewall-lite default"
+ fi
+
+ if use lite6; then
+ elog " # rc-update add shorewall6-lite default"
+ fi
+ fi
+
+ if use init; then
+ elog ""
+ elog "To secure your system on boot, please add shorewall-init to your boot runlevel:"
+ elog ""
+ elog " # rc-update add shorewall-init boot"
+ elog ""
+ elog "and review \$PRODUCTS in"
+ elog ""
+ elog " /etc/conf.d/shorewall-init"
+ fi
+
+ fi
+
+ local v
+ for v in ${REPLACING_VERSIONS}; do
+ if ! version_is_at_least ${MY_MAJOR_RELEASE_NUMBER} ${v}; then
+ # This is an upgrade
+
+ elog "You are upgrading from a previous major version. It is highly recommended that you read"
+ elog ""
+ elog " - /usr/share/doc/shorewall*/releasenotes.tx*"
+ elog " - http://shorewall.net/Shorewall-5.html#idp51151872"
+
+ if use ipv4; then
+ elog ""
+ elog "You can auto-migrate your configuration using"
+ elog ""
+ elog " # shorewall update -A"
+
+ if use ipv6; then
+ elog " # shorewall6 update -A"
+ fi
+
+ elog ""
+ elog "*after* you have merged the changed files using one of the configuration"
+ elog "files update tools of your choice (dispatch-conf, etc-update...)."
+
+ elog ""
+ elog "But if you are not familiar with the \"shorewall[6] update\" command,"
+ elog "please read the shorewall[6] man page first."
+ fi
+
+ # Show this elog only once
+ break
+ fi
+ done
+
+ if ! use init; then
+ elog ""
+ elog "Consider emerging ${CATEGORY}/${PN} with USE flag \"init\" to secure your system on boot"
+ elog "before your shorewall-based firewall is ready to start."
+ elog ""
+ elog "To read more about shorewall-init, please visit"
+ elog " http://www.shorewall.net/Shorewall-init.html"
+ fi
+
+ if ! has_version "net-firewall/conntrack-tools"; then
+ elog ""
+ elog "Your Shorewall firewall can utilize \"conntrack\" from the \"net-firewall/conntrack-tools\""
+ elog "package. if you want to use this feature, you need to install \"net-firewall/conntrack-tools\"!"
+ fi
+
+ if ! has_version "dev-perl/Devel-NYTProf"; then
+ elog ""
+ elog "If you want to profile your Shorewall firewall you need to install \"dev-perl/Devel-NYTProf\"!"
+ fi
+}