public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-firewall/shorewall6/files: shorewall6.initd
@ 2009-01-22  8:38 Peter Volkov (pva)
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Volkov (pva) @ 2009-01-22  8:38 UTC (permalink / raw
  To: gentoo-commits

pva         09/01/22 08:38:50

  Added:                shorewall6.initd
  Log:
  Initial import, bug #255437, thank Vieri for all work.
  (Portage version: 2.2_rc23/cvs/Linux i686)

Revision  Changes    Path
1.1                  net-firewall/shorewall6/files/shorewall6.initd

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd?rev=1.1&content-type=text/plain

Index: shorewall6.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd,v 1.1 2009/01/22 08:38:50 pva Exp $

opts="start stop restart clear reset refresh check"

depend() {
	need net
	provide firewall
	after ulogd
}

start() {
	ebegin "Starting firewall"
	/sbin/shorewall6 -f start 1>/dev/null
	eend $? 
}

stop() {
	ebegin "Stopping firewall"
	/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 firewall"
	/sbin/shorewall6 status >/dev/null
	if [ $? != 0 ] ; then
	    svc_start
	else
	    if [ -f /var/lib/shorewall6/restore ] ; then
		/sbin/shorewall6 restore
	    else
		/sbin/shorewall6 restart 1>/dev/null
	    fi
	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/shorewall6 clear
	eend $?
}

reset() {
	# reset the packet and byte counters in the firewall

	ebegin "Resetting the packet and byte counters in the firewall"
	/sbin/shorewall6 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/shorewall6 refresh
	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 configuration files"
	/sbin/shorewall6 check
	eend $?
}






^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-commits] gentoo-x86 commit in net-firewall/shorewall6/files: shorewall6.initd
@ 2012-02-24 18:53 Constanze Hausner (constanze)
  0 siblings, 0 replies; 4+ messages in thread
