diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2017-06-26 03:16:47 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2017-06-26 03:16:47 +0200 |
commit | 64c9bd1b32d03a0f4f1751a066b807daee029e81 (patch) | |
tree | 368cfab8942509515bc966fb567f6cc27b328e23 /net-firewall | |
parent | net-dns/knot: Old. (diff) | |
download | gentoo-64c9bd1b32d03a0f4f1751a066b807daee029e81.tar.gz gentoo-64c9bd1b32d03a0f4f1751a066b807daee029e81.tar.bz2 gentoo-64c9bd1b32d03a0f4f1751a066b807daee029e81.zip |
net-firewall/shorewall: Bump to v5.1.4.4
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'net-firewall')
-rw-r--r-- | net-firewall/shorewall/Manifest | 7 | ||||
-rw-r--r-- | net-firewall/shorewall/shorewall-5.1.4.4.ebuild | 456 |
2 files changed, 463 insertions, 0 deletions
diff --git a/net-firewall/shorewall/Manifest b/net-firewall/shorewall/Manifest index 16b1d11f2860..2f681aed2877 100644 --- a/net-firewall/shorewall/Manifest +++ b/net-firewall/shorewall/Manifest @@ -2,27 +2,34 @@ DIST shorewall-5.0.15.6.tar.bz2 525827 SHA256 17ae4613eac68a62d4cd520af8c63b54b3 DIST shorewall-5.1.4.1.tar.bz2 510816 SHA256 c561dd91c4b88ef087a6d172bafb4ac5d01c0055c47b855568536a0c422ff232 SHA512 4650e2ec73dcf6c38cf2992fefdbd2e302a34a9687a933d8a375d227df2621db96c9a2e54ebbfac50014152caffc0736a7bc1192f479c69c56f78f7874bc09b3 WHIRLPOOL 065cbd0f4e07a09e5326968680919de7fb988db092a406b0e809335374e8c5e68c0c8e4abeb4b8bd7dbb727869bcb7e0dc65bc38c33d783ff355943966183287 DIST shorewall-5.1.4.2.tar.bz2 511131 SHA256 df3ff7199c2fdf031030221b9aa23d2b80e4cafa1fe663ddedeaf901b6d013b1 SHA512 ccbc000341e21a82e22157717f8356b785f166928f26c63b5b35deadfd7e8c9674b2c4d47b2a1e67cad37b1bdb3080f2a27add05135fa4f1cdbc860b988bc90b WHIRLPOOL e12d3968f7d34cd41ead3a15f13092668743a4a488f242368feb843b8751bb13a3bb90a2094c76f3137de649fd5329dc6f9f1a34398d0301b6885380217255c4 DIST shorewall-5.1.4.3.tar.bz2 511450 SHA256 29238dfc996353acbfdb039f485e2acf22c7c039f8b9ab28a2d7ce827c935d3e SHA512 623b4e266b4ea5aaedb6fa05fb190e64ea8c94a32382b1548dc6c80dd251e5a9695c39fb14316b24dd07eda728b864bbff575e759ba4fcd70e82cabd9f046f77 WHIRLPOOL 66c07064ef491a2a336bd0832498fc1b18b17f3660f5f2b0efd6361c1405d93e816c809f3572f92b1ab678305f459a5f6065b380bdca6f5233113037bfc98f89 +DIST shorewall-5.1.4.4.tar.bz2 511611 SHA256 fe71c2a2efdc45b594ecc097115322c2203fe31b3098efa4023eff429ff2c55f SHA512 14c7a8cb750b37b72adba28ae00619d4e27fdc73801f1462705754ddbb47727d60425021018bdefdef6c373f2310a774569a88728125e52fd59cf10d94ee4aea WHIRLPOOL 0ef8b315f577c4c8612ad5f842dc8b5e3f4248445cda56136f733fc78d8217d6b5607ff9ed17d43cdd81109b3e493b640ce7bf7e9d33750eaff1cd0effac5c37 DIST shorewall-core-5.0.15.6.tar.bz2 65272 SHA256 6b1c461494922f207397ce2d9ed12b0a105d82ee3528a02a4448bc6c028623b8 SHA512 5e33ef55c4ca43a5c49747d5b3f40c9f43b0696e7084a6db56df73810551d216bd313860eb5354f50b1f9849c4d332f665e3f4832ff1cf3a9542bb6a43a73119 WHIRLPOOL 1b66e763e0d37b78b0343c8ad4964d46459347114bbebfeb965af075d73bbf71a8c695310f051f4160e5dd1cc7033e32545a5404538acce7d0452aa1618af4cd DIST shorewall-core-5.1.4.1.tar.bz2 75813 SHA256 3d1446f7e437104c8f8c7257ccdbddfc0dc7df3ea68b80274c11dd94cc1c8629 SHA512 118378698e0fa1216b52ace92fe9eae0f7d32c39becbc50837a895d7367674b2c973b1633c8919045d9d16dd2a5fdbedb9d62ff1513547ee4770a2e9116d8b1e WHIRLPOOL 02ef5428faeb68f2ca3cf6c1e00ab15d0146d5ad931942528ba1832ce96e490df67976a40ed576014f30f06e2e4869ba691c1606d57b22364ab2e6b7ed32a019 DIST shorewall-core-5.1.4.2.tar.bz2 75953 SHA256 19a8790fcd60a5ea77e306f219d68920bb3f9287610cd53825776153df13bba0 SHA512 049463e094d8d8229f4ce13c75de5c8be46947ffea3a0bfbb12888a8dea606dfe8191fc32f1d2f7cdae40569a9d9967d790c0699d038353d3065cbc118a1aad1 WHIRLPOOL 5b665b2dae433961421594f95456583f44253f7e24379c1cbc81ad0871f2e1f432dd54d759f4f4a16f9317e6ca4a73c5c5d5d9b51a897bb053309bfee91fa8e1 DIST shorewall-core-5.1.4.3.tar.bz2 76112 SHA256 6d283b8b380db5d94c39325cf44fe9b71cb2f5bb0e4ea8941aef33e802b1e5d6 SHA512 d6969fbe579c20918ca132111cf2ba8f2db4b397afe5d47b1fab796571203ea96b423379ab5403354aac5a7b6d83aeb1f5160124c2cdb33993fa3160fe156097 WHIRLPOOL 76b650a42c40a35fa3c30b02ae02bc0ca8f607be093e43357f491686aca75941266cb195650c8711232d13b6e5dd9c86c555d38c59a094ef3578ce86d0139086 +DIST shorewall-core-5.1.4.4.tar.bz2 76206 SHA256 e5fddd7f25b717bce6cc3a9e50d72cb172335d113c58aaef4496004297db6a13 SHA512 24a9a0176d3b1c3dede7428393b9e04a37329053fff95f15102a04d97fb95b30a11c7e0d550a457a29b07291c9347c9b96969ea1b03b68858b3e022f29fd908a WHIRLPOOL 1ff57177c352bd828a0f113267ea154ff5288eb83caa556b07fe85784de896e227f89bae47e7eaaecb76f1a2dbd0fdc87c95f20f8706ef480504a2c5cba0ad2b DIST shorewall-docs-html-5.0.15.6.tar.bz2 4290931 SHA256 e6b253591fd9df7d00bf0bbcfd9c563f4248013119e13b22b34d947b244ce4e4 SHA512 e1304ea2b0e05645654b04ea825d255de70e02edc5f183dcf9eba88641aaeda8cd9781bf46a84b98628a7ed148bf1450e37e7871ef2a577e54ffd3707d7d85c3 WHIRLPOOL f1c038886f1428480c1f6b6be688717cee11717a8ae2b31ea35aef915245d2e46f7934e5bc0e54aaca7a9c83b0328cb3e96c949ed96730bada25896d85fbbf4a DIST shorewall-docs-html-5.1.4.1.tar.bz2 4284060 SHA256 0d077e38503832e75f5432d4a1b1c478f0ef02576c8aeb00480a3a101ec9a105 SHA512 ccc36bae8daacf3dca75002bee207abba667bd9a467afbde7f6cb1c18fa5d33fa53a4f93dfabfe0e85fd479449ebff2d12851cba5b494b7f3ce256cd79328687 WHIRLPOOL fa3c5a2abd61d005003f090492801a7a2c88512d28ed3ba174d4ecc998236132e7d923f780de30edcad44fe5fcc684bba13441f5fb9a1974d915607b4fd62eda DIST shorewall-docs-html-5.1.4.2.tar.bz2 4284341 SHA256 547f9e4e9c181d592c251acaf8a7fa41b4b9f1bf1ef975cdc75eb3cba1921d87 SHA512 f6697a22fe3f8288334ddf8b94b7ca3baef50126ba349cde80d124f43a28bd9db65d75dbb6dbeaf8fb05de262c33c6fc99588de923e0de6ae9a18b429fa7de5c WHIRLPOOL 1b6084a577da4613db5e1a357b1126eccc7a6fb5a32475e3ecea3b765d7182e1e9b5f4310fdcd9a43e1cde92c4c1abbfa71ada31515e92f37804f7db6eb9f2b8 DIST shorewall-docs-html-5.1.4.3.tar.bz2 4284526 SHA256 3af6ad0464db41388080c9277fca6bbed3a935f000ab29987c5e948015efab1b SHA512 2b8523babe1cb28d07c033c53328785254100a5712f316fc279f06128dafb46924e72e4c9c648b20cedd2c4837c8396613a5a7628787a312b227f3d7427d2e72 WHIRLPOOL 1e394cb221f6bdb87666b468fefe117538a0adb0d1375cdb46563a976628922b7cf4a2a4cdf19d0cfb36d9aa890d605a5cf8c3a4981de3c3d10b314bb42132ce +DIST shorewall-docs-html-5.1.4.4.tar.bz2 4280886 SHA256 892d704fe4b15b4f8fe5cd7bee8d456122bfc25f8d514d6efdb767b071e9991a SHA512 15c66e82c40de0a0edad798dc0acda45323160720d806a2759dd82816270e175a5891270b0198f1533f4092b8744629b3c8389f0093869a63d66af2a1d7ff9f1 WHIRLPOOL 20cf5de986eb07e0693671454904f87d2cbf4a66895029d94e96f3ed4d3ef312e69ce4ecbdd8fb876ef02b982803f6042848ed807ad4ee240eac67d4b6c64782 DIST shorewall-init-5.0.15.6.tar.bz2 42934 SHA256 c7afa1aff586186c4ce0cbe0f4e0fc06a84e936349f3dc69c84ef97c815fc6c1 SHA512 11c639b20992005e74ccd4aaa855a519fe6f96b030f171e91d68ec4ba1ca5ff5f73c6a1c823c5ffc88e3ad8e3cc2809dd24a91e0c892ab1f71d6c957113367e9 WHIRLPOOL c1190c31f5c2556fa7e73385856c8bbeb3b0cadb5ebed834e9b2138eee90059a864d85301095d3accdf537b6b4347cffe213d26c6a2201e040887647c65f4291 DIST shorewall-init-5.1.4.1.tar.bz2 30878 SHA256 c61b83601d3a4bb10e2bd8705682ddbed5ab3adcdc6074bc1ca4cb8d030e84e9 SHA512 4b9fa872a1ce0535d9c9054ad8e9750f7f797c4fd14777c77554c5218162882973fe1caf22c7242b6b38b4a5c2a122e901851757e86a560ea5f8030be063b70a WHIRLPOOL 76a360c00dc9c28576cb121360372b1218c7a9c399e89ae3366458e5aa2f5f20c7845fc4a49de5a55619e7589372c5b07eeea195604e4a4eac380739659611f1 DIST shorewall-init-5.1.4.2.tar.bz2 31032 SHA256 cfd0c94be02238463e6f511de0f86bfddbd127922cd62ee61d42a7f7d85658b3 SHA512 d68ab7ab9d1c92c8169dd11537f9cefe1693c9ca22ac4e95f16f71037885a296b49e3cc91291be868671f2416418a6a661524cf073f915a67f6e3e3e86e659aa WHIRLPOOL 6f6fd1c3f8a6523801e2984fe8545f20066730b0319fd68afdfb82a8a5d9cb1f46e1984c26c7887706c83d75b355173c6521f2cb1e69fb6db4b3f1493b4e1294 DIST shorewall-init-5.1.4.3.tar.bz2 31194 SHA256 0ceeabf339f3d49eeb88fc40ba382e5c57ef3491af0dc4476ea7e8a255194e56 SHA512 c8197525cce8b9bd9efd81b65d512bfa292060d2696c8c24648f81a3703885c84dfbc0c1ebd4bcd8da7e981dd6a891f64123409457a6623e5f2b81dca453ddd1 WHIRLPOOL 05914583e9244ef677f5530aec82e77e31c2d284d6f5324aed59c583b02d3488c7e8b3e24518bd0574bad6d5ee5366037e29d4767e29f54b6d88f6f38be56a30 +DIST shorewall-init-5.1.4.4.tar.bz2 31258 SHA256 7ba1d2910fdb5dea4078aae96b469e228e20934e3637d6d3d7f6a5f89f535eb2 SHA512 b49bb7787a3c0a748af15d5d98b63beaaea4f4b8448e48b2064a10197a74d087107d6bdd70dcfd9211ddb2e58d6e97991591c2f617648b87401bc53f76e3a5ea WHIRLPOOL f0121eff5ff1fe6ad1a191a1a764925d8bc2ca6b847e3442f334190d048e6b8c38e42283b33d8e542321d3d606f0ba28b204ff31e49dce9fd4067abefd498a29 DIST shorewall-lite-5.0.15.6.tar.bz2 59347 SHA256 393a2aea8fe8c9d43babaad969e00c80508900123d78a0433d3a3ac6470fd6a8 SHA512 e49f74bfa39d65fffca00657487bc4d8600d6330af0413d3b146ff9192769def1e3f66e181c02bf541d50b73e327ff4035f86fd4ded5a133fc02b84c958a4bbc WHIRLPOOL 85e25de97e5594ae41e2277f6a48500d14add389710c0727483a270b8d071dec2ef66c8d2633b96a34109b432c4025832cdb7c05c9eb4de4d8ac9aba755651e8 DIST shorewall-lite-5.1.4.1.tar.bz2 36647 SHA256 e90d419ed8a6da615c3a0d6fdcb9481f8e71f89c2bdcff09ab027198ca2ce293 SHA512 c06e365d06c484e7ef673e5a8597d70996f1008a00163aae2d7a53d0d720739a8b0317a093b3e75487ef1c8a02ac4c4c542480757226a974671f82ab08353896 WHIRLPOOL 0077886083aadcc5973c6f515da8e99fdbbcc4e64e0e4cc4893a47cda7afc17331d2ff175da314aa38dc0186ea074bee65facacc5dc7212c0c8836cbfc0c9a02 DIST shorewall-lite-5.1.4.2.tar.bz2 36855 SHA256 6e79e312262592aef05011359e75f5021811ee46017b600cb17d2e144c2d0279 SHA512 5f5a1596c74d2f3136d67ffc730deabb04ff269b2d01fe02d20118bb93ea13b244b6aab2040dbb5ccd7536ea99b5aabfb3aa66ad6b58ec732cd374de01c1aee4 WHIRLPOOL 54166cfde56a233ad93d736d9376507ded9fa1ee6ff9f20ff7df267d107de6700a9b8ef1a639fa4572e361c21e1aa5d732a826f9b0cea870c7fcc0402f7ef849 DIST shorewall-lite-5.1.4.3.tar.bz2 37027 SHA256 7dc4bf0eeb3914feebfb83347bb947f666522dc597e31bddcca3c7552894255c SHA512 00ec62b2645847237293d150b3f74d728f9f718c390fa9b74483a3ded2e082c7d0aa5e154d93330dc1d9133df456aff2a91196a57a90b3079c4f43d30e1ff8cc WHIRLPOOL 5d47c7175878cff55d50abe19daadcd550bb96616654a63b3c708ab6c723745a5c845000578a1eb17c0767ae1402390a582b1a487a50dcd5b5898715631d692e +DIST shorewall-lite-5.1.4.4.tar.bz2 37096 SHA256 38c956fa2ecbda9c625f8d511673158f70e126e11017b1945006ac2c6d66a3ba SHA512 d29a8676e1e117fca5fc1068bb180c88b5560535c46e6ae089a0f0646939cfe6c9c990ec02a35fd21ac62f8435a1e34f6bcbca8b09f7ef09c65a901d59bfe107 WHIRLPOOL 0d380427ce07f26f0882f8011391ca94f8db17137961595a920b241a7ba0529268cd1d96ec50be3204f4e2a6b46e1b29d21cb845551a61a66313d16f84ac8123 DIST shorewall6-5.0.15.6.tar.bz2 240682 SHA256 1434b973e76ed75080aa1853986406a2346e57f0f21b094a2e1793a8b6bd7ee4 SHA512 26ea371bf40548ceda7bff786b790dd74e9a1a74a3745dcc683e7101ea5303eef87006116704d15aa688b0c40c0777c7732a7727fe714c71c8566b85ae4c560a WHIRLPOOL 92097d48bcd77ff814ab2ce9a0edb9514f2ec2e27725fd01492982ae9e4731e4366b6a5a10d903122ec7e0c43a4107d370b8f2ee11dc213a9ae78a19df6dd172 DIST shorewall6-5.1.4.1.tar.bz2 224863 SHA256 e3da805b4aa1e8c483f1bb451cb47a869e1977b213a86145a82d42e9bc12ea36 SHA512 3b5c228693936103eb1479e5b0968c5a7d24d94beea410b3ad79f9e7e3b32cca286384b91ee3b09ce006758d27f9b2efe22c589d07d05eeef9ef981818da0b80 WHIRLPOOL 810739511bfb730c6040c8cd9a8a06c836e085a70ea5b4e148d3d364d92648e194ce2b4f1e4a0535a0860a138d87744ddacb229312100242e36828f7e348514f DIST shorewall6-5.1.4.2.tar.bz2 224891 SHA256 0934ed42b5dafeab294dc004e72c7361820a4485bdc5005cfdaf3fd628adaea0 SHA512 6ba1dc59797ce9be447536dd0fab5963d5baafaae69bc207c7b93035da89ec88528e5d679ce39925acafa6da559e0273f16f268be4218d01ad4c4a3d894917c1 WHIRLPOOL 581839a3d08377fcdca7881a039d492e799cbc26d917bf53a3047774373205eda29a22aaf15c8b7613253df45f9c134cf46333e79c2057e5b5248241c6fcecbb DIST shorewall6-5.1.4.3.tar.bz2 225040 SHA256 c2ab0aaa42015883291c568067927f7bf00d273f56cb9d2d979bc995b6ca8b59 SHA512 867ab06dc800109a10ec7ac9897369d43fd0f74024cc4cd7e697c15a36294ef5bc0269a5fe406e848a8a614f75c6c33a1fa7078c1af97401e646981788a96bf8 WHIRLPOOL bc2e7fb00e566fd818a881791c157e6f14474964598458740f43d1a823919d3a105b3026a912d8cb2ae70cc5b267072f6574486ee08f91a5903fe92eb565f5f7 +DIST shorewall6-5.1.4.4.tar.bz2 224995 SHA256 17ffd91eab228766c8fae80d7087a7a229de62f2a7e93e71e22807b647e9165d SHA512 dbc73ca2805f022a06594192ecef35a33874e0099e306d7e1b052765a5bb2e1a51008f2e08f66d505b2b6e36d8f0da730ec77f1b625abae0403af88030d878ac WHIRLPOOL f91d1db40956ad289014ff7156b74246cf12504ff0b84f46ea641e06fc2d55c417357f2c812e78c48f3ea29a4635e408b20946ebcf6ce35a2bcd0de20128e212 DIST shorewall6-lite-5.0.15.6.tar.bz2 58776 SHA256 1d693d3815bd0c2e4a9e7acad7be38ff2b354681da847a5ec4b8d87ca860378f SHA512 83cab85eda851e071eb004688b10a70811bd6f896c831e97713c48b322ee419ed9fc8ac7570b4faf567be317ca1d6f5c89c1e0da0e025a94abe39aa0f000e9ad WHIRLPOOL 842e02fe907854682b54343750df60b0e4c60613eca675d69c071c4d726a05d5d940c8283e9b718413520b3ccc11a01913dabba49189c41a61aa756645a401ae DIST shorewall6-lite-5.1.4.1.tar.bz2 36362 SHA256 29a2f2be295b4f995b38e663b771660ccdc6321134bcfbd0f9378f9bb1237e3c SHA512 b616c5886b5bc274e88052359ca4c8aa6df60a9706958698eac7fc362f1c893de00ed2272535d61a88cb6a786bae9b7cba64a835833a9f81c991fb2ffed8244b WHIRLPOOL 519aee8ad997c14f4337824d40c38cbf7ba2d2ac7db0964c2557816e0d4c4dca24ed2ac69341473e899d0e9e84d367a9e6f42b2484221257bdd55b40c73ee201 DIST shorewall6-lite-5.1.4.2.tar.bz2 36561 SHA256 121f360799b68c283d4e1e9be3f2eb1fa75d735b5f0a4daf78e58c020cf99e59 SHA512 e3b05e82eeeaaf68d39e951b91c803bd13e8a5cae15634fc62b65bd537b8b9585fb4dcb3aac9b04df696c98bba94cfd39c8ded149da40db51073cfa0338608f1 WHIRLPOOL bd3242aedf0fafbbf5b2e2020b0d41d813515efe872607d85385478d16c3805bb19d87c548fef579412d312cdc3cd4dfe67f1967d14d8ae39fda3eee4783a8fd DIST shorewall6-lite-5.1.4.3.tar.bz2 36731 SHA256 b3cb5efe633859f073071552907b503f0ce097e98202e930434540158d5acf92 SHA512 e861bcb17fe528311c1576a37b014aa01c29fcbe9e19bd19bf021420d75b7a6b505bfb159cc065174a82c4ba18fccc9db5d15a34cfbd2371da02466355ce19ff WHIRLPOOL d84a2edd711c029c3b0cd4d4188069dcb71c450d1e5627be147d0ffc7f309f922e76631b4000911a9c40cb418fb90a60289e09d7f3fdf01227ab6a2df993f5e7 +DIST shorewall6-lite-5.1.4.4.tar.bz2 36797 SHA256 2372bc0e9c6e253c1e4db82353d6e4eb4b2a4353a57834e00b775fad99c22af0 SHA512 a1b2ff1f509e6560a94cd5d4f7f3ae3aff456bf19720a5e967b5a609bab3aa2c15a0d5e5b9b9fd54e9e3a551eb6d2da57f993f87354909d045e8f8b31bc073c4 WHIRLPOOL db463165743c799776221d25148311404a687a79377ae5672c7e80d01e1854a3be6b20ebbc17b5d0abd2cd931116ca9a19dbd02249a33f36ef13b32d0a50c556 diff --git a/net-firewall/shorewall/shorewall-5.1.4.4.ebuild b/net-firewall/shorewall/shorewall-5.1.4.4.ebuild new file mode 100644 index 000000000000..ea2ef11ce095 --- /dev/null +++ b/net-firewall/shorewall/shorewall-5.1.4.4.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 +} |