Gentoo Archives: gentoo-commits

From: "Constanze Hausner (constanze)" <constanze@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-firewall/shorewall6-lite/files/4.5.19: shorewall6-lite.confd shorewall6-lite.initd shorewall6-lite.systemd shorewallrc
Date: Wed, 28 Aug 2013 17:02:24
Message-Id: 20130828170221.0F6F12004C@flycatcher.gentoo.org
1 constanze 13/08/28 17:02:20
2
3 Added: shorewall6-lite.confd shorewall6-lite.initd
4 shorewall6-lite.systemd shorewallrc
5 Log:
6 Version bump; Add new files/ structure
7
8 (Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key BB80F419010E3EC3)
9
10 Revision Changes Path
11 1.1 net-firewall/shorewall6-lite/files/4.5.19/shorewall6-lite.confd
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6-lite/files/4.5.19/shorewall6-lite.confd?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6-lite/files/4.5.19/shorewall6-lite.confd?rev=1.1&content-type=text/plain
15
16 Index: shorewall6-lite.confd
17 ===================================================================
18 # Global start/restart/stop options
19 #
20 OPTIONS=""
21
22 # Start options
23 #
24 STARTOPTIONS=""
25
26 # Stop options
27 #
28 STOPOPTIONS=""
29
30 # Restart options
31 #
32 RESTARTOPTIONS=""
33
34
35
36 1.1 net-firewall/shorewall6-lite/files/4.5.19/shorewall6-lite.initd
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6-lite/files/4.5.19/shorewall6-lite.initd?rev=1.1&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6-lite/files/4.5.19/shorewall6-lite.initd?rev=1.1&content-type=text/plain
40
41 Index: shorewall6-lite.initd
42 ===================================================================
43 #!/sbin/runscript
44 # Copyright 1999-2013 Gentoo Foundation
45 # Distributed under the terms of the GNU General Public License v2
46 # $Header: /var/cvsroot/gentoo-x86/net-firewall/shorewall6-lite/files/4.5.19/shorewall6-lite.initd,v 1.1 2013/08/28 17:02:20 constanze Exp $
47
48 description='The Shoreline Firewall 6 Lite, more commonly known as "Shorewall6 Lite", is'
49 description="${description} a high-level tool for configuring Netfilter."
50
51 extra_commands="clear"
52 extra_started_commands="reset"
53
54 description_clear="Clear will remove all rules and chains installed by"
55 description_clear="${description_clear} Shorewall6 Lite. The firewall is"
56 description_clear="${description_clear} then wide open and unprotected."
57
58 description_reset="All the packet and byte counters in the firewall are reset."
59
60 depend() {
61 need net
62 provide firewall
63 after ulogd
64 }
65
66 status() {
67 local _retval
68 /sbin/shorewall6-lite status 1>/dev/null
69 _retval=$?
70 if [ ${_retval} = '0' ]; then
71 einfo 'status: started'
72 mark_service_started "${SVCNAME}"
73 return 0
74 else
75 einfo 'status: stopped'
76 mark_service_stopped "${SVCNAME}"
77 return 3
78 fi
79 }
80
81 start() {
82 ebegin "Starting shorewall6-lite"
83 /sbin/shorewall6-lite ${OPTIONS} start ${STARTOPTIONS} 1>/dev/null
84 eend $?
85 }
86
87 stop() {
88 ebegin "Stopping shorewall6-lite"
89 /sbin/shorewall6-lite ${OPTIONS} stop ${STOPOPTIONS} 1>/dev/null
90 eend $?
91 }
92
93 restart() {
94 # shorewall comes with its own control script that includes a
95 # restart function, so refrain from calling svc_stop/svc_start
96 # here. Note that this comment is required to fix bug 55576;
97 # runscript.sh greps this script... (09 Jul 2004 agriffis)
98
99 ebegin "Restarting shorewall6-lite"
100 /sbin/shorewall6-lite status 1>/dev/null
101 if [ $? != 0 ] ; then
102 svc_start
103 else
104 /sbin/shorewall6-lite ${OPTIONS} restart ${RESTARTOPTIONS} 1>/dev/null
105 fi
106 eend $?
107 }
108
109 clear() {
110 # clear will remove all the rules and bring the system to an unfirewalled
111 # state. (21 Nov 2004 eldad)
112
113 ebegin "Clearing all shorewall6-lite rules and setting policy to ACCEPT"
114 /sbin/shorewall6-lite ${OPTIONS} clear 1>/dev/null
115 eend $?
116 }
117
118 reset() {
119 # reset the packet and byte counters in the firewall
120
121 ebegin "Resetting the packet and byte counters in shorewall6-lite"
122 /sbin/shorewall6-lite ${OPTIONS} reset 1>/dev/null
123 eend $?
124 }
125
126
127
128 1.1 net-firewall/shorewall6-lite/files/4.5.19/shorewall6-lite.systemd
129
130 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6-lite/files/4.5.19/shorewall6-lite.systemd?rev=1.1&view=markup
131 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6-lite/files/4.5.19/shorewall6-lite.systemd?rev=1.1&content-type=text/plain
132
133 Index: shorewall6-lite.systemd
134 ===================================================================
135 #
136 # The Shoreline Firewall 6 Lite (Shorewall6-Lite) Packet Filtering Firewall - V4.5
137 #
138 [Unit]
139 Description=Shorewall IPv6 firewall lite
140 Documentation=man:shorewall6-lite(8) http://www.shorewall.net/Documentation_Index.html
141 After=network.target
142
143 [Service]
144 Type=oneshot
145 RemainAfterExit=yes
146 EnvironmentFile=/etc/conf.d/shorewall6-lite
147 ExecStart=/sbin/shorewall6-lite $OPTIONS start $STARTOPTIONS
148 ExecStop=/sbin/shorewall6-lite $OPTIONS stop $STOPOPTIONS
149
150 [Install]
151 WantedBy=multi-user.target
152
153
154
155 1.1 net-firewall/shorewall6-lite/files/4.5.19/shorewallrc
156
157 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6-lite/files/4.5.19/shorewallrc?rev=1.1&view=markup
158 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/shorewall6-lite/files/4.5.19/shorewallrc?rev=1.1&content-type=text/plain
159
160 Index: shorewallrc
161 ===================================================================
162 #
163 # Gentoo Shorewall 4.5 rc file
164 #
165 BUILD= #Default is to detect the build system
166 HOST=linux #Generic Linux
167 PREFIX=@GENTOO_PORTAGE_EPREFIX@/usr #Top-level directory for shared files, libraries, etc.
168 SHAREDIR=${PREFIX}/share #Directory for arch-neutral files.
169 LIBEXECDIR=${PREFIX}/share #Directory for executable scripts.
170 PERLLIBDIR=${PREFIX}/share/shorewall #Directory to install Shorewall Perl module directory
171 CONFDIR=@GENTOO_PORTAGE_EPREFIX@/etc #Directory where subsystem configurations are installed
172 SBINDIR=@GENTOO_PORTAGE_EPREFIX@/sbin #Directory where system administration programs are installed
173 MANDIR=${PREFIX}/share/man #Directory where manpages are installed.
174 INITDIR=${CONFDIR}/init.d #Directory where SysV init scripts are installed.
175 INITFILE=${PRODUCT} #Name of the product's installed SysV init script
176 INITSOURCE=init.gentoo.sh #Name of the distributed file to be installed as the SysV init script
177 ANNOTATED= #If non-zero, annotated configuration files are installed
178 SYSTEMD=@GENTOO_PORTAGE_EPREFIX@/usr/lib/systemd/system #Directory where .service files are installed (systems running systemd only)
179 SYSCONFFILE=default.gentoo #Name of the distributed file to be installed in $SYSCONFDIR
180 SYSCONFDIR=${CONFDIR}/conf.d #Directory where SysV init parameter files are installed
181 SPARSE= #If non-empty, only install $PRODUCT/$PRODUCT.conf in $CONFDIR
182 VARLIB=@GENTOO_PORTAGE_EPREFIX@/var/lib #Directory where product variable data is stored.
183 VARDIR=${VARLIB}/${PRODUCT} #Directory where product variable data is stored.