1 |
Summary: OpenVPN, a strong VPN solution build over SSL, pre-configured for bridge mode |
2 |
%define name smeserver-openvpn-bridge |
3 |
Name: %{name} |
4 |
%define version 2.0 |
5 |
%define release 8 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GPL |
9 |
Group: Networking/Remote access |
10 |
Source: %{name}-%{version}.tar.gz |
11 |
|
12 |
Patch0: smeserver-openvpn-bridge-2.0-remove_dup_migrate.patch |
13 |
Patch1: smeserver-openvpn-bridge-2.0-pull.patch |
14 |
Patch2: smeserver-openvpn-bridge-2.0-config_required.patch |
15 |
Patch3: smeserver-openvpn-bridge-2.0-config_cleanup.patch |
16 |
Patch4: smeserver-openvpn-bridge-2.0-add_rule.patch |
17 |
Patch5: smeserver-openvpn-bridge-2.0-locale1.patch |
18 |
#Patch6: smeserver-openvpn-bridge-2.0-openvpn_db.patch |
19 |
Patch7: smeserver-openvpn-bridge-2.0-check_certs.patch |
20 |
Patch8: smeserver-openvpn-bridge-2.0-check_bridge.patch |
21 |
Patch9: smeserver-openvpn-bridge-2.0-configure_crl_url.patch |
22 |
Patch10: smeserver-openvpn-bridge-2.0-check_certs.patch2 |
23 |
Patch11: smeserver-openvpn-bridge-2.0-create_openvpn_db.patch |
24 |
|
25 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
26 |
BuildArchitectures: noarch |
27 |
Requires: e-smith-base |
28 |
Requires: openvpn |
29 |
Requires: perl(Net::OpenVPN::Manage) |
30 |
Obsoletes: smeserver-openvpn-bridge-fws |
31 |
Obsoletes: smeserver-openvpn-bridge.fws |
32 |
|
33 |
%description |
34 |
This package contains all the needed scripts and templates |
35 |
to have a full working openvpn server running in bridge mode. |
36 |
The panel of the server manager has a certificate manager so you |
37 |
won't have to generate them manually |
38 |
|
39 |
%changelog |
40 |
* Thu Jan 29 2009 Daniel B. <daniel@firewall-services.com> [2.0-8] |
41 |
- Fix an error with the creation of the db |
42 |
|
43 |
* Wed Jan 28 2009 Daniel B. <daniel@firewall-services.com> [2.0-7] |
44 |
- Cleanly create openvpn-bridge db |
45 |
|
46 |
* Fri Jan 16 2009 Daniel B. <daniel@firewall-services.com> [2.0-6] |
47 |
- Just warn if openvpn db is missing |
48 |
- Fix certificates check |
49 |
- Warn if bridge service isn't enabled |
50 |
- Configure the CRL update URL |
51 |
|
52 |
* Mon Jan 12 2009 Daniel B. <daniel@firewall-services.com> [2.0-5] |
53 |
- localization patch |
54 |
|
55 |
* Mon Dec 22 2008 Daniel B. <daniel@firewall-services.com> [2.0-4] |
56 |
- Add validate_common_name routine |
57 |
|
58 |
* Wed Dec 19 2008 Daniel B. <daniel@firewall-services.com> [2.0-3] |
59 |
- Added option configRequired (accept only certificate listed in the rules section) |
60 |
- Clean config templates |
61 |
|
62 |
* Tue Dec 16 2008 Daniel B. <daniel@firewall-services.com> [2.0-2] |
63 |
- Add missing pull directive in client config |
64 |
|
65 |
* Fri Dec 12 2008 Daniel B. <daniel@firewall-services.com> [2.0-1] |
66 |
- Remove useless migrate fragment (now handled by the bridge package) |
67 |
|
68 |
* Thu Dec 04 2008 Daniel B. <daniel@firewall-services.com> [2.0-0] |
69 |
- The bridge stuff is now in a separated rpm |
70 |
- Restarting the service doesn't cut the InternalInterface |
71 |
as the bridge isn't restarted |
72 |
- Correct (truely this time) the bug with dhcpd looping |
73 |
- Panel re-writen in FormMagick (much more simple now) |
74 |
- Removed the certificate manager, now handled by phpki |
75 |
- Real-time clients info using Net::OpenVPN::Manage |
76 |
- Routes to local networks are pushed to clients |
77 |
|
78 |
* Tue Feb 06 2007 Daniel Berteaud <daniel@firewall-services.com> |
79 |
- [1.1-1] |
80 |
- Bugs fixes (repported by Stephan Braunstein) |
81 |
- corrections in the en language |
82 |
|
83 |
* Tue Feb 06 2007 Daniel Berteaud <daniel@firewall-services.com> |
84 |
- [1.1-0] |
85 |
- panel enhancement |
86 |
- little correction in the local file |
87 |
|
88 |
* Fri Dec 11 2006 Daniel Berteaud <daniel@firewall-services.com> |
89 |
- [1.0-3] |
90 |
- correction of permissions on startup and shutdown scripts |
91 |
- little correction in the local file |
92 |
|
93 |
* Fri Dec 08 2006 Daniel Berteaud <daniel@firewall-services.com> |
94 |
- [1.0-2] |
95 |
- Added missing directory keys/bridge |
96 |
|
97 |
* Fri Dec 06 2006 Daniel Berteaud <daniel@firewall-services.com> |
98 |
- [1.0-1] |
99 |
- Removed useless parameters from the panel (tap, br and localInf) |
100 |
- Added a stop script (k20openvpn-bridge) |
101 |
- panel renamed to openvpn-bridge for futur compatibility |
102 |
|
103 |
%prep |
104 |
|
105 |
%setup -q -n %{name}-%{version} |
106 |
%patch0 -p1 |
107 |
%patch1 -p1 |
108 |
%patch2 -p1 |
109 |
%patch3 -p1 |
110 |
%patch4 -p1 |
111 |
%patch5 -p1 |
112 |
#%patch6 -p1 |
113 |
%patch7 -p1 |
114 |
%patch8 -p1 |
115 |
%patch9 -p1 |
116 |
%patch10 -p1 |
117 |
%patch11 -p1 |
118 |
|
119 |
%build |
120 |
perl createlinks |
121 |
|
122 |
%{__mkdir_p} root/etc/openvpn/bridge/ccd |
123 |
%{__mkdir_p} root/etc/openvpn/bridge/priv |
124 |
%{__mkdir_p} root/etc/openvpn/bridge/pub |
125 |
%{__mkdir_p} root/var/log/openvpn-bridge |
126 |
|
127 |
%install |
128 |
/bin/rm -rf $RPM_BUILD_ROOT |
129 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
130 |
/bin/rm -f %{name}-%{version}-filelist |
131 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
132 |
--file /var/service/openvpn-bridge/run 'attr(0755,root,root)' \ |
133 |
--file /var/service/openvpn-bridge/log/run 'attr(0755,root,root)' \ |
134 |
--dir /var/log/openvpn-bridge 'attr(0750,smelog,smelog)' \ |
135 |
--file /usr/bin/ovpn-bridge-update-crl 'attr(0750,root,root)' \ |
136 |
> %{name}-%{version}-filelist |
137 |
|
138 |
%files -f %{name}-%{version}-filelist |
139 |
%defattr(-,root,root) |
140 |
|
141 |
%clean |
142 |
rm -rf $RPM_BUILD_ROOT |
143 |
|
144 |
|
145 |
%post |
146 |
|
147 |
%preun |
148 |
if [ $1 -eq 0 ] ; then |
149 |
/sbin/e-smith/db configuration setprop openvpn-bridge status disabled |
150 |
sv d /service/openvpn-bridge |
151 |
fi |
152 |
|
153 |
true |
154 |
|