diff options
author | Constanze Hausner <constanze@gentoo.org> | 2013-11-10 17:37:56 +0000 |
---|---|---|
committer | Constanze Hausner <constanze@gentoo.org> | 2013-11-10 17:37:56 +0000 |
commit | 823dae911669cd8609f3e1dbcf77c12a041d3b89 (patch) | |
tree | 059933cef9335c165eabda0c391c8cce40b24859 /net-firewall | |
parent | Version bump. (diff) | |
download | historical-823dae911669cd8609f3e1dbcf77c12a041d3b89.tar.gz historical-823dae911669cd8609f3e1dbcf77c12a041d3b89.tar.bz2 historical-823dae911669cd8609f3e1dbcf77c12a041d3b89.zip |
Version bump; Thanks to Thomas D.
Package-Manager: portage-2.2.7/cvs/Linux x86_64
Manifest-Sign-Key: 0xBB80F419010E3EC3
Diffstat (limited to 'net-firewall')
14 files changed, 531 insertions, 18 deletions
diff --git a/net-firewall/shorewall-lite/ChangeLog b/net-firewall/shorewall-lite/ChangeLog index 2a689f08c03a..c25eeeb380fd 100644 --- a/net-firewall/shorewall-lite/ChangeLog +++ b/net-firewall/shorewall-lite/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-firewall/shorewall-lite # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/ChangeLog,v 1.140 2013/10/21 12:58:50 nimiux Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/ChangeLog,v 1.141 2013/11/10 17:36:56 constanze Exp $ + +*shorewall-lite-4.5.21.2 (10 Nov 2013) + + 10 Nov 2013; Constanze Hausner <constanze@gentoo.org> + +files/4.5.21.2/shorewall-lite.confd, +files/4.5.21.2/shorewall-lite.initd, + +files/4.5.21.2/shorewallrc, +shorewall-lite-4.5.21.2.ebuild, + +files/4.5.21.2/shorewall-lite.systemd: + Version bump; Thanks to Thomas D. 21 Oct 2013; Chema Alonso <nimiux@gentoo.org> shorewall-lite-4.5.18-r1.ebuild: diff --git a/net-firewall/shorewall-lite/Manifest b/net-firewall/shorewall-lite/Manifest index 3966bef54ae6..8df33d62e349 100644 --- a/net-firewall/shorewall-lite/Manifest +++ b/net-firewall/shorewall-lite/Manifest @@ -8,26 +8,31 @@ AUX 4.5.19/shorewall-lite.confd 160 SHA256 99aa9a4d3ae9f3bb590f5426c1266b6f7ee50 AUX 4.5.19/shorewall-lite.initd 2267 SHA256 6f4a60e75ed61290918e776e8556b1009b687aca9d86542d8e780b5b33472b5f SHA512 c1424571594e585e48652ce9ac1b602f4763f7494e58d6d981fbd8a14f0193c6f52510e38225a70d0e8f74b6171f1a319ad89ae6682674384d74509fbc22fb62 WHIRLPOOL 8be4243da4f6f81f1f50807593861c3fc34e4857df50cb1ebb12deed74262050d0bb63a47b7b9c83597063a881eaf9b01b923478ca3b50fe3aa69ca9e28022fb AUX 4.5.19/shorewall-lite.systemd 481 SHA256 6f627628ed86e5a70f80454117bca3b197af105c1186e2a183157a995e6ecf16 SHA512 2c3efb6be4bc6d2f09a0eedab7a121987c84e9fdc19f001d8dde2fe37a6e603304c4adfe755d2911aa31b4fd3d2a5a60c6097c042abf17e66e589368ccd71cac WHIRLPOOL f367a6769094df0b69ccdc2cae414527b777a75c238d6f3ef84e383cf235682b823e8922a68a82a8f9f06456affb07863016a1424760d734966bb2f7ff3183cf AUX 4.5.19/shorewallrc 1893 SHA256 13e755e42553215dc2f6a5f9abc4cca92e8f0f48d70f94072e780c5a8a432e1a SHA512 3c1f347095bd0c38d5d51bdd96e9cc7d73b3648ee669cdfb2195bed2badc2f7336e84ef9ead3c783d60a062e6ee39bf904a7749f7c43b798a8be70558eb611a0 WHIRLPOOL 48423249fc93de10ccd32d88f13595f54deeff38dbcaaf04ea87c42ae97f6324338c7c30f1fc68530e02714fb761d82093c40015e8577d11153ba63e2cf0583b +AUX 4.5.21.2/shorewall-lite.confd 160 SHA256 99aa9a4d3ae9f3bb590f5426c1266b6f7ee50a9e52f5a65b4cc56744a953982b SHA512 00e58351aade2ea9ade38373f3cacca3f10dcf4230b29e4a4e2b5d5d449ea9b78f40e2da7d94ed7c23980de2428198e3472399c6268662598b0fdbe008aff4b8 WHIRLPOOL 18532d1659a794d531548a91b0f096942fe5e82637ed05a9c5d49ed580d99a3e0c2807fd5ca5ea5c38139dc4c6f798b952433e59ee893f80240e5f4254435eda +AUX 4.5.21.2/shorewall-lite.initd 2269 SHA256 bcd67280a02e58be7160907bda593db61d945bc107d1f8da75d6b1500ba3c9f9 SHA512 d2921f1d0db697679419219e6323702847573345c3d6235403c42b55cf45d432fc893f508f31c8d574e6885d9b7eb12d885fef87a07069b96677a78a9c114dd3 WHIRLPOOL 686ac034258128a4c1eaaa51c44ab8a8e7c79a2c4b0169fa3be53cf6ac3f256bc2e2f927d6b9271dd86857d505c9bcaebf04ed54e4ed785819d8f254da28c14b +AUX 4.5.21.2/shorewall-lite.systemd 481 SHA256 6f627628ed86e5a70f80454117bca3b197af105c1186e2a183157a995e6ecf16 SHA512 2c3efb6be4bc6d2f09a0eedab7a121987c84e9fdc19f001d8dde2fe37a6e603304c4adfe755d2911aa31b4fd3d2a5a60c6097c042abf17e66e589368ccd71cac WHIRLPOOL f367a6769094df0b69ccdc2cae414527b777a75c238d6f3ef84e383cf235682b823e8922a68a82a8f9f06456affb07863016a1424760d734966bb2f7ff3183cf +AUX 4.5.21.2/shorewallrc 2006 SHA256 1f5a784ccb33ffe50cbacc066f783e1446996a60d99deb473ffbd5a69e9150a6 SHA512 c397c556f56444b08b091f405f2b82d16cf4b4e42d98176bede01ff32f270841fbaa6e0e5f5e7e1e4871ed5a0be22b654ae5c07f728e747449ab5f43025cde9f WHIRLPOOL 1d94b8bc7a9a4ac73480a610be58d4842bf0243f004fd7d5f668eab9be0e02ed3ce58bef9281bb638e5e5d346f47e8a15cc33d9a1e0bba1d642e125923d953e3 AUX shorewall-lite 1788 SHA256 98d1fe31a2a190ed671e9b1aa21b17d659bd66f7befccaf06c6e7e1e24f9a67a SHA512 e7ba286ea90b5d2f9f7fb3d95536ddf411aaa111138c009c813d4b8837f5cb8bea2b8c7da8433f047f699dbedb264eefb6fda8a56e6a078344f354256e5495ed WHIRLPOOL 2e78e1bc70ba400cd34ed884da31d42ce1c1b15da31e4f6614563f17847d90e7e536ae348a1a9b92a817d9add01a47c4866aeaaf4ac39e15d93eb378127204c0 AUX shorewall-lite.systemd 472 SHA256 9958fae5cb6b172f764e7cbb91991cb37e608453e161ce9f10ee3e5013932e2f SHA512 219a60a720224ef305eec288032983f68c43aa98528b6d84684fc1907bc97f0b0ded9b3edc16cbab48338b640206fabdac5fa1520d3a0f588d717559dfe6c11f WHIRLPOOL b6a91090d44d05e2b999b0c82b624253a4a67321e96800201733b8aa7a731d5de2a7e63fc378100687560f0ff5526ef91bc5f485049ad006491b074855638f1a AUX shorewallrc_new 1773 SHA256 24a169e763eea3926b8d1c44d62c52d3e2cad94eccea303376ba3e873e0a8224 SHA512 e080f4bce47fa5482dee46486e358ed17f35edeaf9050126b8c6f009cb29d1ca2ead2821153233e15fc18757f6cb72ff60f72b3f2d65aca32f9a63bc33a31f0e WHIRLPOOL 54311d12f85c1b9791a0e8db32878e7031c846471594400011236c58ef0183d75be960f65ce207d909758107a9bd13aee6fff2fc001b42651397ae877162e654 DIST shorewall-docs-html-4.5.18.tar.bz2 4022828 SHA256 a98263059952ed50b826eb1787e18eccff09f41fa8f5d70f705ce39660b0c835 SHA512 790b89c3ee885a70daf62d145fcc3e1fb15871abcc9e8a868154c982e264a46acd8dfba81986604de60eb1c375b080d52992b6435b15b3cca91ab3afb895708f WHIRLPOOL 72c73ed925f3289978bfdfd8490bd617c0d39190ce874583773f04ec16d5710d007fd2edaef80b20e7b504e58df0d7bcf09595ee228a0948500295b848c333b3 DIST shorewall-docs-html-4.5.19.tar.bz2 4033970 SHA256 7be6ebfa73a52151137201e098588ff6e67aa6fc21cf530a0fba564eeb8e77d1 SHA512 8ce06db614a6114cfe2c5c78acfaf111cba0ae5aa488df3879af6b5ecb20205ee453e308a7299e5df243a71067f93dcd8f4cf5faefbd8729ba11acee35cf34e0 WHIRLPOOL b55f90c6f9ca28cccddfb7bd899ce5815573db3ff4b4deabe454c6f30a9b01196ec4609d5251413d9761a28944a6acb19b6748c4dd41ea58fe2fa8da9845ed49 +DIST shorewall-docs-html-4.5.21.2.tar.bz2 4144789 SHA256 b4cfdcb84525a3df1430c71eba4c1f86378d96283c250d8c2a9d81ac921bef88 SHA512 57a5dce628301a043110a28874dc73244ac8aedb756c62bdbc9ebc66ba324c989debc6dfdc6e9f19538356b60230d88b708fb9562cb9016783d41d9efbdb495a WHIRLPOOL fce6eca901c7444fe05cbd72b59aa836967de19bccbba3335b74b05e220ad297da15451d853188d5dc65276b13af70c7134eb17a0119dd695e571fe23ee71b07 DIST shorewall-lite-4.5.18.tar.bz2 73702 SHA256 b66680361c527ac710d33d643f4c233ab8e754e7916de0891a863ca7a973d03c SHA512 de181f2878402bb86b550bcfd4aaa86d874ef8be2674d145052322c80499bcc4691086a2b09612a0228de7d1c9e75c335ac99dbc63dcc0d5c8c2fc305f377be6 WHIRLPOOL cd29da8106f7fb2faa84e07fe2a2fa7e080a36db15c04b09926855a7735310c20e4c29f26695bc3c1dbc91b2c262223b8f83341018da2fa91fad1f8edc99a026 DIST shorewall-lite-4.5.19.tar.bz2 74489 SHA256 f5d1e8f2ae4b42461e5b414b52b4ac6614a144e4f6ad211b025f94716f898aec SHA512 c7d1edf2bad8c5ef4cb51fd5ef1d2dddd6bfc4d5d984b85b6fe8b6686a762bdd888c3a7dc2f7ce21cc6e7e217f51e7f5c00d534d7ee2b7bddcdfd534f936768e WHIRLPOOL 0d61e9648e4b34ad58d942cbb4e7e38d2551f877cc82cba7ea64f72362010067b2d663b984c052acdb9c1c544f184abf42e51b9e6797adcacaa8fa9064e5aaed +DIST shorewall-lite-4.5.21.2.tar.bz2 77966 SHA256 d1cdf423e60eeaa6bd7a40563b6e4b27610278bc1307d9b82e5fd43ef6c4ad44 SHA512 107ecfb404ec0a98097ebae503a48d5acd8dec62788d32158cf2433c2cf4471a1a00b5b39d4f23bbde60e692fa7caf701354373fbe76c5c2cc0278493386d83b WHIRLPOOL 11f91fed283673fe000710811727930c7df2cfd9660fb54db46a3d13c25ffacca86a899bc771d41a490b7a281db7a8909fb58f427e5d6fb8caf119b792b798a7 EBUILD shorewall-lite-4.5.18-r1.ebuild 1738 SHA256 f5a2067ffa883c2548dde58a0d44dd0b6d846d7b42c90e45400b96f8472f3c3b SHA512 fa5c850eb1c31b27f19297005f94f5f0a4fd0a78e370f16f2e58b7949c5f788d0fa9b734d8b10f7a03716973a5ef23fb9c16b38f5c5a552f92cc9f6c3773f4c2 WHIRLPOOL d0b28d7eca7747904718bef8195c5dd57f62fb22d4a444e4029761909c07b73f6be495a4f6a10253c6ee07059c49da6cb814fb234d4d3af07c92bed5b3d17bb8 EBUILD shorewall-lite-4.5.18.ebuild 1499 SHA256 132580bd50bb8c41b4cf78a7918a4fe2efe4c9d51560c00de4806aedb828af75 SHA512 9e5b470129fdce4a6b060456b711e8d60f54a2cf2531deb7b0df9c566194075db6e4a4254c6484cb799a2dc4115d6f3d5374e6f01763bb3bc8936e2ddcfe608d WHIRLPOOL 3be3ab13d1d30c414559a9e83ed99efcce89f9d839eb6a95e66266186a270b1adf0e4ee7c7571c1da8719d0b442ab7947890be69f982e9f908d96d11bf45f1e3 EBUILD shorewall-lite-4.5.19.ebuild 2693 SHA256 dd25aa829df0951166104c7215f453054d249b8f3b2fdc9505783ab76039ce1a SHA512 a79983efdaca8e1285e03541fb63e1bf375494340d38132a5106a89e65e15d7cc34526a7d0ee6805a78d5d08b3b0a7989a49177b5a32f75b4015a495ce372bac WHIRLPOOL cde182feea22895f512ade2fa0deda207e7156dadfc5adf3343e1036fba70143852a13dfb2faa666df69e2c2d66e99b353d8ec5aab12601de35f858729ba7bbb -MISC ChangeLog 22084 SHA256 ee52069ef79f918bee00b2962ee9d63f58558f242e3785d53fedbfc3c151c7c8 SHA512 0203985a75508c2309f2d8a38ce9577dd6917193252e93461add5c85bf518da75ebb9a2d1561e531470a5531e9b7b70ab981a07328b18c96764c9aaea47391b5 WHIRLPOOL 03569b704561f86d5c2c2d1459dd6f9ab233ddabd016f3e935c6f937d9ba7b1e56dd480ba9b42305215eef9bc684d7b6139071fe224907a7e0f2f821f31abc86 +EBUILD shorewall-lite-4.5.21.2.ebuild 3058 SHA256 fd815bc4ca39d0e5a4d61b474c16de22e59f8c6c9e10f8a9815293c07f34a6ea SHA512 4a3297dd6d474312c8d72f5b9ad2b050d1b37db7c8d533818379c9ecf0d00c847c241a6a64ce16a0ef6e5ce49c9ae08ddff52379877289cfdc453836fec21429 WHIRLPOOL 1427e6af53c965d464c4b437623dd0a7f74907251179853d76e9d5b00d3c146e9c1e0e61214cb914a24b100947d89687e5987482ac05c588e3b304ba52fcab3c +MISC ChangeLog 22404 SHA256 ae9980e0dc37986d1d11fbc149660dba1ce8592a121464f2f47f28235aa92c4b SHA512 feeb72cdcbdfd7e5caf43856eb994453737d48ea723c718436e2484d29a309029697ff4a4fbf010fd27a0b69b434393d646e620ce4362ebff1683a18efb9a9f1 WHIRLPOOL f2c1979ad26ca11bd394376ed4bf738b9e4b92bc58a65781a4513c39de76d293e8e171e4d872a5cb87fbe3f50efe5109ea2e6bb4575b4288875f09077ea0a431 MISC metadata.xml 335 SHA256 343bf632281281ef9049e8d52c7e6e3b5629373a74b5bf1a4354466a83871875 SHA512 92b629d285c6f27de039844c97220a2a16139adca066fc4ab6ce379ad8ac3133e689044037302ca176d4d13ecf001aae35e29b5342d5ba94036ae7b478460d7b WHIRLPOOL 6e05ad4629c63dec8e7c9bddce0d14a5c83515366e38be765b68e04e4dd958805343a7c0ecaf05fc4669f0d6a7f47cdb8c2cba0d71c20be431c0a8b5930cabf1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQEcBAEBCAAGBQJSZSVIAAoJEA2sAkrWKOU2XmIH/0gKIi+A/gGic2dB+h/8+wEc -OqLYluqk1RQotvA21TOZnyOTfdqEKheKIcZGM1NmWU/PKDaCM6x1gAii5JHRsY98 -V7boanWpus2Mc+kPSyTFWmeVExqAT09vTQnHn7oVLt1nFxeB2yPxC+q63Cdm8mQm -S8BoYCw0zxp77+7Oeqa4cTaWLgD2xfS0l/4V8PwZgs1O4Ieg7ZTXc94+Om9Q9tWa -KOU/YfYgy+hXlYMvoj2wid/MTw0CCd9cLByEIgE33dT97LPg0DUMlEAVme+A2uSE -mN4dhmW5sUpuIcNXla9scgs76EG4Jf8LWQaglAbSqXgu/40ImK9N08YU+Jd18HM= -=oLaZ +iL4EAREIAGYFAlJ/xExfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl +bnBncC5maWZ0aGhvcnNlbWFuLm5ldEIwNjQwRkMzRTI1OTEyQUUwM0MwQjVBQUJC +ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsNUswEAqAjpOujJ/lr5JAEeLYwlCsoj +7eUHwMYQpeSZMzzha4YA/RAvy4ksGLuvsheT4ihByMhqO6cr3zoGMkDpfWj9Jmf3 +=y58t -----END PGP SIGNATURE----- diff --git a/net-firewall/shorewall-lite/files/4.5.21.2/shorewall-lite.confd b/net-firewall/shorewall-lite/files/4.5.21.2/shorewall-lite.confd new file mode 100644 index 000000000000..e5957167b5b9 --- /dev/null +++ b/net-firewall/shorewall-lite/files/4.5.21.2/shorewall-lite.confd @@ -0,0 +1,15 @@ +# Global start/restart/stop options +# +OPTIONS="" + +# Start options +# +STARTOPTIONS="" + +# Stop options +# +STOPOPTIONS="" + +# Restart options +# +RESTARTOPTIONS="" diff --git a/net-firewall/shorewall-lite/files/4.5.21.2/shorewall-lite.initd b/net-firewall/shorewall-lite/files/4.5.21.2/shorewall-lite.initd new file mode 100644 index 000000000000..eb379fa7041a --- /dev/null +++ b/net-firewall/shorewall-lite/files/4.5.21.2/shorewall-lite.initd @@ -0,0 +1,82 @@ +#!/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/shorewall-lite/files/4.5.21.2/shorewall-lite.initd,v 1.1 2013/11/10 17:36:56 constanze Exp $ + +description='The Shoreline Firewall Lite, more commonly known as "Shorewall Lite", is' +description="${description} a high-level tool for configuring Netfilter." + +extra_commands="clear" +extra_started_commands="reset" + +description_clear="Clear will remove all rules and chains installed by" +description_clear="${description_clear} Shorewall Lite. The firewall is" +description_clear="${description_clear} then wide open and unprotected." + +description_reset="All the packet and byte counters in the firewall are reset." + +depend() { + need net + provide firewall + after ulogd +} + +status() { + local _retval + /sbin/shorewall-lite 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 shorewall-lite" + /sbin/shorewall-lite ${OPTIONS} start ${STARTOPTIONS} 1>/dev/null + eend $? +} + +stop() { + ebegin "Stopping shorewall-lite" + /sbin/shorewall-lite ${OPTIONS} stop ${STOPOPTIONS} 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 shorewall-lite" + /sbin/shorewall-lite status 1>/dev/null + if [ $? != 0 ] ; then + svc_start + else + /sbin/shorewall-lite ${OPTIONS} restart ${RESTARTOPTIONS} 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-lite rules and setting policy to ACCEPT" + /sbin/shorewall-lite ${OPTIONS} clear 1>/dev/null + eend $? +} + +reset() { + # reset the packet and byte counters in the firewall + + ebegin "Resetting the packet and byte counters in shorewall-lite" + /sbin/shorewall-lite ${OPTIONS} reset 1>/dev/null + eend $? +} diff --git a/net-firewall/shorewall-lite/files/4.5.21.2/shorewall-lite.systemd b/net-firewall/shorewall-lite/files/4.5.21.2/shorewall-lite.systemd new file mode 100644 index 000000000000..a7c932418a9c --- /dev/null +++ b/net-firewall/shorewall-lite/files/4.5.21.2/shorewall-lite.systemd @@ -0,0 +1,17 @@ +# +# The Shoreline Firewall Lite (Shorewall-Lite) Packet Filtering Firewall - V4.5 +# +[Unit] +Description=Shorewall IPv4 firewall lite +Documentation=man:shorewall-lite(8) http://www.shorewall.net/Documentation_Index.html +After=network.target + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=/etc/conf.d/shorewall-lite +ExecStart=/sbin/shorewall-lite $OPTIONS start $STARTOPTIONS +ExecStop=/sbin/shorewall-lite $OPTIONS stop $STOPOPTIONS + +[Install] +WantedBy=multi-user.target diff --git a/net-firewall/shorewall-lite/files/4.5.21.2/shorewallrc b/net-firewall/shorewall-lite/files/4.5.21.2/shorewallrc new file mode 100644 index 000000000000..46f5eb9a3603 --- /dev/null +++ b/net-firewall/shorewall-lite/files/4.5.21.2/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-lite/shorewall-lite-4.5.21.2.ebuild b/net-firewall/shorewall-lite/shorewall-lite-4.5.21.2.ebuild new file mode 100644 index 000000000000..902acb06675a --- /dev/null +++ b/net-firewall/shorewall-lite/shorewall-lite-4.5.21.2.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/shorewall-lite-4.5.21.2.ebuild,v 1.1 2013/11/10 17:36:56 constanze Exp $ + +EAPI="5" + +inherit eutils linux-info prefix systemd versionator + +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_P_DOCS=shorewall-docs-html-${MY_PV} + +MY_MAJOR_RELEASE_NUMBER=$(get_version_component_range 1-2) +MY_MAJORMINOR_RELEASE_NUMBER=$(get_version_component_range 1-3) + +DESCRIPTION="An iptables-based firewall whose config is handled by a normal Shorewall." +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 + doc? ( http://www1.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}/${MY_P_DOCS}.tar.bz2 ) +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc" + +DEPEND="=net-firewall/shorewall-core-${PVR}" +RDEPEND=" + ${DEPEND} + >=net-firewall/iptables-1.4.20 + sys-apps/iproute2[-minimal] +" + +S=${WORKDIR}/${MY_P} + +pkg_pretend() { + local CONFIG_CHECK="~NF_CONNTRACK ~NF_CONNTRACK_IPV4" + + local ERROR_CONNTRACK="${PN} requires NF_CONNTRACK support." + + local ERROR_CONNTRACK_IPV4="${PN} requires NF_CONNTRACK_IPV4 support." + + check_extra_config +} + +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" + cp "${FILESDIR}"/${PVR}/${PN}.systemd "${S}"/gentoo.service || die "Copying ${PN}.systemd failed" + + epatch_user +} + +src_configure() { + :; +} + +src_compile() { + :; +} + +src_install() { + keepdir /var/lib/${PN} + + DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed" + + dodoc changelog.txt releasenotes.txt + if use doc; then + cd "${WORKDIR}/${MY_P_DOCS}" + dohtml -r * + fi +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + # This is a new installation + elog "Before you can use ${PN}, you need to provide a configuration, which you can" + elog "create using ${CATEGORY}/shorewall (the full version, including the compiler)." + elog "" + elog "To activate ${PN} on system start, please add ${PN} to your default runlevel:" + elog "" + elog " # rc-update add ${PN} default" + fi + + if ! has_version ${CATEGORY}/shorewall-init; then + elog "" + elog "Starting with shorewall-lite-4.5.21.2, Gentoo also offers ${CATEGORY}/shorewall-init," + elog "which we recommend to install, to protect your firewall at system boot." + elog "" + elog "To read more about shorewall-init, please visit" + elog " http://www.shorewall.net/Shorewall-init.html" + fi +} diff --git a/net-firewall/shorewall6-lite/ChangeLog b/net-firewall/shorewall6-lite/ChangeLog index ed17dbee8108..da95ee16d6a2 100644 --- a/net-firewall/shorewall6-lite/ChangeLog +++ b/net-firewall/shorewall6-lite/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-firewall/shorewall6-lite # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6-lite/ChangeLog,v 1.67 2013/10/21 13:00:20 nimiux Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6-lite/ChangeLog,v 1.68 2013/11/10 17:37:51 constanze Exp $ + +*shorewall6-lite-4.5.21.2 (10 Nov 2013) + + 10 Nov 2013; Constanze Hausner <constanze@gentoo.org> + +files/4.5.21.2/shorewall6-lite.confd, +files/4.5.21.2/shorewall6-lite.initd, + +files/4.5.21.2/shorewallrc, +shorewall6-lite-4.5.21.2.ebuild, + +files/4.5.21.2/shorewall6-lite.systemd: + Version bump; Thanks to Thomas D. 21 Oct 2013; Chema Alonso <nimiux@gentoo.org> shorewall6-lite-4.5.18-r1.ebuild: diff --git a/net-firewall/shorewall6-lite/Manifest b/net-firewall/shorewall6-lite/Manifest index 65cffdf8061f..8d48c866db0c 100644 --- a/net-firewall/shorewall6-lite/Manifest +++ b/net-firewall/shorewall6-lite/Manifest @@ -8,26 +8,31 @@ AUX 4.5.19/shorewall6-lite.confd 160 SHA256 99aa9a4d3ae9f3bb590f5426c1266b6f7ee5 AUX 4.5.19/shorewall6-lite.initd 2285 SHA256 c91073e6c99d2e1dd36992f6682989c6b911bf637fc61a01ac3a8c5eb6b40b4d SHA512 2d9462a58533738038609d3b1fa7484fa58b25c82f31251354a9401bcd0bfa4d47b92b25e23b79c14ee67aa0700ebe942d98175cc3f161dba2359ebdcb50aabc WHIRLPOOL bfd66560c5a2aee6affbffb78460af26065d9bd7435eed486ed7729d8ccb98e09233c62f2fa345b9e220db598a9592db77495aceded80cd04cb1d49a32f6e164 AUX 4.5.19/shorewall6-lite.systemd 488 SHA256 f8e0a127bb4e7216120a38ec09e35e2928b54dd5fc4e2bdefc66dbe20897ba43 SHA512 3710760fe27ee07a92170be6ebf423a6353e4712080a6c0c2c63958ec4f658add4743d60dcc91348b734c896d029227a4f6024d316ba96ea558f6c1db2246074 WHIRLPOOL 7541bddbce4c105c3a0dc1aab3ab64d96b41a27a87650fc48b63b07cb5a0b55524c1f4b50fee05104e82afa1b256ce8b809ddda5d9ac05da8b06991220c9da55 AUX 4.5.19/shorewallrc 1893 SHA256 13e755e42553215dc2f6a5f9abc4cca92e8f0f48d70f94072e780c5a8a432e1a SHA512 3c1f347095bd0c38d5d51bdd96e9cc7d73b3648ee669cdfb2195bed2badc2f7336e84ef9ead3c783d60a062e6ee39bf904a7749f7c43b798a8be70558eb611a0 WHIRLPOOL 48423249fc93de10ccd32d88f13595f54deeff38dbcaaf04ea87c42ae97f6324338c7c30f1fc68530e02714fb761d82093c40015e8577d11153ba63e2cf0583b +AUX 4.5.21.2/shorewall6-lite.confd 160 SHA256 99aa9a4d3ae9f3bb590f5426c1266b6f7ee50a9e52f5a65b4cc56744a953982b SHA512 00e58351aade2ea9ade38373f3cacca3f10dcf4230b29e4a4e2b5d5d449ea9b78f40e2da7d94ed7c23980de2428198e3472399c6268662598b0fdbe008aff4b8 WHIRLPOOL 18532d1659a794d531548a91b0f096942fe5e82637ed05a9c5d49ed580d99a3e0c2807fd5ca5ea5c38139dc4c6f798b952433e59ee893f80240e5f4254435eda +AUX 4.5.21.2/shorewall6-lite.initd 2287 SHA256 d6d1dc9ff2060dde3affc4004d4e543cbca150b129d7cfb478a3f1803af0bb7d SHA512 c55c419533f4e720246d3f7915ee94c349bba49adb299be913aa99424464b3d0d774c1edb65b92b92ba2d6d846fedfa8f73c86b60b8c02be5cdaf70bfe6bb8a7 WHIRLPOOL 0ffcd3a7a188a5e73c04c2ed1735cc34fe09812a6117dc9f47892e09ab7fbb3c4913b3e21bf867ee99b6ad5112ff438510818df592f7172dbc6c502f0473c915 +AUX 4.5.21.2/shorewall6-lite.systemd 488 SHA256 f8e0a127bb4e7216120a38ec09e35e2928b54dd5fc4e2bdefc66dbe20897ba43 SHA512 3710760fe27ee07a92170be6ebf423a6353e4712080a6c0c2c63958ec4f658add4743d60dcc91348b734c896d029227a4f6024d316ba96ea558f6c1db2246074 WHIRLPOOL 7541bddbce4c105c3a0dc1aab3ab64d96b41a27a87650fc48b63b07cb5a0b55524c1f4b50fee05104e82afa1b256ce8b809ddda5d9ac05da8b06991220c9da55 +AUX 4.5.21.2/shorewallrc 2006 SHA256 1f5a784ccb33ffe50cbacc066f783e1446996a60d99deb473ffbd5a69e9150a6 SHA512 c397c556f56444b08b091f405f2b82d16cf4b4e42d98176bede01ff32f270841fbaa6e0e5f5e7e1e4871ed5a0be22b654ae5c07f728e747449ab5f43025cde9f WHIRLPOOL 1d94b8bc7a9a4ac73480a610be58d4842bf0243f004fd7d5f668eab9be0e02ed3ce58bef9281bb638e5e5d346f47e8a15cc33d9a1e0bba1d642e125923d953e3 AUX shorewall6-lite.initd 1810 SHA256 525c21d81294cbcbb25cffd1a0caa86e9ae481da322f817f582f2f5be8d798be SHA512 ce9c3ca091003b171e62ee9f656174547e88beb6cc2fba78589cc37d56907dc9616bbf5930f76dcbc553597fc549750b7299946ab9b8dc00149e33f0f1f6c476 WHIRLPOOL 9a569dd111c00700163b3677e434f5b12bc9f3762e79221c7883f08bfee2cba58881b213e5a5ba05c615816a024e9bf995942202a68ed5773469f5f05eee3e0e AUX shorewall6-lite.systemd 475 SHA256 95dec92e61eda3543ada0bc05c9eecf87ca5dcc449448b5c04dbcf72045006cb SHA512 a9a258b0b430a88bcf6d6ccec56ded96422c0c52574cd45b552c04f4c1b5758476ea708d13b517dab686d859f4a503a348de6bd2acb5e60797172e502e387831 WHIRLPOOL c38c053ade59895c5605182241e154ab2624187a8367f7d371111ccdf5f4145d32b3c3bc358fb590d85cd044ad1c76a7f49af57d6ea6ec71fa25f773b644fd0f AUX shorewallrc_new 1773 SHA256 24a169e763eea3926b8d1c44d62c52d3e2cad94eccea303376ba3e873e0a8224 SHA512 e080f4bce47fa5482dee46486e358ed17f35edeaf9050126b8c6f009cb29d1ca2ead2821153233e15fc18757f6cb72ff60f72b3f2d65aca32f9a63bc33a31f0e WHIRLPOOL 54311d12f85c1b9791a0e8db32878e7031c846471594400011236c58ef0183d75be960f65ce207d909758107a9bd13aee6fff2fc001b42651397ae877162e654 DIST shorewall-docs-html-4.5.18.tar.bz2 4022828 SHA256 a98263059952ed50b826eb1787e18eccff09f41fa8f5d70f705ce39660b0c835 SHA512 790b89c3ee885a70daf62d145fcc3e1fb15871abcc9e8a868154c982e264a46acd8dfba81986604de60eb1c375b080d52992b6435b15b3cca91ab3afb895708f WHIRLPOOL 72c73ed925f3289978bfdfd8490bd617c0d39190ce874583773f04ec16d5710d007fd2edaef80b20e7b504e58df0d7bcf09595ee228a0948500295b848c333b3 DIST shorewall-docs-html-4.5.19.tar.bz2 4033970 SHA256 7be6ebfa73a52151137201e098588ff6e67aa6fc21cf530a0fba564eeb8e77d1 SHA512 8ce06db614a6114cfe2c5c78acfaf111cba0ae5aa488df3879af6b5ecb20205ee453e308a7299e5df243a71067f93dcd8f4cf5faefbd8729ba11acee35cf34e0 WHIRLPOOL b55f90c6f9ca28cccddfb7bd899ce5815573db3ff4b4deabe454c6f30a9b01196ec4609d5251413d9761a28944a6acb19b6748c4dd41ea58fe2fa8da9845ed49 +DIST shorewall-docs-html-4.5.21.2.tar.bz2 4144789 SHA256 b4cfdcb84525a3df1430c71eba4c1f86378d96283c250d8c2a9d81ac921bef88 SHA512 57a5dce628301a043110a28874dc73244ac8aedb756c62bdbc9ebc66ba324c989debc6dfdc6e9f19538356b60230d88b708fb9562cb9016783d41d9efbdb495a WHIRLPOOL fce6eca901c7444fe05cbd72b59aa836967de19bccbba3335b74b05e220ad297da15451d853188d5dc65276b13af70c7134eb17a0119dd695e571fe23ee71b07 DIST shorewall6-lite-4.5.18.tar.bz2 73212 SHA256 f4fa454812ac0fa3da96569dcac3c6bff0022477e1ba55eee0df5d260f8091f0 SHA512 42939a8fbd6190f396ad31d5107dd28df831ee5236329d714f209c33cdaa00976931da3e3c0e6e92f5f963d054aac6987686e90f47fd4879a96320e93a769e8a WHIRLPOOL 156e60c4c4665cc6b8c5c0687880f07a9d27151dc0919cc6add388c84e1c3e23dd9ac46fa0ae941e0ccd674a70ff89b8573bf1463b350574cab469cdac7d9945 DIST shorewall6-lite-4.5.19.tar.bz2 73853 SHA256 c42b43c95ccb4de1f4ba2392321909c4e060b1facf1265745ec320a2b27b92a5 SHA512 51e72981acf5421db84472f707ccfd4af6c3b761453d144b6d57def3937d02c2200afc4669e3a9b3e7c200e308ce6cc8e1526231546ac9e3b8aa72b4593b93ac WHIRLPOOL 8f5c7c490b8f2346686d68c6c6e7d0227ff47a52eb70d9220b2f967eab725e2ed2486d91ded8c0944dd1d0a294e9e192a0bfb7cab4a5284e1837bcb8bba35219 +DIST shorewall6-lite-4.5.21.2.tar.bz2 77438 SHA256 dbe97281621f8af2cdc8a347b0cf6f34f9f42da786fed56b6bdc367752f66817 SHA512 3cdd70370ede5e1c77007d219b6313bca818e4de9d4e8a7056903b00a8586461370bcd6c18a3a8cf8e96b33a36d91509687b59abad1e549fb31d186b8fa2466a WHIRLPOOL 946873ced8e08c15b9422b4849bc72d63657fa01e816e189613717c283acda9951d2e90016b4ae55a43dde9c3f87b32dd7bc66fb2e98500c81883f50f0600d9d EBUILD shorewall6-lite-4.5.18-r1.ebuild 1843 SHA256 919bd8bbef54899279ef4ee18d74f5a5cf25b7132d2abb1221646d702b48d417 SHA512 04450eca24b6f2f08f1ac8e907e21ab3be43166c88134c78f3e8e34c3a8d0bfdfcb2eb1dd4ea38c25036249dbaf6ea8e82f8745e3ea3283aeb337a4f77d2af75 WHIRLPOOL 7e0fc32234ac96d889dea6a150de0e7ab50bf8bffede35b5b58f065285964923be2b9554e48ce90ba5474f1c79975dfe110a19819eb5a5e847ecb52a9d88f60e EBUILD shorewall6-lite-4.5.18.ebuild 1594 SHA256 16b1e974275ce30be5e1310e73d24e135a0117960574d8a886c46c27fed2be03 SHA512 67190d8004b43680bc478262685ff089d97d081906aace42828921a7ea1dd2ecde9a1660b79aca758c0155beae77baa93d6eb7b5d8625bdc5eadb350f9f9c081 WHIRLPOOL 2f15e9a17b6271c0d6c0bbd737c8b4e70a5d11b84ae1089cf9bb1cca45ba9ec29d0dc9432dd56dc2897dfa68aec46b1bba6d08a966af7b0cbd2cfc48e4138ec4 EBUILD shorewall6-lite-4.5.19.ebuild 2722 SHA256 d60a581080ad0437af974cdbf39521332a3082b47215550af38728c0ae3c5ec1 SHA512 be7e4cd1e36212fb0eee055777eb7e44d5b4ad531a450db9c1b8624173074d2e4cd519ca613a61be4a4e44d3da22154fafc707c4f67a9bd99fc0524856d1c34b WHIRLPOOL 605f56a6b59f7809d994392224b7376561f0b7ec3b8df209d686f9edc2bb2ab30a51cd638ca636b54d9e365138c5a038022f8d77a3d92ec62f98f611f5283ec1 -MISC ChangeLog 11767 SHA256 d00fb95f4ad8817ac2fd6fca38128c570372f839ca985af338861dda58b49f57 SHA512 b0ea4517b1fb6aa1f02eec592226dbcb226f99809f0944a967d5df2deaf2b964354cee031dab83c76ee6b8a516761aa49744890fc6f916465807d993591769c1 WHIRLPOOL 9a7fb34d2ecd95d63f3ca8a5a0de952ba22463054494c539cbacf4df959c5d9a8698fa62aa7a8b895bcb5f580c22adb5dc3fa634436fecc60f01e2207012fa23 +EBUILD shorewall6-lite-4.5.21.2.ebuild 3087 SHA256 547ba64379295c0a240e2c6fb7421ab1e6130bfdba18a9b29ba9a0f11646b5ce SHA512 df42267f3c33e686982ea243da2ecea52b21a2b6745d2dfa4a265b5d64aecb259d4ff8c42c26fdf059b45302c97853244bda6cce860c7d05c136944700bc771f WHIRLPOOL 9343a888aaf25b0d4878e36d796adb5746ab809f5f10aefdf51754a95fd22112799b175bb08299481d49d9a40060dcf5afe46718f517be9fad2f03a9ea72c4c1 +MISC ChangeLog 12092 SHA256 6cd0355a9c099e801f0a666576c6bf14692b50e9e807424fe9e6278447fc5680 SHA512 b97aaa6d515aafcfbb9e28b310ee45f357eeded1c21bb3399883e8d39e1af583c21bc2a2d1ed93da781ee774271e4ebce451fa6047d78c5e03bc74b55a6606c2 WHIRLPOOL 29d226207babccab3d2c4f2bf44649db35f0d982d9bc12641bca97a8aacf36d87ed20b7059bc987bfc0c1dbb82f189dc3d0eb849e3374d4a4ac3339fb525dc43 MISC metadata.xml 361 SHA256 ea12ad6e474c28d25b9203225c99d9a0336bd606fd3c2cd260c11d4982712357 SHA512 da1d88bdae3187e1c5d63b90da4fb2798f0a3f79558a57eb5ae0fab42eaa7268bfbd4102a870cbff73aa83c64bc1b10c1c7f71c01ee29f64772f7635e7da0ac9 WHIRLPOOL ae0b57811bf7617fb9cf3840a2e182d334a8303fda841c879c2791b893bd5515cae72fc0bb38f6554045bb531774798539f80b474a6152ebc04c31e5bc2f0464 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQEcBAEBCAAGBQJSZSWgAAoJEA2sAkrWKOU2s74H/2RbIwNdtFUkLBt4MbbMqptl -3tadchA5olvK1/f9KPeK5cjb/+qtqZz2Aui82f1ByzBQhYVhNs1FskA5+fGOyIQk -p2OAqHWvzz/lFRteVZBjeCaAq3Me5ikm0LivsWlapumoAtwuc1Nga7qLqSCtCgpb -8rEBhJrHNIOraMlvcw2RnzB519iQl66x8vUYEtXxlEovSw6FmqhNL/VXMKPNiv/1 -uEU0v7KxfHpengFSt1QayH3lum606iaY+1YR4RY3MJKuq79F79hetNJlNAf3+CcP -OAbIXo9CSrc4KXh3KtUEedD+7ssQyrPBvbHk6aKAk02+5byHnInpnB/HVS60YpM= -=CIzh +iL4EAREIAGYFAlJ/xHBfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl +bnBncC5maWZ0aGhvcnNlbWFuLm5ldEIwNjQwRkMzRTI1OTEyQUUwM0MwQjVBQUJC +ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsOtLQD+KhFZ2vIMCqvaCaEI3fC38LZk +8E/GXfJLcHIkFpf6zqEA/Aydtdm5Yvl28NS1B4g6C6z3xtrx7q0W/oiFYRuFG2B4 +=0hym -----END PGP SIGNATURE----- diff --git a/net-firewall/shorewall6-lite/files/4.5.21.2/shorewall6-lite.confd b/net-firewall/shorewall6-lite/files/4.5.21.2/shorewall6-lite.confd new file mode 100644 index 000000000000..e5957167b5b9 --- /dev/null +++ b/net-firewall/shorewall6-lite/files/4.5.21.2/shorewall6-lite.confd @@ -0,0 +1,15 @@ +# Global start/restart/stop options +# +OPTIONS="" + +# Start options +# +STARTOPTIONS="" + +# Stop options +# +STOPOPTIONS="" + +# Restart options +# +RESTARTOPTIONS="" diff --git a/net-firewall/shorewall6-lite/files/4.5.21.2/shorewall6-lite.initd b/net-firewall/shorewall6-lite/files/4.5.21.2/shorewall6-lite.initd new file mode 100644 index 000000000000..791fcdd583da --- /dev/null +++ b/net-firewall/shorewall6-lite/files/4.5.21.2/shorewall6-lite.initd @@ -0,0 +1,82 @@ +#!/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-lite/files/4.5.21.2/shorewall6-lite.initd,v 1.1 2013/11/10 17:37:51 constanze Exp $ + +description='The Shoreline Firewall 6 Lite, more commonly known as "Shorewall6 Lite", is' +description="${description} a high-level tool for configuring Netfilter." + +extra_commands="clear" +extra_started_commands="reset" + +description_clear="Clear will remove all rules and chains installed by" +description_clear="${description_clear} Shorewall6 Lite. The firewall is" +description_clear="${description_clear} then wide open and unprotected." + +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-lite 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-lite" + /sbin/shorewall6-lite ${OPTIONS} start ${STARTOPTIONS} 1>/dev/null + eend $? +} + +stop() { + ebegin "Stopping shorewall6-lite" + /sbin/shorewall6-lite ${OPTIONS} stop ${STOPOPTIONS} 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-lite" + /sbin/shorewall6-lite status 1>/dev/null + if [ $? != 0 ] ; then + svc_start + else + /sbin/shorewall6-lite ${OPTIONS} restart ${RESTARTOPTIONS} 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 shorewall6-lite rules and setting policy to ACCEPT" + /sbin/shorewall6-lite ${OPTIONS} clear 1>/dev/null + eend $? +} + +reset() { + # reset the packet and byte counters in the firewall + + ebegin "Resetting the packet and byte counters in shorewall6-lite" + /sbin/shorewall6-lite ${OPTIONS} reset 1>/dev/null + eend $? +} diff --git a/net-firewall/shorewall6-lite/files/4.5.21.2/shorewall6-lite.systemd b/net-firewall/shorewall6-lite/files/4.5.21.2/shorewall6-lite.systemd new file mode 100644 index 000000000000..5af21b6c19bd --- /dev/null +++ b/net-firewall/shorewall6-lite/files/4.5.21.2/shorewall6-lite.systemd @@ -0,0 +1,17 @@ +# +# The Shoreline Firewall 6 Lite (Shorewall6-Lite) Packet Filtering Firewall - V4.5 +# +[Unit] +Description=Shorewall IPv6 firewall lite +Documentation=man:shorewall6-lite(8) http://www.shorewall.net/Documentation_Index.html +After=network.target + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=/etc/conf.d/shorewall6-lite +ExecStart=/sbin/shorewall6-lite $OPTIONS start $STARTOPTIONS +ExecStop=/sbin/shorewall6-lite $OPTIONS stop $STOPOPTIONS + +[Install] +WantedBy=multi-user.target diff --git a/net-firewall/shorewall6-lite/files/4.5.21.2/shorewallrc b/net-firewall/shorewall6-lite/files/4.5.21.2/shorewallrc new file mode 100644 index 000000000000..46f5eb9a3603 --- /dev/null +++ b/net-firewall/shorewall6-lite/files/4.5.21.2/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/shorewall6-lite/shorewall6-lite-4.5.21.2.ebuild b/net-firewall/shorewall6-lite/shorewall6-lite-4.5.21.2.ebuild new file mode 100644 index 000000000000..180fc775874e --- /dev/null +++ b/net-firewall/shorewall6-lite/shorewall6-lite-4.5.21.2.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6-lite/shorewall6-lite-4.5.21.2.ebuild,v 1.1 2013/11/10 17:37:51 constanze Exp $ + +EAPI="5" + +inherit eutils linux-info prefix systemd versionator + +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_P_DOCS=shorewall-docs-html-${MY_PV} + +MY_MAJOR_RELEASE_NUMBER=$(get_version_component_range 1-2) +MY_MAJORMINOR_RELEASE_NUMBER=$(get_version_component_range 1-3) + +DESCRIPTION="An iptables-based firewall whose config is handled by a normal Shorewall6." +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 + doc? ( http://www1.shorewall.net/pub/shorewall/${MY_URL_PREFIX}${MY_MAJOR_RELEASE_NUMBER}/shorewall-${MY_MAJORMINOR_RELEASE_NUMBER}/${MY_P_DOCS}.tar.bz2 ) +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc" + +DEPEND="=net-firewall/shorewall-core-${PVR}" +RDEPEND=" + ${DEPEND} + >=net-firewall/iptables-1.4.20[ipv6] + sys-apps/iproute2[-minimal] + dev-perl/Socket6 +" + +S=${WORKDIR}/${MY_P} + +pkg_pretend() { + local CONFIG_CHECK="~NF_CONNTRACK ~NF_CONNTRACK_IPV6" + + local ERROR_CONNTRACK="${PN} requires NF_CONNTRACK support." + + local ERROR_CONNTRACK_IPV6="${PN} requires NF_CONNTRACK_IPV6 support." + + check_extra_config +} + +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" + cp "${FILESDIR}"/${PVR}/${PN}.systemd "${S}"/gentoo.service || die "Copying ${PN}.systemd failed" + + epatch_user +} + +src_configure() { + :; +} + +src_compile() { + :; +} + +src_install() { + keepdir /var/lib/${PN} + + DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed" + + dodoc changelog.txt releasenotes.txt + if use doc; then + cd "${WORKDIR}/${MY_P_DOCS}" + dohtml -r * + fi +} + +pkg_postinst() { + if [[ -z "${REPLACING_VERSIONS}" ]]; then + # This is a new installation + elog "Before you can use ${PN}, you need to provide a configuration, which you can" + elog "create using ${CATEGORY}/shorewall6 (the full version, including the compiler)." + elog "" + elog "To activate ${PN} on system start, please add ${PN} to your default runlevel:" + elog "" + elog " # rc-update add ${PN} default" + fi + + if ! has_version ${CATEGORY}/shorewall-init; then + elog "" + elog "Starting with shorewall6-lite-4.5.21.2, Gentoo also offers ${CATEGORY}/shorewall-init," + elog "which we recommend to install, to protect your firewall at system boot." + elog "" + elog "To read more about shorewall-init, please visit" + elog " http://www.shorewall.net/Shorewall-init.html" + fi +} |