From: Constanze Hausner (constanze) @ 2012-02-24 18:53 UTC (permalink / raw
  To: gentoo-commits

constanze    12/02/24 18:53:41

  Modified:             shorewall6.initd
  Log:
  Version Bump; See Bug 405509; Thanks a lot to Richard
  
  (Portage version: 2.1.10.44/cvs/Linux x86_64)

Revision  Changes    Path
1.2                  net-firewall/shorewall6/files/shorewall6.initd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd?r1=1.1&r2=1.2

Index: shorewall6.initd
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- shorewall6.initd	22 Jan 2009 08:38:50 -0000	1.1
+++ shorewall6.initd	24 Feb 2012 18:53:41 -0000	1.2
@@ -1,9 +1,10 @@
 #!/sbin/runscript
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd,v 1.1 2009/01/22 08:38:50 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd,v 1.2 2012/02/24 18:53:41 constanze Exp $
 
-opts="start stop restart clear reset refresh check"
+extra_commands="check clear"
+extra_started_commands="refresh reset"
 
 depend() {
 	need net






^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-commits] gentoo-x86 commit in net-firewall/shorewall6/files: shorewall6.initd
@ 2012-10-21 12:56 Constanze Hausner (constanze)
  0 siblings, 0 replies; 4+ messages in thread
From: Constanze Hausner (constanze) @ 2012-10-21 12:56 UTC (permalink / raw
  To: gentoo-commits

constanze    12/10/21 12:56:33

  Modified:             shorewall6.initd
  Log:
  Added checkpath -d to init-script, see Bug 429750
  
  (Portage version: 2.1.11.9/cvs/Linux x86_64)

Revision  Changes    Path
1.3                  net-firewall/shorewall6/files/shorewall6.initd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd?r1=1.2&r2=1.3

Index: shorewall6.initd
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- shorewall6.initd	24 Feb 2012 18:53:41 -0000	1.2
+++ shorewall6.initd	21 Oct 2012 12:56:33 -0000	1.3
@@ -1,11 +1,17 @@
 #!/sbin/runscript
 # Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd,v 1.2 2012/02/24 18:53:41 constanze Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd,v 1.3 2012/10/21 12:56:33 constanze Exp $
 
 extra_commands="check clear"
 extra_started_commands="refresh reset"
 
+checkconfig() {
+	if [ ! -d /var/lock/subsys ] ; then
+		checkpath -d -m 755 /var/lock/subsys
+	fi
+}
+
 depend() {
 	need net
 	provide firewall
@@ -13,6 +19,7 @@
 }
 
 start() {
+    checkconfig
 	ebegin "Starting firewall"
 	/sbin/shorewall6 -f start 1>/dev/null
 	eend $? 
@@ -25,6 +32,7 @@
 }
 
 restart() {
+    checkconfig
 	# 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;





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [gentoo-commits] gentoo-x86 commit in net-firewall/shorewall6/files: shorewall6.initd
@ 2013-07-13 14:12 Constanze Hausner (constanze)
  0 siblings, 0 replies; 4+ messages in thread
From: Constanze Hausner (constanze) @ 2013-07-13 14:12 UTC (permalink / raw
  To: gentoo-commits

constanze    13/07/13 14:12:23

  Modified:             shorewall6.initd
  Log:
  Cleanup; Version bump bug 472434; Clearify init.d output bug 472790;
  Remove keepdir/dodir bug 459316
  
  (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key BB80F419010E3EC3)

Revision  Changes    Path
1.4                  net-firewall/shorewall6/files/shorewall6.initd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd?rev=1.4&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd?rev=1.4&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd?r1=1.3&r2=1.4

Index: shorewall6.initd
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- shorewall6.initd	21 Oct 2012 12:56:33 -0000	1.3
+++ shorewall6.initd	13 Jul 2013 14:12:23 -0000	1.4
@@ -1,7 +1,7 @@
 #!/sbin/runscript
-# Copyright 1999-2012 Gentoo Foundation
+# 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/shorewall6.initd,v 1.3 2012/10/21 12:56:33 constanze Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6/files/shorewall6.initd,v 1.4 2013/07/13 14:12:23 constanze Exp $
 
 extra_commands="check clear"
 extra_started_commands="refresh reset"
@@ -20,13 +20,13 @@
 
 start() {
     checkconfig
-	ebegin "Starting firewall"
+	ebegin "Starting shorewall6"
 	/sbin/shorewall6 -f start 1>/dev/null
 	eend $? 
 }
 
 stop() {
-	ebegin "Stopping firewall"
+	ebegin "Stopping shorewall6"
 	/sbin/shorewall6 stop 1>/dev/null
 	eend $?
 }
@@ -37,7 +37,7 @@
 	# 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"
+	ebegin "Restarting shorewall6"
 	/sbin/shorewall6 status >/dev/null
 	if [ $? != 0 ] ; then
 	    svc_start
@@ -55,7 +55,7 @@
 	# 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"
+	ebegin "Clearing all shorewall6 rules and setting policy to ACCEPT"
 	/sbin/shorewall6 clear
 	eend $?
 }
@@ -63,7 +63,7 @@
 reset() {
 	# reset the packet and byte counters in the firewall
 
-	ebegin "Resetting the packet and byte counters in the firewall"
+	ebegin "Resetting the packet and byte counters in the shorewall6"
 	/sbin/shorewall6 reset
 	eend $?
 }
@@ -73,7 +73,7 @@
 	# interfaces, the black list, traffic control rules and 
 	# ECN control rules
 
-	ebegin "Refreshing firewall rules"
+	ebegin "Refreshing shorewall6 rules"
 	/sbin/shorewall6 refresh
 	eend $?
 }





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-13 14:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-22  8:38 [gentoo-commits] gentoo-x86 commit in net-firewall/shorewall6/files: shorewall6.initd Peter Volkov (pva)
  -- strict thread matches above, loose matches on Subject: below --
2012-02-24 18:53 Constanze Hausner (constanze)
2012-10-21 12:56 Constanze Hausner (constanze)
2013-07-13 14:12 Constanze Hausner (constanze)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox