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