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