summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jackson <mjolnir@gentoo.org>2007-05-20 22:32:36 +0000
committerMartin Jackson <mjolnir@gentoo.org>2007-05-20 22:32:36 +0000
commit782638f651ca2a4df5e514326a1121293964691c (patch)
tree57cbf8c742e30f0549dee0b7d476dd152c8e84e9 /net-firewall
parentCommit shorewall-lite init script to fix 174590 (diff)
downloadgentoo-2-782638f651ca2a4df5e514326a1121293964691c.tar.gz
gentoo-2-782638f651ca2a4df5e514326a1121293964691c.tar.bz2
gentoo-2-782638f651ca2a4df5e514326a1121293964691c.zip
Commit shorewall-lite init script to fix 174590
(Portage version: 2.1.2.7) (Unsigned Manifest commit)
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/shorewall-lite/Manifest22
-rwxr-xr-xnet-firewall/shorewall-lite/files/shorewall-lite65
2 files changed, 73 insertions, 14 deletions
diff --git a/net-firewall/shorewall-lite/Manifest b/net-firewall/shorewall-lite/Manifest
index 18c5924bac44..b37fda013924 100644
--- a/net-firewall/shorewall-lite/Manifest
+++ b/net-firewall/shorewall-lite/Manifest
@@ -1,6 +1,7 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
+AUX shorewall-lite 1492 RMD160 b5fa6749f3a836e60dce0ade5090a25a31cebf1f SHA1 1a534d8d55b7757be9fb48b0748b3d4a43ea799c SHA256 a47317f8b8c16e1c363f29209f1de684fac715588c63810179b88ad9ae1f6215
+MD5 270e4770b161548bc4f83bbc5f222a48 files/shorewall-lite 1492
+RMD160 b5fa6749f3a836e60dce0ade5090a25a31cebf1f files/shorewall-lite 1492
+SHA256 a47317f8b8c16e1c363f29209f1de684fac715588c63810179b88ad9ae1f6215 files/shorewall-lite 1492
DIST shorewall-docs-html-3.2.10.tgz 2093386 RMD160 d11cd7f91c4059ac225b260d892ecf8f07cd7202 SHA1 15b7175006898c57760773c05a14589f2911c53c SHA256 d8131b4560591fb58c83ef840f948c57b40ae83d0ecee003f45558d4277c5800
DIST shorewall-docs-html-3.2.9.tgz 2102819 RMD160 43aeb4503a82bd3e7d5dc383fd4fd6ae37307a44 SHA1 8634390084d9aba6cc56c29edec2f2af4a18e818 SHA256 e68fe721b018b73091fd3a9eab8d14088461164929105b39476015853feac054
DIST shorewall-docs-html-3.4.2.tgz 2090427 RMD160 859a1a612744be13018877c09242ac1322ae7101 SHA1 2ecff37f6bf34d9af0e394041ed5392305e81ccf SHA256 80726ed2031f328812d3cb515b875b64fac8579815352541f72845db28ba027b
@@ -19,10 +20,10 @@ EBUILD shorewall-lite-3.4.2.ebuild 1882 RMD160 b15b44aaa5177425a38f80967f49da545
MD5 b712bde2ce67883472094bc6f30b0f4a shorewall-lite-3.4.2.ebuild 1882
RMD160 b15b44aaa5177425a38f80967f49da545e62e383 shorewall-lite-3.4.2.ebuild 1882
SHA256 173b29a390b7deb3dcbf13141d886e257f4c18bf0c9a683930be775639b3162a shorewall-lite-3.4.2.ebuild 1882
-MISC ChangeLog 1786 RMD160 06155b7417e7dae983758d4c4f9ccc615700626e SHA1 53f168dd65d53d7137a05d34762e4b2ecfee9a42 SHA256 46334b55aaf0c5089ad4a773e14f2116059e242f2af311ec95425c873728cc62
-MD5 5547e05f4a4bcf9cd1fdab4472334aab ChangeLog 1786
-RMD160 06155b7417e7dae983758d4c4f9ccc615700626e ChangeLog 1786
-SHA256 46334b55aaf0c5089ad4a773e14f2116059e242f2af311ec95425c873728cc62 ChangeLog 1786
+MISC ChangeLog 1910 RMD160 b061f6741f4126842a82a50279acba97fe9fc0ac SHA1 9b2e063977a7f8e75c67271979cb152ca0c3f7c1 SHA256 9f5a0fb73590f7aca48a5c0590c11966d16137bb7f6e63eb7431a9ead18fe414
+MD5 5cea7ceb589531078a7b06f0ceda2ad1 ChangeLog 1910
+RMD160 b061f6741f4126842a82a50279acba97fe9fc0ac ChangeLog 1910
+SHA256 9f5a0fb73590f7aca48a5c0590c11966d16137bb7f6e63eb7431a9ead18fe414 ChangeLog 1910
MISC metadata.xml 221 RMD160 6a612dbdb85b7cbc15a4f4924fc62b435900bee4 SHA1 59ce39c64900516f7d583951daacb16fc01f0ea1 SHA256 80bafe9d61de4580c061d796ca9c244633349b7a6da85aeae6e11bbaad597110
MD5 9683bb7323c40d69b48d54ad0eb169ed metadata.xml 221
RMD160 6a612dbdb85b7cbc15a4f4924fc62b435900bee4 metadata.xml 221
@@ -36,10 +37,3 @@ SHA256 89e07fd3632102a4196674460fbd12dd62c8d4d17b8ddc2dc38b9e3d77004a7b files/di
MD5 2890992a1e718855e3543341828bfb23 files/digest-shorewall-lite-3.4.2 521
RMD160 2d8d15801ab7b879de78b566bcfb138d9efb078f files/digest-shorewall-lite-3.4.2 521
SHA256 aa4d1e460271a4591298a8d003788ab0872f54a6449f0abaf39838adf19442a1 files/digest-shorewall-lite-3.4.2 521
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.6-ecc01.6 (GNU/Linux)
-
-iD8DBQFGH5GqKRy60XGEcJIRAu2XAJ9gdFe9qLjwbz9DLbp08fcAl+z66gCbBl6O
-ptPzTTa0YXFVuTnRlXq0zP0=
-=JkKf
------END PGP SIGNATURE-----
diff --git a/net-firewall/shorewall-lite/files/shorewall-lite b/net-firewall/shorewall-lite/files/shorewall-lite
new file mode 100755
index 000000000000..d2537e8a1292
--- /dev/null
+++ b/net-firewall/shorewall-lite/files/shorewall-lite
@@ -0,0 +1,65 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall-lite/files/shorewall-lite,v 1.1 2007/05/20 22:32:36 mjolnir Exp $
+
+opts="start stop restart clear reset refresh"
+
+depend() {
+ need net
+ provide firewall
+ after ulogd
+}
+
+start() {
+ ebegin "Starting firewall"
+ /sbin/shorewall-lite -f start 1>/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping firewall"
+ /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 firewall"
+ if [ -f /var/lib/shorewall-lite/restore ] ; then
+ /sbin/shorewall-lite restore
+ 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 firewall rules and setting policy to ACCEPT"
+ /sbin/shorewall-lite clear
+ eend $?
+}
+
+reset() {
+ # reset the packet and byte counters in the firewall
+
+ ebegin "Resetting the packet and byte counters in the firewall"
+ /sbin/shorewall-lite reset
+ eend $?
+}
+
+refresh() {
+ # refresh the rules involving the broadcast addresses of firewall
+ # interfaces, the black list, traffic control rules and
+ # ECN control rules
+
+ ebegin "Refreshing firewall rules"
+ /sbin/shorewall-lite refresh
+ eend $?
+}