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