1 |
# $Id: smeserver-openvpn-bridge.spec,v 1.4 2016/02/08 09:42:51 vip-ire Exp $ |
2 |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
4 |
|
5 |
Summary: OpenVPN, a strong VPN solution build over SSL, pre-configured for bridge mode |
6 |
%define name smeserver-openvpn-bridge |
7 |
Name: %{name} |
8 |
%define version 2.1 |
9 |
%define release 5 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Networking/Remote access |
14 |
Source: %{name}-%{version}.tar.xz |
15 |
|
16 |
Patch0: smeserver-openvpn-bridge-2.1-locale-2015-02-17.patch |
17 |
Patch1: smeserver-openvpn-bridge-2.1-add_routes_for_s2s_virtual_ip.patch |
18 |
Patch2: smeserver-openvpn-bridge-2.1-remove_obsolete_libpam_symlink.patch |
19 |
|
20 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
BuildArchitectures: noarch |
22 |
|
23 |
BuildRequires: e-smith-devtools |
24 |
|
25 |
Requires: e-smith-base |
26 |
Requires: openvpn |
27 |
Requires: smeserver-bridge-interface |
28 |
Requires: perl(Net::OpenVPN::Manage) |
29 |
Obsoletes: smeserver-openvpn-bridge-fws |
30 |
Obsoletes: smeserver-openvpn-bridge.fws |
31 |
|
32 |
%description |
33 |
This package contains all the needed scripts and templates |
34 |
to have a full working openvpn server running in bridge mode. |
35 |
|
36 |
%changelog |
37 |
* Wed Feb 10 2016 Daniel Berteaud <daniel@firewall-services.com> 2.1-5.sme |
38 |
- Remove obsolete libpam.so symlink so AutoReqProv do not add a dep on i686 |
39 |
pam |
40 |
|
41 |
* Mon Feb 8 2016 Daniel Berteaud <daniel@firewall-services.com> 2.1-4.sme |
42 |
- Create /etc/openvpn/bridge/dev/urandom [SME: 9238] |
43 |
|
44 |
* Thu Aug 6 2015 Daniel Berteaud <daniel@firewall-services.com> 2.1-3.sme |
45 |
- Add routes for s2s virtual IP |
46 |
|
47 |
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 2.1-2.sme |
48 |
- Apply locale 2015-02-17 patch |
49 |
|
50 |
* Mon Nov 11 2013 Daniel B. <daniel@firewall-services.com> 2.1-1.sme |
51 |
- Rebuild for SME9 |
52 |
|
53 |
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 2.0-50.sme |
54 |
- apply locale 2013-07-14 patch |
55 |
|
56 |
* Thu Jun 6 2013 Daniel B. <daniel@firewall-services.com> 2.0-49.sme |
57 |
- Fix plugin directory for x86_64 [SME: 7658] |
58 |
|
59 |
* Fri Mar 22 2013 Daniel B. <daniel@firewall-services.com> 2.0-48.sme |
60 |
- Fix spelling in en-us panel [SME: 7507] |
61 |
|
62 |
* Mon Oct 08 2012 Daniel B. <daniel@firewall-services.com> 2.0-47.sme |
63 |
- Create a tmp dir (needed for openvpn 2.2.2) |
64 |
|
65 |
* Tue Mar 20 2012 SME Translation Server <translations@contribs.org> 2.0-46.el6 |
66 |
- apply locale 2012-03-20 patch |
67 |
|
68 |
* Wed Apr 27 2011 SME Translation Server <translations@contribs.org> 2.0-45.sme |
69 |
- apply locale 2011-04-27 patch |
70 |
|
71 |
* Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 2.0-44.sme |
72 |
- apply locale 2011-03-06 patch |
73 |
|
74 |
* Thu Feb 17 2011 Daniel B. <daniel@firewall-services.com> 2.0-43.sme |
75 |
- Fix a typo in the panel [SME: 6509] |
76 |
|
77 |
* Tue Jan 25 2011 Daniel B. <daniel@firewall-services.com> 2.0-42.sme |
78 |
- Stop disabling service on rpm removal (spec change only) |
79 |
|
80 |
* Tue Jan 25 2011 Daniel B. <daniel@firewall-services.com> 2.0-41.sme |
81 |
- Add comp-lzo option back into client conf file |
82 |
|
83 |
* Tue Oct 26 2010 Daniel B. <daniel@firewall-services.com> 2.0-40.sme |
84 |
- Add PassTOS DB key to enable/disable passtos |
85 |
- Enhance routes push (work with s2s contrib) |
86 |
|
87 |
* Tue Oct 19 2010 Daniel B. <daniel@firewall-services.com> 2.0-39.sme |
88 |
- templates cleanup |
89 |
- DB prop to disable local networks routes push to client |
90 |
|
91 |
* Mon Jul 19 2010 Daniel B. <daniel@firewall-services.com> 2.0-38.sme |
92 |
- apply locale 2010-07-19 patc |
93 |
|
94 |
* Wed Jun 02 2010 Daniel B. <daniel@firewall-services.com> 2.0-37.sme |
95 |
- apply locale 2010-06-02 patch |
96 |
- use multilog timestamp |
97 |
|
98 |
* Wed May 12 2010 Daniel B. <daniel@firewall-services.com> 2.0-36.sme |
99 |
- Comment the passtos option as it's not supported on Windows |
100 |
|
101 |
* Fri Apr 30 2010 Daniel B. <daniel@firewall-services.com> 2.0-35.sme |
102 |
- add the passtos option |
103 |
- push the comp-lzo option to the client |
104 |
- apply locale 2010-04-29 patch |
105 |
|
106 |
* Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 2.0-34.sme |
107 |
- apply locale 2010-03-02 patch |
108 |
|
109 |
* Wed Nov 18 2009 Daniel B. <daniel@firewall-services.com> 2.0-33.sme |
110 |
- code cleanup |
111 |
|
112 |
* Tue Nov 17 2009 Daniel B. <daniel@firewall-services.com> 2.0-32.sme |
113 |
- apply locale 2009-11-17 patch |
114 |
- Fix CRL update on event (openvpn-bridge-update) |
115 |
|
116 |
* Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 2.0-31.sme |
117 |
- apply locale 2009-10-27 patch |
118 |
|
119 |
* Wed Oct 21 2009 Daniel B. <daniel@firewall-services.com> 2.0-30.sme |
120 |
- apply locale 2009-10-21 patch |
121 |
|
122 |
* Tue Sep 29 2009 Daniel B. <daniel@firewall-services.com> 2.0-29.sme |
123 |
- Put tls-client directive in client config file even when additional TLS |
124 |
auth is disabled (required for the main TLS auth) [SME: 5495] |
125 |
- apply locale 2009-09-28 patch |
126 |
|
127 |
* Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 2.0-28.sme |
128 |
- apply locale 2009-08-24 patch |
129 |
|
130 |
* Wed Jul 22 2009 Daniel B. <daniel@firewall-services.com> 2.0-27.sme |
131 |
- apply locale 2009-07-22 patch |
132 |
|
133 |
* Thu Jun 25 2009 Daniel B. <daniel@firewall-services.com> 2.0-26.sme |
134 |
- expand config and restart the service when local networks are added |
135 |
or removed so the new routes are pushed |
136 |
|
137 |
* Tue May 26 2009 Daniel B. <daniel@firewall-services.com> 2.0-25.sme |
138 |
- apply locale 2009-05-26 patch |
139 |
|
140 |
* Sun May 24 2009 Daniel B. <daniel@firewall-services.com> 2.0-24.sme |
141 |
- apply locale 2009-05-24 patch |
142 |
|
143 |
* Thu Apr 30 2009 Daniel B. <daniel@firewall-services.com> 2.0-23.sme |
144 |
- apply local 2009-04-30 patch |
145 |
|
146 |
* Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 2.0-22.sme |
147 |
- apply locale 2009-04-27 patch |
148 |
|
149 |
* Tue Apr 14 2009 Daniel B. <daniel@firewall-services.com> [2.0-21] |
150 |
- Fixe permissions on public directory (pub and ccd) which must be readable |
151 |
by everyone (especially user nobody) |
152 |
|
153 |
* Sun Apr 12 2009 Daniel B. <daniel@firewall-services.com> [2.0-20] |
154 |
- remove obsolete init scripts reset-openvpn and openvpn-bridge |
155 |
|
156 |
* Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> [2.0-19] |
157 |
- Do not add cipher directive in client configuration file if set to 'auto' |
158 |
|
159 |
* Wed Mar 11 2009 Daniel B. <daniel@firewall-services.com> [2.0-18] |
160 |
- Compatibility with openvpn 2.1 (detect plugin dir location) [SME: 5060] |
161 |
|
162 |
* Mon Mar 09 2009 Daniel B. <daniel@firewall-services.com> [2.0-17] |
163 |
- Add smeserver-bridge-interface as dependency |
164 |
- Update spec description |
165 |
|
166 |
* Tue Mar 03 2009 SME Translation Server [2.0-16] |
167 |
- apply locale 2009-03-03 patch |
168 |
|
169 |
* Tue Mar 03 2009 Jonathan Martens <smeserver-contribs@snetram.nl> [2.0-15] |
170 |
- Fix some more errors in the en-us locale |
171 |
- Remove tabs from SPEC file as some editors act weird with them, e.g. nano |
172 |
|
173 |
* Tue Mar 03 2009 Jonathan Martens <smeserver-contribs@snetram.nl> [2.0-14] |
174 |
- Fix some grammar errors in the en-us locale |
175 |
|
176 |
* Tue Mar 03 2009 Jonathan Martens <smeserver-contribs@snetram.nl> [2.0-13] |
177 |
- Fix a typo in the en-us locale |
178 |
|
179 |
* Tue Mar 03 2009 Shad L. Lords <slords@mail.com> [2.0-12] |
180 |
- Fix xml language tag to be correct |
181 |
|
182 |
* Tue Mar 03 2009 Shad L. Lords <slords@mail.com> [2.0-11] |
183 |
- Remove duplicate translations that break pootle |
184 |
|
185 |
* Tue Mar 03 2009 Shad L. Lords <slords@mail.com> [2.0-10] |
186 |
- Rename locale/en to locale/en-us to pootle works |
187 |
|
188 |
* Tue Mar 03 2009 Daniel B. <daniel@firewall-services.com> [2.0-9] |
189 |
- Apply locale patch fr 1 |
190 |
- Add e-smith-devtools as a build dependency |
191 |
|
192 |
* Thu Jan 29 2009 Daniel B. <daniel@firewall-services.com> [2.0-8] |
193 |
- Fix an error with the creation of the db |
194 |
|
195 |
* Wed Jan 28 2009 Daniel B. <daniel@firewall-services.com> [2.0-7] |
196 |
- Cleanly create openvpn-bridge db |
197 |
|
198 |
* Fri Jan 16 2009 Daniel B. <daniel@firewall-services.com> [2.0-6] |
199 |
- Just warn if openvpn db is missing |
200 |
- Fix certificates check |
201 |
- Warn if bridge service isn't enabled |
202 |
- Configure the CRL update URL |
203 |
|
204 |
* Mon Jan 12 2009 Daniel B. <daniel@firewall-services.com> [2.0-5] |
205 |
- localization patch |
206 |
|
207 |
* Mon Dec 22 2008 Daniel B. <daniel@firewall-services.com> [2.0-4] |
208 |
- Add validate_common_name routine |
209 |
|
210 |
* Wed Dec 19 2008 Daniel B. <daniel@firewall-services.com> [2.0-3] |
211 |
- Added option configRequired (accept only certificate listed in the rules section) |
212 |
- Clean config templates |
213 |
|
214 |
* Tue Dec 16 2008 Daniel B. <daniel@firewall-services.com> [2.0-2] |
215 |
- Add missing pull directive in client config |
216 |
|
217 |
* Fri Dec 12 2008 Daniel B. <daniel@firewall-services.com> [2.0-1] |
218 |
- Remove useless migrate fragment (now handled by the bridge package) |
219 |
|
220 |
* Thu Dec 04 2008 Daniel B. <daniel@firewall-services.com> [2.0-0] |
221 |
- The bridge stuff is now in a separated rpm |
222 |
- Restarting the service doesn't cut the InternalInterface |
223 |
as the bridge isn't restarted |
224 |
- Correct (truely this time) the bug with dhcpd looping |
225 |
- Panel re-writen in FormMagick (much more simple now) |
226 |
- Removed the certificate manager, now handled by phpki |
227 |
- Real-time clients info using Net::OpenVPN::Manage |
228 |
- Routes to local networks are pushed to clients |
229 |
|
230 |
* Tue Feb 06 2007 Daniel Berteaud <daniel@firewall-services.com> |
231 |
- [1.1-1] |
232 |
- Bugs fixes (repported by Stephan Braunstein) |
233 |
- corrections in the en language |
234 |
|
235 |
* Tue Feb 06 2007 Daniel Berteaud <daniel@firewall-services.com> |
236 |
- [1.1-0] |
237 |
- panel enhancement |
238 |
- little correction in the local file |
239 |
|
240 |
* Fri Dec 11 2006 Daniel Berteaud <daniel@firewall-services.com> |
241 |
- [1.0-3] |
242 |
- correction of permissions on startup and shutdown scripts |
243 |
- little correction in the local file |
244 |
|
245 |
* Fri Dec 08 2006 Daniel Berteaud <daniel@firewall-services.com> |
246 |
- [1.0-2] |
247 |
- Added missing directory keys/bridge |
248 |
|
249 |
* Fri Dec 06 2006 Daniel Berteaud <daniel@firewall-services.com> |
250 |
- [1.0-1] |
251 |
- Removed useless parameters from the panel (tap, br and localInf) |
252 |
- Added a stop script (k20openvpn-bridge) |
253 |
- panel renamed to openvpn-bridge for futur compatibility |
254 |
|
255 |
%prep |
256 |
|
257 |
%setup -q -n %{name}-%{version} |
258 |
%patch0 -p1 |
259 |
%patch1 -p1 |
260 |
%patch2 -p1 |
261 |
|
262 |
%build |
263 |
perl createlinks |
264 |
|
265 |
%{__mkdir_p} root/etc/openvpn/bridge/ccd |
266 |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
267 |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
268 |
%{__mkdir_p} root/etc/openvpn/bridge/tmp |
269 |
%{__mkdir_p} root/etc/openvpn/bridge/dev |
270 |
%{__mkdir_p} root/var/log/openvpn-bridge |
271 |
|
272 |
%install |
273 |
/bin/rm -rf $RPM_BUILD_ROOT |
274 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
275 |
/bin/rm -f %{name}-%{version}-filelist |
276 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
277 |
--file /var/service/openvpn-bridge/run 'attr(0755,root,root)' \ |
278 |
--file /var/service/openvpn-bridge/log/run 'attr(0755,root,root)' \ |
279 |
--dir /var/log/openvpn-bridge 'attr(0750,smelog,smelog)' \ |
280 |
--dir /etc/openvpn/bridge/pub 'attr(0755,root,root)' \ |
281 |
--dir /etc/openvpn/bridge/priv 'attr(0750,root,root)' \ |
282 |
--dir /etc/openvpn/bridge/ccd 'attr(0755,root,root)' \ |
283 |
--dir /etc/openvpn/bridge/tmp 'attr(0770,root,nobody)' \ |
284 |
--file /usr/bin/ovpn-bridge-update-crl 'attr(0750,root,root)' \ |
285 |
> %{name}-%{version}-filelist |
286 |
|
287 |
%files -f %{name}-%{version}-filelist |
288 |
%defattr(-,root,root) |
289 |
|
290 |
%clean |
291 |
rm -rf $RPM_BUILD_ROOT |
292 |
|
293 |
%post |
294 |
if [ \! -c /etc/openvpn/bridge/dev/urandom ]; then |
295 |
mknod -m 0444 /etc/openvpn/bridge/dev/urandom c 1 9 |
296 |
fi |
297 |
|
298 |
%preun |