1 |
# $Id: smeserver-openvpn-bridge.spec,v 1.24 2009/05/26 09:48:21 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.0 |
9 |
%define release 26 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Networking/Remote access |
14 |
Source: %{name}-%{version}.tar.gz |
15 |
|
16 |
Patch0: smeserver-openvpn-bridge-2.0-remove_dup_migrate.patch |
17 |
Patch1: smeserver-openvpn-bridge-2.0-pull.patch |
18 |
Patch2: smeserver-openvpn-bridge-2.0-config_required.patch |
19 |
Patch3: smeserver-openvpn-bridge-2.0-config_cleanup.patch |
20 |
Patch4: smeserver-openvpn-bridge-2.0-add_rule.patch |
21 |
Patch5: smeserver-openvpn-bridge-2.0-locale1.patch |
22 |
#atch6: smeserver-openvpn-bridge-2.0-openvpn_db.patch |
23 |
Patch7: smeserver-openvpn-bridge-2.0-check_certs.patch |
24 |
Patch8: smeserver-openvpn-bridge-2.0-check_bridge.patch |
25 |
Patch9: smeserver-openvpn-bridge-2.0-configure_crl_url.patch |
26 |
Patch10: smeserver-openvpn-bridge-2.0-check_certs.patch2 |
27 |
Patch11: smeserver-openvpn-bridge-2.0-create_openvpn_db.patch |
28 |
Patch12: smeserver-openvpn-bridge-2.0-local_fr_1.patch |
29 |
Patch13: smeserver-openvpn-bridge-2.0-fixtranslation.patch |
30 |
Patch14: smeserver-openvpn-bridge-2.0-removedups.patch |
31 |
Patch15: smeserver-openvpn-bridge-2.0-fixlangtag.patch |
32 |
Patch16: smeserver-openvpn-bridge-2.0-fix-en-us-locale.patch |
33 |
Patch17: smeserver-openvpn-bridge-2.0-fix-en-us-locale2.patch |
34 |
Patch18: smeserver-openvpn-bridge-2.0-fix-en-us-locale3.patch |
35 |
Patch19: smeserver-openvpn-bridge-2.0-locale-2009-03-03.patch |
36 |
Patch20: smeserver-openvpn-bridge-2.0-openvpn_2_1_compat.patch |
37 |
Patch21: smeserver-openvpn-bridge-2.0-cipher_auto.patch |
38 |
Patch22: smeserver-openvpn-bridge-2.0-remove_obsolete_init_scripts.patch |
39 |
Patch23: smeserver-openvpn-bridge-2.0-fix_perms_on_pub_dir.patch |
40 |
Patch24: smeserver-openvpn-bridge-2.0-locale-2009-04-27.patch |
41 |
Patch25: smeserver-openvpn-bridge-2.0-locale-2009-04-30.patch |
42 |
Patch26: smeserver-openvpn-bridge-2.0-locale-2009-05-24.patch |
43 |
Patch27: smeserver-openvpn-bridge-2.0-locale-2009-05-26.patch |
44 |
Patch28: smeserver-openvpn-bridge-2.0-update_networks.patch |
45 |
|
46 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
47 |
BuildArchitectures: noarch |
48 |
|
49 |
BuildRequires: e-smith-devtools |
50 |
|
51 |
Requires: e-smith-base |
52 |
Requires: openvpn |
53 |
Requires: smeserver-bridge-interface |
54 |
Requires: perl(Net::OpenVPN::Manage) |
55 |
Obsoletes: smeserver-openvpn-bridge-fws |
56 |
Obsoletes: smeserver-openvpn-bridge.fws |
57 |
|
58 |
%description |
59 |
This package contains all the needed scripts and templates |
60 |
to have a full working openvpn server running in bridge mode. |
61 |
|
62 |
%changelog |
63 |
* Thu Jun 25 2009 Daniel B. <daniel@firewall-services.com> 2.0-26.sme |
64 |
- expand config and restart the service when local networks are added |
65 |
or removed so the new routes are pushed |
66 |
|
67 |
* Tue May 26 2009 Daniel B. <daniel@firewall-services.com> 2.0-25.sme |
68 |
- apply loca 2009-05-26 patch |
69 |
|
70 |
* Sun May 24 2009 Daniel B. <daniel@firewall-services.com> 2.0-24.sme |
71 |
- apply locale 2009-05-24 patch |
72 |
|
73 |
* Thu Apr 30 2009 Daniel B. <daniel@firewall-services.com> 2.0-23.sme |
74 |
- apply local 2009-04-30 patch |
75 |
|
76 |
* Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 2.0-22.sme |
77 |
- apply locale 2009-04-27 patch |
78 |
|
79 |
* Tue Apr 14 2009 Daniel B. <daniel@firewall-services.com> [2.0-21] |
80 |
- Fixe permissions on public directory (pub and ccd) which must be readable |
81 |
by everyone (especially user nobody) |
82 |
|
83 |
* Sun Apr 12 2009 Daniel B. <daniel@firewall-services.com> [2.0-20] |
84 |
- remove obsolete init scripts reset-openvpn and openvpn-bridge |
85 |
|
86 |
* Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> [2.0-19] |
87 |
- Do not add cipher directive in client configuration file if set to 'auto' |
88 |
|
89 |
* Wed Mar 11 2009 Daniel B. <daniel@firewall-services.com> [2.0-18] |
90 |
- Compatibility with openvpn 2.1 (detect plugin dir location) [SME: 5060] |
91 |
|
92 |
* Mon Mar 09 2009 Daniel B. <daniel@firewall-services.com> [2.0-17] |
93 |
- Add smeserver-bridge-interface as dependency |
94 |
- Update spec description |
95 |
|
96 |
* Tue Mar 03 2009 SME Translation Server [2.0-16] |
97 |
- apply locale 2009-03-03 patch |
98 |
|
99 |
* Tue Mar 03 2009 Jonathan Martens <smeserver-contribs@snetram.nl> [2.0-15] |
100 |
- Fix some more errors in the en-us locale |
101 |
- Remove tabs from SPEC file as some editors act weird with them, e.g. nano |
102 |
|
103 |
* Tue Mar 03 2009 Jonathan Martens <smeserver-contribs@snetram.nl> [2.0-14] |
104 |
- Fix some grammar errors in the en-us locale |
105 |
|
106 |
* Tue Mar 03 2009 Jonathan Martens <smeserver-contribs@snetram.nl> [2.0-13] |
107 |
- Fix a typo in the en-us locale |
108 |
|
109 |
* Tue Mar 03 2009 Shad L. Lords <slords@mail.com> [2.0-12] |
110 |
- Fix xml language tag to be correct |
111 |
|
112 |
* Tue Mar 03 2009 Shad L. Lords <slords@mail.com> [2.0-11] |
113 |
- Remove duplicate translations that break pootle |
114 |
|
115 |
* Tue Mar 03 2009 Shad L. Lords <slords@mail.com> [2.0-10] |
116 |
- Rename locale/en to locale/en-us to pootle works |
117 |
|
118 |
* Tue Mar 03 2009 Daniel B. <daniel@firewall-services.com> [2.0-9] |
119 |
- Apply locale patch fr 1 |
120 |
- Add e-smith-devtools as a build dependency |
121 |
|
122 |
* Thu Jan 29 2009 Daniel B. <daniel@firewall-services.com> [2.0-8] |
123 |
- Fix an error with the creation of the db |
124 |
|
125 |
* Wed Jan 28 2009 Daniel B. <daniel@firewall-services.com> [2.0-7] |
126 |
- Cleanly create openvpn-bridge db |
127 |
|
128 |
* Fri Jan 16 2009 Daniel B. <daniel@firewall-services.com> [2.0-6] |
129 |
- Just warn if openvpn db is missing |
130 |
- Fix certificates check |
131 |
- Warn if bridge service isn't enabled |
132 |
- Configure the CRL update URL |
133 |
|
134 |
* Mon Jan 12 2009 Daniel B. <daniel@firewall-services.com> [2.0-5] |
135 |
- localization patch |
136 |
|
137 |
* Mon Dec 22 2008 Daniel B. <daniel@firewall-services.com> [2.0-4] |
138 |
- Add validate_common_name routine |
139 |
|
140 |
* Wed Dec 19 2008 Daniel B. <daniel@firewall-services.com> [2.0-3] |
141 |
- Added option configRequired (accept only certificate listed in the rules section) |
142 |
- Clean config templates |
143 |
|
144 |
* Tue Dec 16 2008 Daniel B. <daniel@firewall-services.com> [2.0-2] |
145 |
- Add missing pull directive in client config |
146 |
|
147 |
* Fri Dec 12 2008 Daniel B. <daniel@firewall-services.com> [2.0-1] |
148 |
- Remove useless migrate fragment (now handled by the bridge package) |
149 |
|
150 |
* Thu Dec 04 2008 Daniel B. <daniel@firewall-services.com> [2.0-0] |
151 |
- The bridge stuff is now in a separated rpm |
152 |
- Restarting the service doesn't cut the InternalInterface |
153 |
as the bridge isn't restarted |
154 |
- Correct (truely this time) the bug with dhcpd looping |
155 |
- Panel re-writen in FormMagick (much more simple now) |
156 |
- Removed the certificate manager, now handled by phpki |
157 |
- Real-time clients info using Net::OpenVPN::Manage |
158 |
- Routes to local networks are pushed to clients |
159 |
|
160 |
* Tue Feb 06 2007 Daniel Berteaud <daniel@firewall-services.com> |
161 |
- [1.1-1] |
162 |
- Bugs fixes (repported by Stephan Braunstein) |
163 |
- corrections in the en language |
164 |
|
165 |
* Tue Feb 06 2007 Daniel Berteaud <daniel@firewall-services.com> |
166 |
- [1.1-0] |
167 |
- panel enhancement |
168 |
- little correction in the local file |
169 |
|
170 |
* Fri Dec 11 2006 Daniel Berteaud <daniel@firewall-services.com> |
171 |
- [1.0-3] |
172 |
- correction of permissions on startup and shutdown scripts |
173 |
- little correction in the local file |
174 |
|
175 |
* Fri Dec 08 2006 Daniel Berteaud <daniel@firewall-services.com> |
176 |
- [1.0-2] |
177 |
- Added missing directory keys/bridge |
178 |
|
179 |
* Fri Dec 06 2006 Daniel Berteaud <daniel@firewall-services.com> |
180 |
- [1.0-1] |
181 |
- Removed useless parameters from the panel (tap, br and localInf) |
182 |
- Added a stop script (k20openvpn-bridge) |
183 |
- panel renamed to openvpn-bridge for futur compatibility |
184 |
|
185 |
%prep |
186 |
|
187 |
%setup -q -n %{name}-%{version} |
188 |
%patch0 -p1 |
189 |
%patch1 -p1 |
190 |
%patch2 -p1 |
191 |
%patch3 -p1 |
192 |
%patch4 -p1 |
193 |
%patch5 -p1 |
194 |
#%patch6 -p1 |
195 |
%patch7 -p1 |
196 |
%patch8 -p1 |
197 |
%patch9 -p1 |
198 |
%patch10 -p1 |
199 |
%patch11 -p1 |
200 |
%patch12 -p1 |
201 |
%patch13 -p1 |
202 |
%patch14 -p1 |
203 |
%patch15 -p1 |
204 |
%patch16 -p1 |
205 |
%patch17 -p1 |
206 |
%patch18 -p1 |
207 |
%patch19 -p1 |
208 |
%patch20 -p1 |
209 |
%patch21 -p1 |
210 |
%patch22 -p1 |
211 |
%patch23 -p1 |
212 |
%patch24 -p1 |
213 |
%patch25 -p1 |
214 |
%patch26 -p1 |
215 |
%patch27 -p1 |
216 |
%patch28 -p1 |
217 |
|
218 |
%build |
219 |
perl createlinks |
220 |
|
221 |
%{__mkdir_p} root/etc/openvpn/bridge/ccd |
222 |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
223 |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
224 |
%{__mkdir_p} root/var/log/openvpn-bridge |
225 |
|
226 |
%install |
227 |
/bin/rm -rf $RPM_BUILD_ROOT |
228 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
229 |
/bin/rm -f %{name}-%{version}-filelist |
230 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
231 |
--file /var/service/openvpn-bridge/run 'attr(0755,root,root)' \ |
232 |
--file /var/service/openvpn-bridge/log/run 'attr(0755,root,root)' \ |
233 |
--dir /var/log/openvpn-bridge 'attr(0750,smelog,smelog)' \ |
234 |
--dir /etc/openvpn/bridge/pub 'attr(0755,root,root)' \ |
235 |
--dir /etc/openvpn/bridge/priv 'attr(0750,root,root)' \ |
236 |
--dir /etc/openvpn/bridge/ccd 'attr(0755,root,root)' \ |
237 |
--file /usr/bin/ovpn-bridge-update-crl 'attr(0750,root,root)' \ |
238 |
> %{name}-%{version}-filelist |
239 |
|
240 |
%files -f %{name}-%{version}-filelist |
241 |
%defattr(-,root,root) |
242 |
|
243 |
%clean |
244 |
rm -rf $RPM_BUILD_ROOT |
245 |
|
246 |
|
247 |
%post |
248 |
|
249 |
%preun |
250 |
if [ $1 -eq 0 ] ; then |
251 |
/sbin/e-smith/db configuration setprop openvpn-bridge status disabled |
252 |
sv d /service/openvpn-bridge |
253 |
fi |
254 |
|
255 |
true |