diff options
author | Constanze Hausner <constanze@gentoo.org> | 2013-09-22 13:19:12 +0000 |
---|---|---|
committer | Constanze Hausner <constanze@gentoo.org> | 2013-09-22 13:19:12 +0000 |
commit | 98949564e7fbe7f8e130f37a49e2e7bc4bcc323b (patch) | |
tree | c90ad2f29e441e0a724f4b0aa866fd8a22bb2c55 /net-firewall | |
parent | version bump, remove old (diff) | |
download | historical-98949564e7fbe7f8e130f37a49e2e7bc4bcc323b.tar.gz historical-98949564e7fbe7f8e130f37a49e2e7bc4bcc323b.tar.bz2 historical-98949564e7fbe7f8e130f37a49e2e7bc4bcc323b.zip |
Bugfix 459316 for 4.5.18; Thanks to Thomas D.
Package-Manager: portage-2.2.1/cvs/Linux x86_64
Manifest-Sign-Key: 0xBB80F419010E3EC3
Diffstat (limited to 'net-firewall')
30 files changed, 1005 insertions, 30 deletions
diff --git a/net-firewall/shorewall-core/ChangeLog b/net-firewall/shorewall-core/ChangeLog index ed333900d596..7a0745aec022 100644 --- a/net-firewall/shorewall-core/ChangeLog +++ b/net-firewall/shorewall-core/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-firewall/shorewall-core # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-core/ChangeLog,v 1.43 2013/08/29 19:00:45 constanze Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-core/ChangeLog,v 1.44 2013/09/22 13:14:41 constanze Exp $ + +*shorewall-core-4.5.18-r1 (22 Sep 2013) + + 22 Sep 2013; Constanze Hausner <constanze@gentoo.org> + +files/4.5.18-r1/shorewallrc_new, +shorewall-core-4.5.18-r1.ebuild: + Bugfix 459316 for 4.5.18; Thanks to Thomas D. 29 Aug 2013; Constanze Hausner <constanze@gentoo.org> metadata.xml: Added Thomas D. as new maintainer diff --git a/net-firewall/shorewall-core/Manifest b/net-firewall/shorewall-core/Manifest index efdac1047a82..3e88b52571a1 100644 --- a/net-firewall/shorewall-core/Manifest +++ b/net-firewall/shorewall-core/Manifest @@ -1,20 +1,22 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 +AUX 4.5.18-r1/shorewallrc_new 1893 SHA256 f24c31f70e1de7b802d8fdb400833885df2a04a1fe15a0b53e828cd877995de1 SHA512 ad0b4aa60ef414ba279fc425995ebc088b7a6913ba4748cd205542fec7555ea6bd2cb31cb109d9eb11767ee259cda9aa2a05f979269a54c905bb59a3cc4c014e WHIRLPOOL d37ec5e41ba96a3e54ea6bcdb10f0623518949360b5553387669d2bdcbbd5d22836b176d566a21efcfafb854605cbde960b19a69b9c486a54ee5a659e78afb81 AUX 4.5.19/shorewallrc 1893 SHA256 13e755e42553215dc2f6a5f9abc4cca92e8f0f48d70f94072e780c5a8a432e1a SHA512 3c1f347095bd0c38d5d51bdd96e9cc7d73b3648ee669cdfb2195bed2badc2f7336e84ef9ead3c783d60a062e6ee39bf904a7749f7c43b798a8be70558eb611a0 WHIRLPOOL 48423249fc93de10ccd32d88f13595f54deeff38dbcaaf04ea87c42ae97f6324338c7c30f1fc68530e02714fb761d82093c40015e8577d11153ba63e2cf0583b AUX shorewallrc_new 1773 SHA256 24a169e763eea3926b8d1c44d62c52d3e2cad94eccea303376ba3e873e0a8224 SHA512 e080f4bce47fa5482dee46486e358ed17f35edeaf9050126b8c6f009cb29d1ca2ead2821153233e15fc18757f6cb72ff60f72b3f2d65aca32f9a63bc33a31f0e WHIRLPOOL 54311d12f85c1b9791a0e8db32878e7031c846471594400011236c58ef0183d75be960f65ce207d909758107a9bd13aee6fff2fc001b42651397ae877162e654 DIST shorewall-core-4.5.18.tar.bz2 79521 SHA256 41b1e9e2d09c6344d546f814531996eaf52b3a30ae6c8db7ff009a8a17bde3cd SHA512 8b2dd691b84c5ca3beac705b4aecb7ac3c09e794c5e255915bf5a55cebef23ca4cd8fac2b3118d6e6cbbf7e432699cc447d5811de80e1d3bae0516ede27398d1 WHIRLPOOL 4c2416dab6f4fa73dbc010c3ab3a884d65f2ab814da6301b7d8a46545347b6c94b0444ea8e3357c9a80d03a08064c67fdd0c80d8167bca8fa1a2c54d4fd7b6b8 DIST shorewall-core-4.5.19.tar.bz2 80581 SHA256 ff9e1d602ba5d973de1a93ee618d175ffc8ff5d092f1af767fa922f5761b08ae SHA512 917a223863b57a6282c8b83de03daa6133886682a95cb9c4816754ee5bd1b5a0f97963da776c518a68ae0af432cc7dcc274f82b3a29569471f7305155bb86f66 WHIRLPOOL e36f745a0f6975ca035ac8fa0e06ad825c62f7508f4921344263effed734da8c037aefe6edb1529edb50d09e7dcb146fab4aaf8a49611bbcb72037ec1c5b0370 +EBUILD shorewall-core-4.5.18-r1.ebuild 1344 SHA256 a82e9abe97214e60687ccb0e00e19d7681786f38bc34b303578663250093d77f SHA512 6644dde3fb6ccd26a5c7cf4473eda3ee44ad96e6fb3c21efbb5dbe651cae77e446b93d9202af2fd4446a175b936a482b757ef0d267a1bb02fc036078bf72d529 WHIRLPOOL 50192066ade4f4559d4164147e2b3be7f1f080a1b3961108d812f603e4cc1a692cd34753b108717129196f78ae292cd21471abf9f09003b5ecee4024291b8bb2 EBUILD shorewall-core-4.5.18.ebuild 1168 SHA256 efdcda19b2fbc3a597f387cd48fea93fe50bb39b4ea78ad55efcacd4580f937f SHA512 f37cf1ffe539eacdf7d195078bbe08dc8e0ada6a8c20b29c5891ec293a9a5e3ce6f17f3dd6184f27b6a7506dcba7d3a85d4ffe1f0ff48492e5e3cd4cdf84cb77 WHIRLPOOL 9484ed7f322c25f19dbcdc9f5ba7b521d0055423d1bde4e103437da790f4ad337e6029046cfb504a81f95d95431a088ee12e74928cc17b5859ded131c2d1bedd EBUILD shorewall-core-4.5.19.ebuild 1433 SHA256 be57fb55160d2711bfce2bebc735f6d262517862f0f55a2376e2708fc2d718f0 SHA512 16763a0130abcfefcac1b9d9719d3596869b04f434abb200a1573b2de4a6eb846748068a9c73115a0f24f6407530fe21baaeac23d439219ecb72525b120df5d7 WHIRLPOOL ad6d2ede282a41c6d64b7525dc7b5fd982caa72483fb6a56e642dabd6eaad2843de9210a563ec9f980f624dff60f21cb1764c377719f0f5b36eab880b28ad882 -MISC ChangeLog 6556 SHA256 b1cd0e5cdd1c65ab370316f789032b67023cf75cfdea6ca52ac433ceba981c6b SHA512 10455391a41ecbd41aa34c0f1858591f12395561cb0a04df93b2b0a3733953fa11b5a5e77e7d1d858409a01e55d63a62fe8cafd66e767c68716f46244c9e56ab WHIRLPOOL 170f2fdc875487f52e5904b8e7ed0c5668913f69483998aebcffb00ffbf947302307e824eb16a4f7e0e7e899010ca2afdfbb1fe4cd1dec09961723a188389919 +MISC ChangeLog 6772 SHA256 efe3a8c9f914ac2cb4532fb31f943b6a15367c474514a620485db55176ed0c2e SHA512 7122be8c7ae50589435165b1f5893aa63e321722a73436729f1b931bacf82a7a0aacf14daeea7beb5874a867cf18a71cbab3699b2818663db5f93360d4d3dcc5 WHIRLPOOL ad1432dceabfb0d15ddda595933d7d6722db259454d95261a6d7bc45174aa0b7ec6ecbabfc7a80bed3f4a5de74cff4c4782ca43b1534d915fa9e6e795485aba0 MISC metadata.xml 245 SHA256 6b8811765ad279984b77ea36b32bce27dfb26c6190d1700e2bf467e1af0d45f4 SHA512 415c0e4fadbb06fe895a8f0a2f6f798901d8616e7b231f66e2e5f5730d47c29b320e303853e58ca1b6774cc346b8096effb189265f43d8681b64d631a07676f4 WHIRLPOOL 13214a90e11c4b1c23d1c9ad1936178b7ba37fa220cb10de057b5a93e5a47eac1c2803f85013ccfb8441b0f596db923bb060d6a195713586bbf1289340855648 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iL4EAREIAGYFAlIfml5fFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl +iL4EAREIAGYFAlI+8FVfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldEIwNjQwRkMzRTI1OTEyQUUwM0MwQjVBQUJC -ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsOF8gEAnNoRek9GyAm0E58+VxruMd2/ -i29OFbuSaKiaNtUsnZ8A/0L5foq+0m5wikWMhOO0sZhdqRbCrv0ZYaoIFIxVPHU+ -=1IgV +ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsPbXwEAoEVf98U7NylFlzvtsx5mD1hn +qYSK+q+NcgM5OSvdAjoBAIGXESCQEf9U5qzyjiGq2DUY11mpaxzZYIVGizDFLinx +=0gYH -----END PGP SIGNATURE----- diff --git a/net-firewall/shorewall-core/files/4.5.18-r1/shorewallrc_new b/net-firewall/shorewall-core/files/4.5.18-r1/shorewallrc_new new file mode 100644 index 000000000000..0f9301cfeb49 --- /dev/null +++ b/net-firewall/shorewall-core/files/4.5.18-r1/shorewallrc_new @@ -0,0 +1,22 @@ +# +# Gentoo Shorewall 4.5 rc file +# +BUILD= #Default is to detect the build system +HOST=linux #Generic Linux +PREFIX=@GENTOO_PORTAGE_EPREFIX@/usr #Top-level directory for shared files, libraries, etc. +SHAREDIR=${PREFIX}/share #Directory for arch-neutral files. +LIBEXECDIR=${PREFIX}/share #Directory for executable scripts. +PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory +CONFDIR=@GENTOO_PORTAGE_EPREFIX@/etc #Directory where subsystem configurations are installed +SBINDIR=@GENTOO_PORTAGE_EPREFIX@/sbin #Directory where system administration programs are installed +MANDIR=${PREFIX}/share/man #Directory where manpages are installed. +INITDIR=${CONFDIR}/init.d #Directory where SysV init scripts are installed. +INITFILE=${PRODUCT} #Name of the product's installed SysV init script +INITSOURCE=init.gentoo.sh #Name of the distributed file to be installed as the SysV init script +ANNOTATED= #If non-zero, annotated configuration files are installed +SYSTEMD=@GENTOO_PORTAGE_EPREFIX@/usr/lib/systemd/system #Directory where .service files are installed (systems running systemd only) +SYSCONFFILE= #Name of the distributed file to be installed in $SYSCONFDIR +SYSCONFDIR=${CONFDIR}/conf.d #Directory where SysV init parameter files are installed +SPARSE= #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR +VARLIB=@GENTOO_PORTAGE_EPREFIX@/var/lib #Directory where product variable data is stored. +VARDIR=${VARLIB}/${PRODUCT} #Directory where product variable data is stored. diff --git a/net-firewall/shorewall-core/shorewall-core-4.5.18-r1.ebuild b/net-firewall/shorewall-core/shorewall-core-4.5.18-r1.ebuild new file mode 100644 index 000000000000..15fa82c83aad --- /dev/null +++ b/net-firewall/shorewall-core/shorewall-core-4.5.18-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-core/shorewall-core-4.5.18-r1.ebuild,v 1.1 2013/09/22 13:14:41 constanze Exp $ + +EAPI="5" + +inherit eutils prefix versionator + +# Select version (stable, RC, Beta): +MY_PV_TREE=$(get_version_component_range 1-2) # for devel versions use "development/$(get_version_component_range 1-2)" +MY_PV_BASE=$(get_version_component_range 1-3) + +MY_P="shorewall-${MY_PV_BASE}" + +DESCRIPTION="Core libraries of shorewall / shorewall(6)-lite" +HOMEPAGE="http://www.shorewall.net/" +SRC_URI="http://www1.shorewall.net/pub/shorewall/${MY_PV_TREE}/${MY_P}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="selinux" + +DEPEND=">=net-firewall/iptables-1.2.4 + sys-apps/iproute2[-minimal] + dev-lang/perl + dev-perl/Digest-SHA1 + !<net-firewall/shorewall-4.5.0.1 + selinux? ( sec-policy/selinux-shorewall )" +RDEPEND="${DEPEND}" + +DOCS=( changelog.txt releasenotes.txt ) + +src_prepare() { + cp "${FILESDIR}"/${PVR}/shorewallrc_new "${S}"/shorewallrc.gentoo || die "Copying shorewallrc_new failed" + eprefixify "${S}"/shorewallrc.gentoo +} + +src_configure() { + :; +} + +src_install() { + DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed" + default +} diff --git a/net-firewall/shorewall-lite/ChangeLog b/net-firewall/shorewall-lite/ChangeLog index b714ea298b78..d1057af0f7a2 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.137 2013/08/29 19:01:51 constanze Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/ChangeLog,v 1.138 2013/09/22 13:17:02 constanze Exp $ + +*shorewall-lite-4.5.18-r1 (22 Sep 2013) + + 22 Sep 2013; Constanze Hausner <constanze@gentoo.org> + +files/4.5.18-r1/shorewall-lite.initd, + +files/4.5.18-r1/shorewall-lite.systemd, +files/4.5.18-r1/shorewallrc_new, + +shorewall-lite-4.5.18-r1.ebuild: + Bugfix 459316 for 4.5.18; Thanks to Thomas D. 29 Aug 2013; Constanze Hausner <constanze@gentoo.org> metadata.xml: Added Thomas D. as new maintainer diff --git a/net-firewall/shorewall-lite/Manifest b/net-firewall/shorewall-lite/Manifest index fa53bd95fae0..8df26c427647 100644 --- a/net-firewall/shorewall-lite/Manifest +++ b/net-firewall/shorewall-lite/Manifest @@ -1,6 +1,9 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 +AUX 4.5.18-r1/shorewall-lite.initd 2169 SHA256 0cb07ea957fca5feffe7956c30ef2bec5748c8d016845c05d0fd1adbaea6bfb8 SHA512 4e537f1fdf5a6fdd609b36d588cf9440cb5aa58076e9df45d286ff5c2e2b7d9f231cdc5effbe03ffcbaab5e2d0b6bed392ba4fa441c74288d9f9d0554bc6bb6d WHIRLPOOL 5378dc4c019b881095ac562b1e77cfaff96497f3bb005f8538f2ee290b41f53aed0871625c8eda8953d5e05215ed40158099c670fddecddda4eb4abca2912983 +AUX 4.5.18-r1/shorewall-lite.systemd 472 SHA256 9958fae5cb6b172f764e7cbb91991cb37e608453e161ce9f10ee3e5013932e2f SHA512 219a60a720224ef305eec288032983f68c43aa98528b6d84684fc1907bc97f0b0ded9b3edc16cbab48338b640206fabdac5fa1520d3a0f588d717559dfe6c11f WHIRLPOOL b6a91090d44d05e2b999b0c82b624253a4a67321e96800201733b8aa7a731d5de2a7e63fc378100687560f0ff5526ef91bc5f485049ad006491b074855638f1a +AUX 4.5.18-r1/shorewallrc_new 1893 SHA256 f24c31f70e1de7b802d8fdb400833885df2a04a1fe15a0b53e828cd877995de1 SHA512 ad0b4aa60ef414ba279fc425995ebc088b7a6913ba4748cd205542fec7555ea6bd2cb31cb109d9eb11767ee259cda9aa2a05f979269a54c905bb59a3cc4c014e WHIRLPOOL d37ec5e41ba96a3e54ea6bcdb10f0623518949360b5553387669d2bdcbbd5d22836b176d566a21efcfafb854605cbde960b19a69b9c486a54ee5a659e78afb81 AUX 4.5.19/shorewall-lite.confd 160 SHA256 99aa9a4d3ae9f3bb590f5426c1266b6f7ee50a9e52f5a65b4cc56744a953982b SHA512 00e58351aade2ea9ade38373f3cacca3f10dcf4230b29e4a4e2b5d5d449ea9b78f40e2da7d94ed7c23980de2428198e3472399c6268662598b0fdbe008aff4b8 WHIRLPOOL 18532d1659a794d531548a91b0f096942fe5e82637ed05a9c5d49ed580d99a3e0c2807fd5ca5ea5c38139dc4c6f798b952433e59ee893f80240e5f4254435eda 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 @@ -12,16 +15,17 @@ DIST shorewall-docs-html-4.5.18.tar.bz2 4022828 SHA256 a98263059952ed50b826eb178 DIST shorewall-docs-html-4.5.19.tar.bz2 4033970 SHA256 7be6ebfa73a52151137201e098588ff6e67aa6fc21cf530a0fba564eeb8e77d1 SHA512 8ce06db614a6114cfe2c5c78acfaf111cba0ae5aa488df3879af6b5ecb20205ee453e308a7299e5df243a71067f93dcd8f4cf5faefbd8729ba11acee35cf34e0 WHIRLPOOL b55f90c6f9ca28cccddfb7bd899ce5815573db3ff4b4deabe454c6f30a9b01196ec4609d5251413d9761a28944a6acb19b6748c4dd41ea58fe2fa8da9845ed49 DIST 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 +EBUILD shorewall-lite-4.5.18-r1.ebuild 1743 SHA256 c92bb6267742c0c1e3afacc9d38b44e02e716f5a4550085ccd98722bd6ff2fbe SHA512 c6810af32f55abecf46151b44db3bb9f81eeb16e26a2cb42064ede4ea91398b7199aae5eff466cdecc7be523204230e7c97a9793bc6bbcc46e51040f06cff1c5 WHIRLPOOL c3006bdf25a1edc24ed2a5dd7b13752a335f25f0ae2d100344281ce0d3939fc9e08596822cb21206bf079e507c54d43b40c9a08e00028433227f68aff61ffd4f 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 21554 SHA256 e0ebdbce6e02ab6a3f01c889751ae7d658fb1d9ecfe4ff6485ada24c0dcf5640 SHA512 e38d098057403ad87fd4264538b4437fad0191fffffb99e9206b40f3aed48c7586a9ca620b6ddb799c1d42fe375633b7c1ac613fba061197f4960adefe3fa1b0 WHIRLPOOL 3768961ee10b545d2c4140c3cd43b328695bcfba32511260a307eb01aa4dfbc30515872dba8212d1777acc88d138ffb066631547a20059e6786c2bffbe7d3fdc +MISC ChangeLog 21854 SHA256 290d3ba2b5c2635e330ad7b15b2e87e7a788c688ce5af03d38b7156c48427c9b SHA512 a1f454444d1af61f3cae68bce1d6763bb8af4de7a88783a1e3f57958184daf25e9937d21fb4709cc6fb5951c02188526503b5f0830b7c937477ff06088084045 WHIRLPOOL 792ee8898a213f9a4ce6bc75e48cd85fdc1b3a0b16c77e3833db31f203a51926f44e7c894b953086ed6d32658d6efa812c7ebfca974fba3098a7a3a2fdb94108 MISC metadata.xml 335 SHA256 343bf632281281ef9049e8d52c7e6e3b5629373a74b5bf1a4354466a83871875 SHA512 92b629d285c6f27de039844c97220a2a16139adca066fc4ab6ce379ad8ac3133e689044037302ca176d4d13ecf001aae35e29b5342d5ba94036ae7b478460d7b WHIRLPOOL 6e05ad4629c63dec8e7c9bddce0d14a5c83515366e38be765b68e04e4dd958805343a7c0ecaf05fc4669f0d6a7f47cdb8c2cba0d71c20be431c0a8b5930cabf1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iL4EAREIAGYFAlIfmqBfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl +iL4EAREIAGYFAlI+8NFfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldEIwNjQwRkMzRTI1OTEyQUUwM0MwQjVBQUJC -ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsPa4wD/TqepWQmZ44K8k42tL0DQKOWe -rUN11EZUEd0sH6f6BVoA/2sMpBGpisfsqz+DvYNt5gG0AS/cVJjmbrD3+pm7Uc9v -=QRNr +ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsOyvwEAnRnY1UtJGpEtvk47KctQfpSt +GQZjDL1T3Fxowc5+m8IA/RiMknjMYLdqkx9A1nCG7Z5MRboafYb+i9UUoovH3kWG +=1IXy -----END PGP SIGNATURE----- diff --git a/net-firewall/shorewall-lite/files/4.5.18-r1/shorewall-lite.initd b/net-firewall/shorewall-lite/files/4.5.18-r1/shorewall-lite.initd new file mode 100644 index 000000000000..3511ba19408c --- /dev/null +++ b/net-firewall/shorewall-lite/files/4.5.18-r1/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.18-r1/shorewall-lite.initd,v 1.1 2013/09/22 13:17:02 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 start 1>/dev/null + eend $? +} + +stop() { + ebegin "Stopping shorewall-lite" + /sbin/shorewall-lite stop 1>/dev/null + eend $? +} + +restart() { + # shorewall comes with its own control script that includes a + # restart function, so refrain from calling svc_stop/svc_start + # here. Note that this comment is required to fix bug 55576; + # runscript.sh greps this script... (09 Jul 2004 agriffis) + + ebegin "Restarting shorewall-lite" + /sbin/shorewall-lite status 1>/dev/null + if [ $? != 0 ] ; then + svc_start + else + /sbin/shorewall-lite restart 1>/dev/null + fi + eend $? +} + +clear() { + # clear will remove all the rules and bring the system to an unfirewalled + # state. (21 Nov 2004 eldad) + + ebegin "Clearing all shorewall-lite rules and setting policy to ACCEPT" + /sbin/shorewall-lite 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 reset 1>/dev/null + eend $? +} diff --git a/net-firewall/shorewall-lite/files/4.5.18-r1/shorewall-lite.systemd b/net-firewall/shorewall-lite/files/4.5.18-r1/shorewall-lite.systemd new file mode 100644 index 000000000000..aeb89b5abccb --- /dev/null +++ b/net-firewall/shorewall-lite/files/4.5.18-r1/shorewall-lite.systemd @@ -0,0 +1,20 @@ +# +# The Shoreline Firewall (Shorewall) Packet Filtering Firewall - V4.4 +# +# Copyright 2011 Jonathan Underwood (jonathan.underwood@gmail.com) +# +[Unit] +Description=Shorewall IPv4 firewall (lite) +After=syslog.target +After=network.target + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=/etc/shorewall-lite +StandardOutput=syslog +ExecStart=/sbin/shorewall-lite $OPTIONS start +ExecStop=/sbin/shorewall-lite $OPTIONS stop + +[Install] +WantedBy=multi-user.target diff --git a/net-firewall/shorewall-lite/files/4.5.18-r1/shorewallrc_new b/net-firewall/shorewall-lite/files/4.5.18-r1/shorewallrc_new new file mode 100644 index 000000000000..0f9301cfeb49 --- /dev/null +++ b/net-firewall/shorewall-lite/files/4.5.18-r1/shorewallrc_new @@ -0,0 +1,22 @@ +# +# Gentoo Shorewall 4.5 rc file +# +BUILD= #Default is to detect the build system +HOST=linux #Generic Linux +PREFIX=@GENTOO_PORTAGE_EPREFIX@/usr #Top-level directory for shared files, libraries, etc. +SHAREDIR=${PREFIX}/share #Directory for arch-neutral files. +LIBEXECDIR=${PREFIX}/share #Directory for executable scripts. +PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory +CONFDIR=@GENTOO_PORTAGE_EPREFIX@/etc #Directory where subsystem configurations are installed +SBINDIR=@GENTOO_PORTAGE_EPREFIX@/sbin #Directory where system administration programs are installed +MANDIR=${PREFIX}/share/man #Directory where manpages are installed. +INITDIR=${CONFDIR}/init.d #Directory where SysV init scripts are installed. +INITFILE=${PRODUCT} #Name of the product's installed SysV init script +INITSOURCE=init.gentoo.sh #Name of the distributed file to be installed as the SysV init script +ANNOTATED= #If non-zero, annotated configuration files are installed +SYSTEMD=@GENTOO_PORTAGE_EPREFIX@/usr/lib/systemd/system #Directory where .service files are installed (systems running systemd only) +SYSCONFFILE= #Name of the distributed file to be installed in $SYSCONFDIR +SYSCONFDIR=${CONFDIR}/conf.d #Directory where SysV init parameter files are installed +SPARSE= #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR +VARLIB=@GENTOO_PORTAGE_EPREFIX@/var/lib #Directory where product variable data is stored. +VARDIR=${VARLIB}/${PRODUCT} #Directory where product variable data is stored. diff --git a/net-firewall/shorewall-lite/shorewall-lite-4.5.18-r1.ebuild b/net-firewall/shorewall-lite/shorewall-lite-4.5.18-r1.ebuild new file mode 100644 index 000000000000..c27135f80a75 --- /dev/null +++ b/net-firewall/shorewall-lite/shorewall-lite-4.5.18-r1.ebuild @@ -0,0 +1,60 @@ +# 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.18-r1.ebuild,v 1.1 2013/09/22 13:17:02 constanze Exp $ + +EAPI="5" + +inherit eutils prefix systemd versionator + +# Select version (stable, RC, Beta): +MY_PV_TREE=$(get_version_component_range 1-2) # for devel versions use "development/$(get_version_component_range 1-2)" +MY_PV_BASE=$(get_version_component_range 1-3) + +MY_PN="${PN/-lite/}" +MY_P="${MY_PN}-${MY_PV_BASE}" +MY_P_DOCS="${MY_PN}-docs-html-${PV}" + +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/${MY_PN}/${MY_PV_TREE}/${MY_P}/${P}.tar.bz2 + doc? ( http://www1.shorewall.net/pub/${MY_PN}/${MY_PV_TREE}/${MY_P}/${MY_P_DOCS}.tar.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc" + +RDEPEND="net-firewall/iptables + sys-apps/iproute2 + =net-firewall/shorewall-core-${PVR}" + +src_prepare() { + cp "${FILESDIR}"/${PVR}/shorewallrc_new "${S}"/shorewallrc.gentoo || die "Copying shorewallrc_new failed" + eprefixify "${S}"/shorewallrc.gentoo + + cp "${FILESDIR}"/${PVR}/${PN}.initd "${S}"/init.gentoo.sh || die "Copying shorewall.initd failed" + + epatch_user +} + +src_configure() { + :; +} + +src_compile() { + :; +} + +src_install() { + keepdir /var/lib/shorewall-lite + + cd "${WORKDIR}/${P}" + DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed" + systemd_newunit "${FILESDIR}"/${PVR}/shorewall-lite.systemd 'shorewall-lite.service' + + dodoc changelog.txt releasenotes.txt + if use doc; then + cd "${WORKDIR}/${MY_P_DOCS}" + dohtml -r * + fi +} diff --git a/net-firewall/shorewall/ChangeLog b/net-firewall/shorewall/ChangeLog index 23cdae38f827..e5d4362fddf4 100644 --- a/net-firewall/shorewall/ChangeLog +++ b/net-firewall/shorewall/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-firewall/shorewall # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall/ChangeLog,v 1.245 2013/08/29 18:58:57 constanze Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall/ChangeLog,v 1.246 2013/09/22 13:16:04 constanze Exp $ + +*shorewall-4.5.18-r1 (22 Sep 2013) + + 22 Sep 2013; Constanze Hausner <constanze@gentoo.org> + +files/4.5.18-r1/shorewall.conf-SUBSYSLOCK.patch, + +files/4.5.18-r1/shorewall.initd, +files/4.5.18-r1/shorewallrc_new, + +shorewall-4.5.18-r1.ebuild, +files/4.5.18-r1/shorewall.systemd: + Bugfix 459316 for 4.5.18; Thanks to Thomas D. 29 Aug 2013; Constanze Hausner <constanze@gentoo.org> metadata.xml: Added Thomas D. as new maintainer diff --git a/net-firewall/shorewall/Manifest b/net-firewall/shorewall/Manifest index a4f7847312c5..70d682bb5347 100644 --- a/net-firewall/shorewall/Manifest +++ b/net-firewall/shorewall/Manifest @@ -1,6 +1,10 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 +AUX 4.5.18-r1/shorewall.conf-SUBSYSLOCK.patch 700 SHA256 81ea118b54d7801eab04e70d21df0545be4c9680c2981de7ade727d8401363ca SHA512 2099951583f1fff3d90b7693c99ce61a77262ee2935a1b0ea3c81357c1c74874f49cd104d652e63b2ba9530db77b584c6ae0c33e7556bfd0c190d3765b15a993 WHIRLPOOL d26a2e9bdf8b04286dbfe7204a8e736b2c2464cd22efe10f5819bff84c5ee08621e35e934581fc5a112d9370f8307c1835b265b951ae573106d5ba730a1fd5fe +AUX 4.5.18-r1/shorewall.initd 2823 SHA256 94a766154c830d8c698ca4cd6c1b70243821efa940e89fa020a5733a19fb7850 SHA512 e72cd7ce37769d5c4b68d948955a9c36de9b9c842a0350d323aec2bbaa885f45da68ba8a8ea2c2e81cb14d4e6ace726f7b538632671db186f0858ad2b1dc886a WHIRLPOOL ccf43e58a61276a5ba55f8247d2d99fba79c623f521c10ef40cb77581689596419126134622a81268d2eef6aac6ce5b7ea4676cc889dc754d278dca7e0abe2b6 +AUX 4.5.18-r1/shorewall.systemd 450 SHA256 7af76981195a12e4cf0181f710d606e53d1964fd5cd033a4db489f8eb98a8495 SHA512 181c701b8aa6a18f21b578a536841616424bff96e220fb06de991d6c7ebd0209ce672d9a1f0b44976c2fe98b5638d0fcc5f6823c6f0bfef81afb2817609a7cc0 WHIRLPOOL af6666199890f43f81a2b67c89e3b06cf081ae4351e24925e92c8f24164be81f5d2fcedaafc262eda672733e809a1a2a4f3042375893eafa0bd58de28c1cb966 +AUX 4.5.18-r1/shorewallrc_new 1893 SHA256 f24c31f70e1de7b802d8fdb400833885df2a04a1fe15a0b53e828cd877995de1 SHA512 ad0b4aa60ef414ba279fc425995ebc088b7a6913ba4748cd205542fec7555ea6bd2cb31cb109d9eb11767ee259cda9aa2a05f979269a54c905bb59a3cc4c014e WHIRLPOOL d37ec5e41ba96a3e54ea6bcdb10f0623518949360b5553387669d2bdcbbd5d22836b176d566a21efcfafb854605cbde960b19a69b9c486a54ee5a659e78afb81 AUX 4.5.19/shorewall.conf-SUBSYSLOCK.patch 700 SHA256 81ea118b54d7801eab04e70d21df0545be4c9680c2981de7ade727d8401363ca SHA512 2099951583f1fff3d90b7693c99ce61a77262ee2935a1b0ea3c81357c1c74874f49cd104d652e63b2ba9530db77b584c6ae0c33e7556bfd0c190d3765b15a993 WHIRLPOOL d26a2e9bdf8b04286dbfe7204a8e736b2c2464cd22efe10f5819bff84c5ee08621e35e934581fc5a112d9370f8307c1835b265b951ae573106d5ba730a1fd5fe AUX 4.5.19/shorewall.confd 160 SHA256 99aa9a4d3ae9f3bb590f5426c1266b6f7ee50a9e52f5a65b4cc56744a953982b SHA512 00e58351aade2ea9ade38373f3cacca3f10dcf4230b29e4a4e2b5d5d449ea9b78f40e2da7d94ed7c23980de2428198e3472399c6268662598b0fdbe008aff4b8 WHIRLPOOL 18532d1659a794d531548a91b0f096942fe5e82637ed05a9c5d49ed580d99a3e0c2807fd5ca5ea5c38139dc4c6f798b952433e59ee893f80240e5f4254435eda AUX 4.5.19/shorewall.initd 2943 SHA256 5c0006795938b81df9a097b7b1495fd477383b933d91de358254f80a86e8e806 SHA512 597cb7e269eda3165c24c5ac5f57e97a716e0d373abdd88cd55ac877bed5551553b89236105b5d657c10571d9f70d5ff7c83e71667c7446405a06be46ba679e3 WHIRLPOOL 045bc29eba691c1a760a566d1b58c211527d2f24f4b3750b07f0b6731a9ab9f750cda118eaacea42abc231358548c73247fd3de971544ca5ea94510d3d4c9b76 @@ -13,16 +17,17 @@ DIST shorewall-4.5.18.tar.bz2 470187 SHA256 81bbcb2cc24d0b54769fb153cb472d78e6ee DIST shorewall-4.5.19.tar.bz2 475805 SHA256 91368877973411c5a6228a22a5d5bcac03aca42cc56c3cd95a3775ca964d0756 SHA512 0c3346a0f15b25051102a9a9d3e0d08a8bea3138c541fc32987278e569bb2f58c8d147b61cb095b694935c799207c5c6409c66ffd7667f07ad88bc60db68845e WHIRLPOOL 950d972b0570cc4586fb7b39a3017b37a2261ed08228a9032f6868258595a28236d3f36f8461a3404f91fb7a3972f57054af0b7c33f2427d7e1778219d0e45da 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 +EBUILD shorewall-4.5.18-r1.ebuild 1808 SHA256 2e8aae1f6eba7d1d47140edf43db5b7c3904a4a7e4a89f929d5ae57f9bee2ad9 SHA512 154336d1c055f0d668eef994d1a30f16734ec721ce424a55e63c45d4dffc4171dd97e7f2ff183e88c549b09e84889e0008391691833137bd252a257ed87815f0 WHIRLPOOL c14b1dce3f24924ec0dfd41fedf76eae9ee2bcd408a5ecac6cd7aa8746e9c6552e5f3c459d15d0272bbef4620d3856bb58353db28b04de402261336ee49c7996 EBUILD shorewall-4.5.18.ebuild 1506 SHA256 ea8ec1f2f64ba52b3e356bd55442de01b0e45045bc653ae48151cc4c6a645ba2 SHA512 03920b6d37d6a243d6d39bfe5a5108aeae4c7a691138ce6b73d67de35dd444da6a221c268daa65a9f761dbc2cefb1189784a901a44e54aa77b9cd7260c4f40d7 WHIRLPOOL b1a30462e723dcbbeb2d4232066d5dd0739ea8499a3a8bc672cf8171804f025475ecbde8ed793ee6338602aa50711dbf34f3f26f609fc25a269be1f1009416e5 EBUILD shorewall-4.5.19.ebuild 2972 SHA256 b75dd04f4fc1df875f1bb1f9177795438844f0c930f966e85de7b65c3d5de7e5 SHA512 48d5f0db9fcb527dca04c4d5c6c1afd5baafe8d92357718437d26b538da0d5d86deca1beb10c6db6321651c2564d524d7da1554c5c9c397d24e21407a057c596 WHIRLPOOL c1ee402589f46e3e40dedee1bd562c1195b8226206ac5e01bc7cfb7254af1a48d3c3f5e0df8045f1065120adbf3407a8da174ada71e50fe8a6f40ae50769a28b -MISC ChangeLog 34803 SHA256 cb068a7aee3bef42384fbc39beba13e130b2e07d9e20a949e634481192ffa193 SHA512 e8adc3bdc60e4d316f19067ac5be4f18f9db95a75cee5bdb867bc6d99a95a6dc61c0b33205937dc2354788674a9fcf7f2476f07b4a37bb04c806022d48346c89 WHIRLPOOL f68f04a049da7d88b5d1b4b4afee96e9acbdb22117866d5db98dd87f2216f5cbf5c9edc40c9633521ca2309678cacd7e13c59822753d505681d4960c972f8eb8 +MISC ChangeLog 35133 SHA256 00197226f6f2308304e2fa547c6f4846ec71145c862d8a461c7bf5469f1dd3b0 SHA512 52e735e185d55a050ce12db4b0c03b65d541ba429f29c43bd9868cefac0089f977ea9f9cf4d731567ba8767f6e5c387bd7ccc44518e4c3aca9ffb3c8ab8f853e WHIRLPOOL 96b247a79cf24f81ad9bfc4f285ca6e157b23e87889f7b8176febbd936af89384f4d7f1df2a8b01a4670e6fd52f59f47b5ee66aa9761108285be0c9d10cd0063 MISC metadata.xml 361 SHA256 ea12ad6e474c28d25b9203225c99d9a0336bd606fd3c2cd260c11d4982712357 SHA512 da1d88bdae3187e1c5d63b90da4fb2798f0a3f79558a57eb5ae0fab42eaa7268bfbd4102a870cbff73aa83c64bc1b10c1c7f71c01ee29f64772f7635e7da0ac9 WHIRLPOOL ae0b57811bf7617fb9cf3840a2e182d334a8303fda841c879c2791b893bd5515cae72fc0bb38f6554045bb531774798539f80b474a6152ebc04c31e5bc2f0464 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iL4EAREIAGYFAlIfmftfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl +iL4EAREIAGYFAlI+8JdfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldEIwNjQwRkMzRTI1OTEyQUUwM0MwQjVBQUJC -ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsPHCwD/TRaJhev6AAWORWLXtPvCA91f -/yKNhuswdp/DMmfApOoA/0Zf916702zMDwGoB7iWzQjPyhRFoGMh6tUX2zIBViFl -=Mdac +ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsP1DgD+KytvHe98KBevkJ40TEMP3GXj +zy3p/3e89ysYqf6MGY8BAJYC1xmpzjxG8SS47fX1lR1LCXRzs4SDCGJXEXF7UK7H +=75Wb -----END PGP SIGNATURE----- diff --git a/net-firewall/shorewall/files/4.5.18-r1/shorewall.conf-SUBSYSLOCK.patch b/net-firewall/shorewall/files/4.5.18-r1/shorewall.conf-SUBSYSLOCK.patch new file mode 100644 index 000000000000..37a080adf999 --- /dev/null +++ b/net-firewall/shorewall/files/4.5.18-r1/shorewall.conf-SUBSYSLOCK.patch @@ -0,0 +1,22 @@ +--- configfiles/shorewall.conf 2013-06-24 22:07:38.000000000 +0200 ++++ configfiles/shorewall.conf.new 2013-07-01 15:50:54.747711444 +0200 +@@ -85,7 +85,7 @@ + + SHOREWALL_SHELL=/bin/sh + +-SUBSYSLOCK=/var/lock/subsys/shorewall ++SUBSYSLOCK=/run/lock/shorewall + + TC= + +--- configfiles/shorewall.conf.annotated 2013-06-27 20:32:22.000000000 +0200 ++++ configfiles/shorewall.conf.annotated.new 2013-07-01 15:51:38.448332964 +0200 +@@ -444,7 +444,7 @@ + # or specified as a null value, /bin/sh is assumed. Using a light-weight + # shell such as ash or dash can significantly improve performance. + # +-SUBSYSLOCK=/var/lock/subsys/shorewall ++SUBSYSLOCK=/run/lock/shorewall + # + # SUBSYSLOCK=[pathname] + # diff --git a/net-firewall/shorewall/files/4.5.18-r1/shorewall.initd b/net-firewall/shorewall/files/4.5.18-r1/shorewall.initd new file mode 100644 index 000000000000..ae793fa6aa14 --- /dev/null +++ b/net-firewall/shorewall/files/4.5.18-r1/shorewall.initd @@ -0,0 +1,107 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall/files/4.5.18-r1/shorewall.initd,v 1.1 2013/09/22 13:16:03 constanze Exp $ + +description='The Shoreline Firewall, more commonly known as "Shorewall", is' +description="${description} a high-level tool for configuring Netfilter." + +extra_commands="check clear" +extra_started_commands="refresh reset" + +description_check="Checks if the configuration will compile or not." + +description_clear="Clear will remove all rules and chains installed by" +description_clear="${description_clear} Shorewall. The firewall is then" +description_clear="${description_clear} wide open and unprotected." + +description_refresh="The mangle table will be refreshed along with the" +description_refresh="${description_refresh} blacklist chain (if any)." + +description_reset="All the packet and byte counters in the firewall are reset." + +depend() { + need net + provide firewall + after ulogd +} + +status() { + local _retval + /sbin/shorewall 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" + /sbin/shorewall start 1>/dev/null + eend $? +} + +stop() { + ebegin "Stopping shorewall" + /sbin/shorewall stop 1>/dev/null + eend $? +} + +restart() { + # shorewall comes with its own control script that includes a + # restart function, so refrain from calling svc_stop/svc_start + # here. Note that this comment is required to fix bug 55576; + # runscript.sh greps this script... (09 Jul 2004 agriffis) + + ebegin "Restarting shorewall" + /sbin/shorewall status 1>/dev/null + if [ $? != 0 ] ; then + svc_start + else + /sbin/shorewall restart 1>/dev/null + fi + eend $? +} + +clear() { + # clear will remove all the rules and bring the system to an unfirewalled + # state. (21 Nov 2004 eldad) + + ebegin "Clearing all shorewall rules and setting policy to ACCEPT" + /sbin/shorewall clear 1>/dev/null + eend $? +} + +reset() { + # reset the packet and byte counters in the firewall + + ebegin "Resetting the packet and byte counters in shorewall" + /sbin/shorewall reset 1>/dev/null + eend $? +} + +refresh() { + # refresh the rules involving the broadcast addresses of firewall + # interfaces, the black list, traffic control rules and + # ECN control rules + + ebegin "Refreshing shorewall rules" + /sbin/shorewall refresh 1>/dev/null + eend $? +} + +check() { + # perform cursory validation of the zones, interfaces, hosts, rules + # and policy files. CAUTION: does not parse and validate the generated + # iptables commands. + + ebegin "Checking shorewall configuration" + /sbin/shorewall check 1>/dev/null + eend $? +} diff --git a/net-firewall/shorewall/files/4.5.18-r1/shorewall.systemd b/net-firewall/shorewall/files/4.5.18-r1/shorewall.systemd new file mode 100644 index 000000000000..bd4638d5dfaf --- /dev/null +++ b/net-firewall/shorewall/files/4.5.18-r1/shorewall.systemd @@ -0,0 +1,20 @@ +# +# The Shoreline Firewall (Shorewall) Packet Filtering Firewall - V4.4 +# +# Copyright 2011 Jonathan Underwood (jonathan.underwood@gmail.com) +# +[Unit] +Description=Shorewall IPv4 firewall +After=syslog.target +After=network.target + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=/etc/shorewall +StandardOutput=syslog +ExecStart=/sbin/shorewall $OPTIONS start +ExecStop=/sbin/shorewall $OPTIONS stop + +[Install] +WantedBy=multi-user.target diff --git a/net-firewall/shorewall/files/4.5.18-r1/shorewallrc_new b/net-firewall/shorewall/files/4.5.18-r1/shorewallrc_new new file mode 100644 index 000000000000..0f9301cfeb49 --- /dev/null +++ b/net-firewall/shorewall/files/4.5.18-r1/shorewallrc_new @@ -0,0 +1,22 @@ +# +# Gentoo Shorewall 4.5 rc file +# +BUILD= #Default is to detect the build system +HOST=linux #Generic Linux +PREFIX=@GENTOO_PORTAGE_EPREFIX@/usr #Top-level directory for shared files, libraries, etc. +SHAREDIR=${PREFIX}/share #Directory for arch-neutral files. +LIBEXECDIR=${PREFIX}/share #Directory for executable scripts. +PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory +CONFDIR=@GENTOO_PORTAGE_EPREFIX@/etc #Directory where subsystem configurations are installed +SBINDIR=@GENTOO_PORTAGE_EPREFIX@/sbin #Directory where system administration programs are installed +MANDIR=${PREFIX}/share/man #Directory where manpages are installed. +INITDIR=${CONFDIR}/init.d #Directory where SysV init scripts are installed. +INITFILE=${PRODUCT} #Name of the product's installed SysV init script +INITSOURCE=init.gentoo.sh #Name of the distributed file to be installed as the SysV init script +ANNOTATED= #If non-zero, annotated configuration files are installed +SYSTEMD=@GENTOO_PORTAGE_EPREFIX@/usr/lib/systemd/system #Directory where .service files are installed (systems running systemd only) +SYSCONFFILE= #Name of the distributed file to be installed in $SYSCONFDIR +SYSCONFDIR=${CONFDIR}/conf.d #Directory where SysV init parameter files are installed +SPARSE= #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR +VARLIB=@GENTOO_PORTAGE_EPREFIX@/var/lib #Directory where product variable data is stored. +VARDIR=${VARLIB}/${PRODUCT} #Directory where product variable data is stored. diff --git a/net-firewall/shorewall/shorewall-4.5.18-r1.ebuild b/net-firewall/shorewall/shorewall-4.5.18-r1.ebuild new file mode 100644 index 000000000000..2db3d46070e6 --- /dev/null +++ b/net-firewall/shorewall/shorewall-4.5.18-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall/shorewall-4.5.18-r1.ebuild,v 1.1 2013/09/22 13:16:04 constanze Exp $ + +EAPI="5" + +inherit eutils prefix systemd versionator + +# Select version (stable, RC, Beta): +MY_PV_TREE=$(get_version_component_range 1-2) # for devel versions use "development/$(get_version_component_range 1-2)" +MY_PV_BASE=$(get_version_component_range 1-3) + +MY_P="${PN}-${MY_PV_BASE}" +MY_P_DOCS="${P/${PN}/${PN}-docs-html}" + +DESCRIPTION="Shoreline Firewall is an iptables-based firewall for Linux." +HOMEPAGE="http://www.shorewall.net/" +SRC_URI="http://www1.shorewall.net/pub/${PN}/${MY_PV_TREE}/${MY_P}/${P}.tar.bz2 + doc? ( http://www1.shorewall.net/pub/${PN}/${MY_PV_TREE}/${MY_P}/${MY_P_DOCS}.tar.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="doc" + +DEPEND=">=net-firewall/iptables-1.2.4 + sys-apps/iproute2[-minimal] + dev-lang/perl + =net-firewall/shorewall-core-${PVR}" +RDEPEND="${DEPEND}" + +src_prepare() { + cp "${FILESDIR}"/${PVR}/shorewallrc_new "${S}"/shorewallrc.gentoo || die "Copying shorewallrc_new failed" + eprefixify "${S}"/shorewallrc.gentoo + + cp "${FILESDIR}"/${PVR}/${PN}.initd "${S}"/init.gentoo.sh || die "Copying shorewall.initd failed" + + epatch "${FILESDIR}"/${PVR}/shorewall.conf-SUBSYSLOCK.patch + epatch_user +} + +src_configure() { + :; +} + +src_compile() { + :; +} + +src_install() { + keepdir /var/lib/shorewall + + cd "${WORKDIR}/${P}" + DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed" + systemd_newunit "${FILESDIR}"/${PVR}/shorewall.systemd 'shorewall.service' + + dodoc changelog.txt releasenotes.txt + if use doc; then + dodoc -r Samples + cd "${WORKDIR}/${MY_P_DOCS}" + dohtml -r * + fi +} diff --git a/net-firewall/shorewall6-lite/ChangeLog b/net-firewall/shorewall6-lite/ChangeLog index 7378c572b6e3..5bdd8416a282 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.64 2013/08/29 19:04:47 constanze Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6-lite/ChangeLog,v 1.65 2013/09/22 13:19:08 constanze Exp $ + +*shorewall6-lite-4.5.18-r1 (22 Sep 2013) + + 22 Sep 2013; Constanze Hausner <constanze@gentoo.org> + +files/4.5.18-r1/shorewall6-lite.initd, + +files/4.5.18-r1/shorewall6-lite.systemd, +files/4.5.18-r1/shorewallrc_new, + +shorewall6-lite-4.5.18-r1.ebuild: + Bugfix 459316 for 4.5.18; Thanks to Thomas D. 29 Aug 2013; Constanze Hausner <constanze@gentoo.org> metadata.xml: Added Thomas D. as new maintainer diff --git a/net-firewall/shorewall6-lite/Manifest b/net-firewall/shorewall6-lite/Manifest index 128f838a40ce..7722a948bdd6 100644 --- a/net-firewall/shorewall6-lite/Manifest +++ b/net-firewall/shorewall6-lite/Manifest @@ -1,6 +1,9 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 +AUX 4.5.18-r1/shorewall6-lite.initd 2187 SHA256 f09a31e2c7595411b85e4e17d6970d24634cfd75b21393b6d725eb9a727723b0 SHA512 55291fcb03c8751b779f383dfff719d7a8c2f4754015b8a5696179349b95cc8883b3df0699f1cea6fb1a7864b2271065e3804a69471d1067d7f8d5aaef340d08 WHIRLPOOL 5849838cf3f32c3da921ffec92c1f5768f6f5f0ebe10d68064ef0466b3ec8224bd959e079cde76def2ef5f286d1ae48b53ec4cb9efac8be5df500399d5ba3346 +AUX 4.5.18-r1/shorewall6-lite.systemd 475 SHA256 95dec92e61eda3543ada0bc05c9eecf87ca5dcc449448b5c04dbcf72045006cb SHA512 a9a258b0b430a88bcf6d6ccec56ded96422c0c52574cd45b552c04f4c1b5758476ea708d13b517dab686d859f4a503a348de6bd2acb5e60797172e502e387831 WHIRLPOOL c38c053ade59895c5605182241e154ab2624187a8367f7d371111ccdf5f4145d32b3c3bc358fb590d85cd044ad1c76a7f49af57d6ea6ec71fa25f773b644fd0f +AUX 4.5.18-r1/shorewallrc_new 1893 SHA256 f24c31f70e1de7b802d8fdb400833885df2a04a1fe15a0b53e828cd877995de1 SHA512 ad0b4aa60ef414ba279fc425995ebc088b7a6913ba4748cd205542fec7555ea6bd2cb31cb109d9eb11767ee259cda9aa2a05f979269a54c905bb59a3cc4c014e WHIRLPOOL d37ec5e41ba96a3e54ea6bcdb10f0623518949360b5553387669d2bdcbbd5d22836b176d566a21efcfafb854605cbde960b19a69b9c486a54ee5a659e78afb81 AUX 4.5.19/shorewall6-lite.confd 160 SHA256 99aa9a4d3ae9f3bb590f5426c1266b6f7ee50a9e52f5a65b4cc56744a953982b SHA512 00e58351aade2ea9ade38373f3cacca3f10dcf4230b29e4a4e2b5d5d449ea9b78f40e2da7d94ed7c23980de2428198e3472399c6268662598b0fdbe008aff4b8 WHIRLPOOL 18532d1659a794d531548a91b0f096942fe5e82637ed05a9c5d49ed580d99a3e0c2807fd5ca5ea5c38139dc4c6f798b952433e59ee893f80240e5f4254435eda 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 @@ -12,16 +15,17 @@ DIST shorewall-docs-html-4.5.18.tar.bz2 4022828 SHA256 a98263059952ed50b826eb178 DIST shorewall-docs-html-4.5.19.tar.bz2 4033970 SHA256 7be6ebfa73a52151137201e098588ff6e67aa6fc21cf530a0fba564eeb8e77d1 SHA512 8ce06db614a6114cfe2c5c78acfaf111cba0ae5aa488df3879af6b5ecb20205ee453e308a7299e5df243a71067f93dcd8f4cf5faefbd8729ba11acee35cf34e0 WHIRLPOOL b55f90c6f9ca28cccddfb7bd899ce5815573db3ff4b4deabe454c6f30a9b01196ec4609d5251413d9761a28944a6acb19b6748c4dd41ea58fe2fa8da9845ed49 DIST shorewall6-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 +EBUILD shorewall6-lite-4.5.18-r1.ebuild 1848 SHA256 3e80de99a3599aba29153bebce0c33e36167648193f89d306f23f38c9da98cbe SHA512 15f7bcaa4260223cc10a2a4e19bfa129f679bf57a3792f1d38514b2cdcbd84b6371247e4556b96404c12fb610a17479596df219fbede98caf812fb7d518f5469 WHIRLPOOL 4b3decd5bf36dcc0652f603469b3bffd3fc4147c67c4b67bfc3b092fa9153d51075573ee3241adf54594f74bebb83ab32b952d961a57007b3a4a7d7707d40659 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 11229 SHA256 730f89ecf3dba3bfd29517a63c594b2250be6068ace959fb1034dd1e198b28b1 SHA512 5f87a17415e65ce175eb0d92b6c88bb5250277586d45d3a1b950f74d60ab53b4f622d964b2c7b1deda4e12ffd214a019441073caeaf93accb0414c445b48c380 WHIRLPOOL ea5f85a80ac33a66c9c707ec15c3fd4c94c401dfa8fae319f99c609e973e780f13c1d3b551ad6ed4ccec938b6b72a6e75e93a0304fe42d72ef329ac7792d6000 +MISC ChangeLog 11533 SHA256 362f713ba46d7001494f248c8f12007eb624584b7846952fe26debd4002b6a5b SHA512 ec4e09af989cc942e6153b08690e4f7be2893a46ff2bc0dcf501861a9c3267258b193e13ab8cdab39c689159bccb197d0b22a487c2a5b0a93fcfdf3265ddefe4 WHIRLPOOL d483b12ff34e84c2d51174b4835f15f18cfcb7093d8da9636d55e01bed75b0b2d309da709f555d0a7501cd17995c631465df37bed168038e5e51ccfa501b2baf MISC metadata.xml 361 SHA256 ea12ad6e474c28d25b9203225c99d9a0336bd606fd3c2cd260c11d4982712357 SHA512 da1d88bdae3187e1c5d63b90da4fb2798f0a3f79558a57eb5ae0fab42eaa7268bfbd4102a870cbff73aa83c64bc1b10c1c7f71c01ee29f64772f7635e7da0ac9 WHIRLPOOL ae0b57811bf7617fb9cf3840a2e182d334a8303fda841c879c2791b893bd5515cae72fc0bb38f6554045bb531774798539f80b474a6152ebc04c31e5bc2f0464 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iL4EAREIAGYFAlIfm1BfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl +iL4EAREIAGYFAlI+8U9fFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldEIwNjQwRkMzRTI1OTEyQUUwM0MwQjVBQUJC -ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsPSVQD/VXsSKGdkGqItsKaHvP7Engkd -eoVy1Hya4r6feQ6BpaIBAIXLNIuWJsg7Os2vqqesujB8XwDz7JoyKwXkkh0HI0F5 -=AtiW +ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsN9/wEAgsZc12IOWBfDOi5p4XYvuaoC +zAoPwe8LpOG76HtwZKoA/3zVUE6pR7e2i+UBbl9l/dqu/3DPKbo8z4X7b8uoSEtb +=Dubs -----END PGP SIGNATURE----- diff --git a/net-firewall/shorewall6-lite/files/4.5.18-r1/shorewall6-lite.initd b/net-firewall/shorewall6-lite/files/4.5.18-r1/shorewall6-lite.initd new file mode 100644 index 000000000000..3f2e01f77e35 --- /dev/null +++ b/net-firewall/shorewall6-lite/files/4.5.18-r1/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.18-r1/shorewall6-lite.initd,v 1.1 2013/09/22 13:19:08 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 start 1>/dev/null + eend $? +} + +stop() { + ebegin "Stopping shorewall6-lite" + /sbin/shorewall6-lite stop 1>/dev/null + eend $? +} + +restart() { + # shorewall comes with its own control script that includes a + # restart function, so refrain from calling svc_stop/svc_start + # here. Note that this comment is required to fix bug 55576; + # runscript.sh greps this script... (09 Jul 2004 agriffis) + + ebegin "Restarting shorewall6-lite" + /sbin/shorewall6-lite status 1>/dev/null + if [ $? != 0 ] ; then + svc_start + else + /sbin/shorewall6-lite restart 1>/dev/null + fi + eend $? +} + +clear() { + # clear will remove all the rules and bring the system to an unfirewalled + # state. (21 Nov 2004 eldad) + + ebegin "Clearing all shorewall6-lite rules and setting policy to ACCEPT" + /sbin/shorewall6-lite 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 reset 1>/dev/null + eend $? +} diff --git a/net-firewall/shorewall6-lite/files/4.5.18-r1/shorewall6-lite.systemd b/net-firewall/shorewall6-lite/files/4.5.18-r1/shorewall6-lite.systemd new file mode 100644 index 000000000000..c34c688b137d --- /dev/null +++ b/net-firewall/shorewall6-lite/files/4.5.18-r1/shorewall6-lite.systemd @@ -0,0 +1,20 @@ +# +# The Shoreline Firewall (Shorewall) Packet Filtering Firewall - V4.4 +# +# Copyright 2011 Jonathan Underwood (jonathan.underwood@gmail.com) +# +[Unit] +Description=Shorewall IPv6 firewall (lite) +After=syslog.target +After=network.target + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=/etc/shorewall6-lite +StandardOutput=syslog +ExecStart=/sbin/shorewall6-lite $OPTIONS start +ExecStop=/sbin/shorewall6-lite $OPTIONS stop + +[Install] +WantedBy=multi-user.target diff --git a/net-firewall/shorewall6-lite/files/4.5.18-r1/shorewallrc_new b/net-firewall/shorewall6-lite/files/4.5.18-r1/shorewallrc_new new file mode 100644 index 000000000000..0f9301cfeb49 --- /dev/null +++ b/net-firewall/shorewall6-lite/files/4.5.18-r1/shorewallrc_new @@ -0,0 +1,22 @@ +# +# Gentoo Shorewall 4.5 rc file +# +BUILD= #Default is to detect the build system +HOST=linux #Generic Linux +PREFIX=@GENTOO_PORTAGE_EPREFIX@/usr #Top-level directory for shared files, libraries, etc. +SHAREDIR=${PREFIX}/share #Directory for arch-neutral files. +LIBEXECDIR=${PREFIX}/share #Directory for executable scripts. +PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory +CONFDIR=@GENTOO_PORTAGE_EPREFIX@/etc #Directory where subsystem configurations are installed +SBINDIR=@GENTOO_PORTAGE_EPREFIX@/sbin #Directory where system administration programs are installed +MANDIR=${PREFIX}/share/man #Directory where manpages are installed. +INITDIR=${CONFDIR}/init.d #Directory where SysV init scripts are installed. +INITFILE=${PRODUCT} #Name of the product's installed SysV init script +INITSOURCE=init.gentoo.sh #Name of the distributed file to be installed as the SysV init script +ANNOTATED= #If non-zero, annotated configuration files are installed +SYSTEMD=@GENTOO_PORTAGE_EPREFIX@/usr/lib/systemd/system #Directory where .service files are installed (systems running systemd only) +SYSCONFFILE= #Name of the distributed file to be installed in $SYSCONFDIR +SYSCONFDIR=${CONFDIR}/conf.d #Directory where SysV init parameter files are installed +SPARSE= #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR +VARLIB=@GENTOO_PORTAGE_EPREFIX@/var/lib #Directory where product variable data is stored. +VARDIR=${VARLIB}/${PRODUCT} #Directory where product variable data is stored. diff --git a/net-firewall/shorewall6-lite/shorewall6-lite-4.5.18-r1.ebuild b/net-firewall/shorewall6-lite/shorewall6-lite-4.5.18-r1.ebuild new file mode 100644 index 000000000000..b17cf51f3e80 --- /dev/null +++ b/net-firewall/shorewall6-lite/shorewall6-lite-4.5.18-r1.ebuild @@ -0,0 +1,66 @@ +# 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.18-r1.ebuild,v 1.1 2013/09/22 13:19:08 constanze Exp $ + +EAPI="5" + +inherit eutils linux-info prefix systemd versionator + +# Select version (stable, RC, Beta): +MY_PV_TREE=$(get_version_component_range 1-2) # for devel versions use "development/$(get_version_component_range 1-2)" +MY_PV_BASE=$(get_version_component_range 1-3) + +MY_PN="${PN/6-lite/}" +MY_P="${MY_PN}-${MY_PV_BASE}" +MY_P_DOCS="${MY_PN}-docs-html-${PV}" + +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/${MY_PN}/${MY_PV_TREE}/${MY_P}/${P}.tar.bz2 + doc? ( http://www1.shorewall.net/pub/${MY_PN}/${MY_PV_TREE}/${MY_P}/${MY_P_DOCS}.tar.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~sparc ~x86" +IUSE="doc" + +RDEPEND=">=net-firewall/iptables-1.4.0 + sys-apps/iproute2 + =net-firewall/shorewall-core-${PVR}" + +pkg_pretend() { + if kernel_is lt 2 6 25 ; then + die "${PN} requires at least kernel 2.6.25." + fi +} + +src_prepare() { + cp "${FILESDIR}"/${PVR}/shorewallrc_new "${S}"/shorewallrc.gentoo || die "Copying shorewallrc_new failed" + eprefixify "${S}"/shorewallrc.gentoo + + cp "${FILESDIR}"/${PVR}/${PN}.initd "${S}"/init.gentoo.sh || die "Copying shorewall.initd failed" + + epatch_user +} + +src_configure() { + :; +} + +src_compile() { + :; +} + +src_install() { + keepdir /var/lib/${PN} + + cd "${WORKDIR}/${P}" + DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed" + systemd_newunit "${FILESDIR}"/${PVR}/shorewall6-lite.systemd 'shorewall6-lite.service' + + dodoc changelog.txt releasenotes.txt + if use doc; then + cd "${WORKDIR}/${MY_P_DOCS}" + dohtml -r * + fi +} diff --git a/net-firewall/shorewall6/ChangeLog b/net-firewall/shorewall6/ChangeLog index fca009f1ac1b..9aee7989ab39 100644 --- a/net-firewall/shorewall6/ChangeLog +++ b/net-firewall/shorewall6/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for net-firewall/shorewall6 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/ChangeLog,v 1.85 2013/08/29 19:03:41 constanze Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/ChangeLog,v 1.86 2013/09/22 13:18:09 constanze Exp $ + +*shorewall6-4.5.18-r1 (22 Sep 2013) + + 22 Sep 2013; Constanze Hausner <constanze@gentoo.org> + +files/4.5.18-r1/shorewall6.conf-SUBSYSLOCK.patch, + +files/4.5.18-r1/shorewall6.initd, +files/4.5.18-r1/shorewallrc_new, + +shorewall6-4.5.18-r1.ebuild, +files/4.5.18-r1/shorewall6.systemd: + Bugfix 459316 for 4.5.18; Thanks to Thomas D. 29 Aug 2013; Constanze Hausner <constanze@gentoo.org> metadata.xml: Added Thomas D. as new maintainer diff --git a/net-firewall/shorewall6/Manifest b/net-firewall/shorewall6/Manifest index 3e0b499fce41..3352bc57bcdd 100644 --- a/net-firewall/shorewall6/Manifest +++ b/net-firewall/shorewall6/Manifest @@ -1,6 +1,10 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 +AUX 4.5.18-r1/shorewall6.conf-SUBSYSLOCK.patch 709 SHA256 6fcf06104fade54ae601b540dc2e6a1c282233742f6ee6a68b8d8599e8fd68c5 SHA512 16a20ac4db95f1d4658038553d816a5158a23ab241cce7bb5103f48d5e83bf438814cb26bdaac62d4733e41653c557dffb83a3c15ec11e7346b3d6ac355ba8e6 WHIRLPOOL bb2dfdfea1df96e0a72c0c9ae4a5b7a1f151de4d83513f97f716e9f22c354cc02f23b063940fa3a602dbf69bde45b7a2d0945012b21ec71de307275a5ad2b046 +AUX 4.5.18-r1/shorewall6.initd 2844 SHA256 ce1e60d23ecce4a2c6d9e0829c152411439c275e1eafc1b8a8e834e5da72f3f7 SHA512 a8d03bf3652a6488bb7d5bc8ecaa9febeefac1b7d1f2e86ab52a7de79a8d01ac70b243cfe626c244e4ffbcf64de13dfd3500d5222009b6955636303433e22e6a WHIRLPOOL dd2957be764ba457b6e537de0337b39fb2ebbf6061f1da84c6939f2a5b5ed58067ce446ca248e74274ef2a60fa9c002df7b6e576bc70a5d1302df8f5985768a5 +AUX 4.5.18-r1/shorewall6.systemd 453 SHA256 9e1e5d7657591a395b3f66849f323e00226c0bf739e7c875b9787b43cc64d11c SHA512 a7cfe34c106bdc2d50cceb607d92888f4c6b0d618d5dfa96f0c3a78689ab1f2092db609427393718495ed6753f89a4279e6883d44743da6bdeb1da3a111b1da3 WHIRLPOOL bd4253a8b58975674bd40b0606efcbcbdc6facf8ecb48e9c14792f96fa1fe49eb84fb05f89e7a54b1cd01d7f9b4463894670738b3b0b0ad2b7a01fbadc64ade6 +AUX 4.5.18-r1/shorewallrc_new 1893 SHA256 f24c31f70e1de7b802d8fdb400833885df2a04a1fe15a0b53e828cd877995de1 SHA512 ad0b4aa60ef414ba279fc425995ebc088b7a6913ba4748cd205542fec7555ea6bd2cb31cb109d9eb11767ee259cda9aa2a05f979269a54c905bb59a3cc4c014e WHIRLPOOL d37ec5e41ba96a3e54ea6bcdb10f0623518949360b5553387669d2bdcbbd5d22836b176d566a21efcfafb854605cbde960b19a69b9c486a54ee5a659e78afb81 AUX 4.5.19/shorewall6.conf-SUBSYSLOCK.patch 709 SHA256 6fcf06104fade54ae601b540dc2e6a1c282233742f6ee6a68b8d8599e8fd68c5 SHA512 16a20ac4db95f1d4658038553d816a5158a23ab241cce7bb5103f48d5e83bf438814cb26bdaac62d4733e41653c557dffb83a3c15ec11e7346b3d6ac355ba8e6 WHIRLPOOL bb2dfdfea1df96e0a72c0c9ae4a5b7a1f151de4d83513f97f716e9f22c354cc02f23b063940fa3a602dbf69bde45b7a2d0945012b21ec71de307275a5ad2b046 AUX 4.5.19/shorewall6.confd 160 SHA256 99aa9a4d3ae9f3bb590f5426c1266b6f7ee50a9e52f5a65b4cc56744a953982b SHA512 00e58351aade2ea9ade38373f3cacca3f10dcf4230b29e4a4e2b5d5d449ea9b78f40e2da7d94ed7c23980de2428198e3472399c6268662598b0fdbe008aff4b8 WHIRLPOOL 18532d1659a794d531548a91b0f096942fe5e82637ed05a9c5d49ed580d99a3e0c2807fd5ca5ea5c38139dc4c6f798b952433e59ee893f80240e5f4254435eda AUX 4.5.19/shorewall6.initd 2964 SHA256 9ab8d2afe04ac64af42bd515ce54f39bc93c44a0f6e943e723ddcaf92facd4bb SHA512 80ca72cea77f9274ef4de7e44515072ff5d2267757cef3605b61376d37484234c99377623fa49ced8c43a983af1dcc61afb23807e71f8a38a2f3819f5e9a60a2 WHIRLPOOL b5bf30f8af4319b01db595aab9290303802a347ac2cd439f89224e2f3f04096ffb77a1f5af04a4b688a7c0b314769269a388c4b2e93758f952fa8f04cf38c9b8 @@ -13,16 +17,17 @@ DIST shorewall-docs-html-4.5.18.tar.bz2 4022828 SHA256 a98263059952ed50b826eb178 DIST shorewall-docs-html-4.5.19.tar.bz2 4033970 SHA256 7be6ebfa73a52151137201e098588ff6e67aa6fc21cf530a0fba564eeb8e77d1 SHA512 8ce06db614a6114cfe2c5c78acfaf111cba0ae5aa488df3879af6b5ecb20205ee453e308a7299e5df243a71067f93dcd8f4cf5faefbd8729ba11acee35cf34e0 WHIRLPOOL b55f90c6f9ca28cccddfb7bd899ce5815573db3ff4b4deabe454c6f30a9b01196ec4609d5251413d9761a28944a6acb19b6748c4dd41ea58fe2fa8da9845ed49 DIST shorewall6-4.5.18.tar.bz2 245009 SHA256 f3fb0cec903b98bed6c968e2d6af6faf49b346cbb6508731888304e1372cf62c SHA512 d3ce8d70239cc76d05520d244b958078240af795cfbbfddf010cb31681f1453d40817497939ff02b7e0a5da57291b707254a9eea420d7ad4921edad126eb585f WHIRLPOOL ed6e83b67d680493574818f0ada820f704aad37baf9dd973ea7702890d25a2989c53c5a4f1d8272ca4741aac595c9124011fe95071ee87ab3064e048d65192d8 DIST shorewall6-4.5.19.tar.bz2 245873 SHA256 6681669055d86338bcb3959afce43b9d073fe8e10ba9b482b5664ddb196a9201 SHA512 aa38fbc494a2c5f59f7bf4e5f84443c092e7bfff757e0b9e4f2669a0a214ce28f0022cae9a4ed51624de1974a261df6a3c43055b2e990af011e2027929e250de WHIRLPOOL fcb736bb440973b7997b79adc8021b618e8e8a9ebc0df81e9c9c07736df072de16f6a9d9a727520528b396c96264497d9f6f367bd6125a389a66a6d3a442db1c +EBUILD shorewall6-4.5.18-r1.ebuild 1941 SHA256 af6fd1086d1a560678e241f6dce56b174b3850063e96c28fabf13aca59916286 SHA512 dc3962526782338ce7aaabaa6143beb30492839146e1d20d4b729270064a8bd002d6bed7324d299d0c61bb5da1bb45b10fc4b653e995be3805525aeebbf76794 WHIRLPOOL f0c32ec9f14b745425f41a2401cf32cda704ca5a601507349c37516d793c15e52c18168d10ec3c4e7017df1ce2ebcc9e1c1ca96bdddaf32f1dff9f2300f3ddd4 EBUILD shorewall6-4.5.18.ebuild 1631 SHA256 4ad78a59af8c9ea6f657033c1aa332b865bd8888a069ef2c5db088df92e9abb2 SHA512 278f7c3824d266b24db67c71709955287fef59c1a5467a5e8be935b0117fc0d3171ae09d231f5379ba3a21e4be941a82c38bb7cb9205c6e3925701cd06b753bb WHIRLPOOL e7cb6faa7cbc1ec6545b0237c8be6a861a8b6ce702461c52f202b97df795cc3cc8669fd01772646f251caeadecb9f3ce29a83fea79f69ae69ddc3ae3f2b814e1 EBUILD shorewall6-4.5.19.ebuild 2902 SHA256 f8fa92a85d7cb5352cf14b77acf0e81db461583594ca214ea93895e50375b4a6 SHA512 9ee94ef13cb107e819281e15d001de92cc3e57ba595d76260ac8b535a842155fa1e873ad2bba14d71b960300764af6858f34bb7f8ab367fe32491764d3427a2a WHIRLPOOL 5c40af6bee9616486b6a35f0988e3b93a2529ffacbd88530285e29f8d2178d107090daaa2d29e39e82c4bceaad1eea69daed3382bdf99d5cbab8b3d097a7c7a4 -MISC ChangeLog 13471 SHA256 c732825e6e626647c835d44a53b0296043836a79ec1e1c9f594060d153a2592c SHA512 7b9d64ac1510466eee94028ee1883ce4eb0243be8a223f9b49b678d618c1781026763c4d46c253b83abb1d9e9550b087a93ba3354fd423b1c116dca4793d3a84 WHIRLPOOL d4bfb83a47c82e8e20545b8135cd740722e14d7a4c1be8a1a28b5d1582bd3413f6b271247c0257caf8d791e3407d43ed8b8bf3e1b7179b3d22705d3196c9be5f +MISC ChangeLog 13806 SHA256 c7d7f0f5596f5d6db05d3d9248939bec980865681dfdb99b43caff5850f4fa45 SHA512 e786da5cd375f2ca837ab4bbc054bf34ab001539398814a6c9cde7548753a581cc5abfdf22318c85e51f4b26ce2a8b7fc513dbaba5b7dc9f978aedb821d6549b WHIRLPOOL 47532556b4bc43cea51a9b7bc9f26ef5c5e64ab83808802e9a03ad49cbeb5e49b3728232bee06fa9569be3599328ae0f5408721897dc74240d2990dbfaf8b9f9 MISC metadata.xml 361 SHA256 ea12ad6e474c28d25b9203225c99d9a0336bd606fd3c2cd260c11d4982712357 SHA512 da1d88bdae3187e1c5d63b90da4fb2798f0a3f79558a57eb5ae0fab42eaa7268bfbd4102a870cbff73aa83c64bc1b10c1c7f71c01ee29f64772f7635e7da0ac9 WHIRLPOOL ae0b57811bf7617fb9cf3840a2e182d334a8303fda841c879c2791b893bd5515cae72fc0bb38f6554045bb531774798539f80b474a6152ebc04c31e5bc2f0464 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) -iL4EAREIAGYFAlIfmw5fFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl +iL4EAREIAGYFAlI+8RRfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldEIwNjQwRkMzRTI1OTEyQUUwM0MwQjVBQUJC -ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsMSewD/ZzP38JBvtTmE/8XzRO0lVpaE -hjW38CwBBgpg602nFhoA/2qhh0mMS9yu+S5UutBqkAuG4cHeMgfSsaDN6fjEqyNn -=rcos +ODBGNDE5MDEwRTNFQzMACgkQu4D0GQEOPsNUqAD+OxQTbghse73UkQXIp79fADUc +xRYER5mtZR7bjSn8N40A/1wVABqHK/6tX7Mo1q0wlikxD4kb6HVUytXzUPqmDgWr +=IGzP -----END PGP SIGNATURE----- diff --git a/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.conf-SUBSYSLOCK.patch b/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.conf-SUBSYSLOCK.patch new file mode 100644 index 000000000000..9f3742a83568 --- /dev/null +++ b/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.conf-SUBSYSLOCK.patch @@ -0,0 +1,22 @@ +--- configfiles/shorewall6.conf 2013-06-24 22:07:38.000000000 +0200 ++++ configfiles/shorewall6.conf.new 2013-07-01 15:50:54.747711444 +0200 +@@ -85,7 +85,7 @@ + + SHOREWALL_SHELL=/bin/sh + +-SUBSYSLOCK=/var/lock/subsys/shorewall6 ++SUBSYSLOCK=/run/lock/shorewall6 + + TC= + +--- configfiles/shorewall6.conf.annotated 2013-06-27 20:32:22.000000000 +0200 ++++ configfiles/shorewall6.conf.annotated.new 2013-07-01 15:51:38.448332964 +0200 +@@ -444,7 +444,7 @@ + # or specified as a null value, /bin/sh is assumed. Using a light-weight + # shell such as ash or dash can significantly improve performance. + # +-SUBSYSLOCK=/var/lock/subsys/shorewall6 ++SUBSYSLOCK=/run/lock/shorewall6 + # + # SUBSYSLOCK=[pathname] + # diff --git a/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.initd b/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.initd new file mode 100644 index 000000000000..5bb6f434d122 --- /dev/null +++ b/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.initd @@ -0,0 +1,107 @@ +#!/sbin/runscript +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.initd,v 1.1 2013/09/22 13:18:09 constanze Exp $ + +description='The Shoreline Firewall 6, more commonly known as "Shorewall6", is' +description="${description} a high-level tool for configuring Netfilter." + +extra_commands="check clear" +extra_started_commands="refresh reset" + +description_check="Checks if the configuration will compile or not." + +description_clear="Clear will remove all rules and chains installed by" +description_clear="${description_clear} Shorewall6. The firewall is then" +description_clear="${description_clear} wide open and unprotected." + +description_refresh="The mangle table will be refreshed along with the" +description_refresh="${description_refresh} blacklist chain (if any)." + +description_reset="All the packet and byte counters in the firewall are reset." + +depend() { + need net + provide firewall + after ulogd +} + +status() { + local _retval + /sbin/shorewall6 status 1>/dev/null + _retval=$? + if [ ${_retval} = '0' ]; then + einfo 'status: started' + mark_service_started "${SVCNAME}" + return 0 + else + einfo 'status: stopped' + mark_service_stopped "${SVCNAME}" + return 3 + fi +} + +start() { + ebegin "Starting shorewall6" + /sbin/shorewall6 start 1>/dev/null + eend $? +} + +stop() { + ebegin "Stopping shorewall6" + /sbin/shorewall6 stop 1>/dev/null + eend $? +} + +restart() { + # shorewall comes with its own control script that includes a + # restart function, so refrain from calling svc_stop/svc_start + # here. Note that this comment is required to fix bug 55576; + # runscript.sh greps this script... (09 Jul 2004 agriffis) + + ebegin "Restarting shorewall6" + /sbin/shorewall6 status 1>/dev/null + if [ $? != 0 ] ; then + svc_start + else + /sbin/shorewall6 restart 1>/dev/null + fi + eend $? +} + +clear() { + # clear will remove all the rules and bring the system to an unfirewalled + # state. (21 Nov 2004 eldad) + + ebegin "Clearing all shorewall rules and setting policy to ACCEPT" + /sbin/shorewall6 clear 1>/dev/null + eend $? +} + +reset() { + # reset the packet and byte counters in the firewall + + ebegin "Resetting the packet and byte counters in shorewall6" + /sbin/shorewall6 reset 1>/dev/null + eend $? +} + +refresh() { + # refresh the rules involving the broadcast addresses of firewall + # interfaces, the black list, traffic control rules and + # ECN control rules + + ebegin "Refreshing shorewall6 rules" + /sbin/shorewall6 refresh 1>/dev/null + eend $? +} + +check() { + # perform cursory validation of the zones, interfaces, hosts, rules + # and policy files. CAUTION: does not parse and validate the generated + # iptables commands. + + ebegin "Checking shorewall6 configuration" + /sbin/shorewall6 check 1>/dev/null + eend $? +} diff --git a/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.systemd b/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.systemd new file mode 100644 index 000000000000..1c6e95374a80 --- /dev/null +++ b/net-firewall/shorewall6/files/4.5.18-r1/shorewall6.systemd @@ -0,0 +1,20 @@ +# +# The Shoreline Firewall (Shorewall) Packet Filtering Firewall - V4.4 +# +# Copyright 2011 Jonathan Underwood (jonathan.underwood@gmail.com) +# +[Unit] +Description=Shorewall IPv6 firewall +After=syslog.target +After=network.target + +[Service] +Type=oneshot +RemainAfterExit=yes +EnvironmentFile=/etc/shorewall6 +StandardOutput=syslog +ExecStart=/sbin/shorewall6 $OPTIONS start +ExecStop=/sbin/shorewall6 $OPTIONS stop + +[Install] +WantedBy=multi-user.target diff --git a/net-firewall/shorewall6/files/4.5.18-r1/shorewallrc_new b/net-firewall/shorewall6/files/4.5.18-r1/shorewallrc_new new file mode 100644 index 000000000000..0f9301cfeb49 --- /dev/null +++ b/net-firewall/shorewall6/files/4.5.18-r1/shorewallrc_new @@ -0,0 +1,22 @@ +# +# Gentoo Shorewall 4.5 rc file +# +BUILD= #Default is to detect the build system +HOST=linux #Generic Linux +PREFIX=@GENTOO_PORTAGE_EPREFIX@/usr #Top-level directory for shared files, libraries, etc. +SHAREDIR=${PREFIX}/share #Directory for arch-neutral files. +LIBEXECDIR=${PREFIX}/share #Directory for executable scripts. +PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory +CONFDIR=@GENTOO_PORTAGE_EPREFIX@/etc #Directory where subsystem configurations are installed +SBINDIR=@GENTOO_PORTAGE_EPREFIX@/sbin #Directory where system administration programs are installed +MANDIR=${PREFIX}/share/man #Directory where manpages are installed. +INITDIR=${CONFDIR}/init.d #Directory where SysV init scripts are installed. +INITFILE=${PRODUCT} #Name of the product's installed SysV init script +INITSOURCE=init.gentoo.sh #Name of the distributed file to be installed as the SysV init script +ANNOTATED= #If non-zero, annotated configuration files are installed +SYSTEMD=@GENTOO_PORTAGE_EPREFIX@/usr/lib/systemd/system #Directory where .service files are installed (systems running systemd only) +SYSCONFFILE= #Name of the distributed file to be installed in $SYSCONFDIR +SYSCONFDIR=${CONFDIR}/conf.d #Directory where SysV init parameter files are installed +SPARSE= #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR +VARLIB=@GENTOO_PORTAGE_EPREFIX@/var/lib #Directory where product variable data is stored. +VARDIR=${VARLIB}/${PRODUCT} #Directory where product variable data is stored. diff --git a/net-firewall/shorewall6/shorewall6-4.5.18-r1.ebuild b/net-firewall/shorewall6/shorewall6-4.5.18-r1.ebuild new file mode 100644 index 000000000000..dcb552f02bc4 --- /dev/null +++ b/net-firewall/shorewall6/shorewall6-4.5.18-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/shorewall6-4.5.18-r1.ebuild,v 1.1 2013/09/22 13:18:09 constanze Exp $ + +EAPI="5" + +inherit eutils linux-info prefix systemd versionator + +# Select version (stable, RC, Beta, upstream patched): +MY_PV_TREE=$(get_version_component_range 1-2) # for devel versions use "development/$(get_version_component_range 1-2)" +MY_PV_BASE=$(get_version_component_range 1-3) # which shorewall-common to use + +MY_PN="${PN/6/}" +MY_P="${MY_PN}-${MY_PV_BASE}" +MY_P_DOCS="${MY_PN}-docs-html-${PV}" + +DESCRIPTION="Shoreline Firewall with IPv6 support." +HOMEPAGE="http://www.shorewall.net/" +SRC_URI="http://www1.shorewall.net/pub/${MY_PN}/${MY_PV_TREE}/${MY_P}/${P}.tar.bz2 + doc? ( http://www1.shorewall.net/pub/${PN}/${MY_PV_TREE}/${MY_P}/${MY_P_DOCS}.tar.bz2 )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" + +IUSE="doc" + +RDEPEND=">=net-firewall/iptables-1.4.0 + sys-apps/iproute2 + >=net-firewall/shorewall-${PVR} + dev-perl/Socket6" + +pkg_pretend() { + if kernel_is lt 2 6 25 ; then + die "${PN} requires at least kernel 2.6.25." + fi +} + +src_prepare() { + cp "${FILESDIR}"/${PVR}/shorewallrc_new "${S}"/shorewallrc.gentoo || die "Copying shorewallrc_new failed" + eprefixify "${S}"/shorewallrc.gentoo + + cp "${FILESDIR}"/${PVR}/${PN}.initd "${S}"/init.gentoo.sh || die "Copying shorewall.initd failed" + + epatch "${FILESDIR}"/${PVR}/shorewall6.conf-SUBSYSLOCK.patch + epatch_user +} + +src_configure() { + :; +} + +src_compile() { + :; +} + +src_install() { + keepdir /var/lib/${PN} + + cd "${WORKDIR}/${P}" + DESTDIR="${D}" ./install.sh shorewallrc.gentoo || die "install.sh failed" + systemd_newunit "${FILESDIR}"/${PVR}/shorewall6.systemd 'shorewall6.service' + + dodoc changelog.txt releasenotes.txt + if use doc; then + dodoc -r Samples6 + cd "${WORKDIR}/${MY_P_DOCS}" + dohtml -r * + fi +} |