1 |
# $Id: smeserver-openvpn-s2s.spec,v 1.37 2010/07/19 08:43:15 vip-ire Exp $ |
# $Id: smeserver-openvpn-s2s.spec,v 1.10 2011/06/01 18:26:35 vip-ire Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
6 |
%define name smeserver-openvpn-s2s |
%define name smeserver-openvpn-s2s |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 0.1 |
%define version 0.1 |
9 |
%define release 11 |
%define release 20 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
39 |
Patch23: smeserver-openvpn-s2s-0.1-fix_removable_typo.patch |
Patch23: smeserver-openvpn-s2s-0.1-fix_removable_typo.patch |
40 |
Patch24: smeserver-openvpn-s2s-0.1-expand_and_restart_smb.patch |
Patch24: smeserver-openvpn-s2s-0.1-expand_and_restart_smb.patch |
41 |
Patch25: smeserver-openvpn-s2s-0.1-remove_nice.patch |
Patch25: smeserver-openvpn-s2s-0.1-remove_nice.patch |
42 |
|
Patch26: smeserver-openvpn-s2s-0.1-locale-2010-11-04.patch |
43 |
|
Patch27: smeserver-openvpn-s2s-0.1-locale-2010-11-08.patch |
44 |
|
Patch28: smeserver-openvpn-s2s-0.1-fix_type_variable.patch |
45 |
|
Patch29: smeserver-openvpn-s2s-0.1-remove_useless_samba_template.patch |
46 |
|
Patch30: smeserver-openvpn-s2s-0.1-locale-2011-03-06.patch |
47 |
|
Patch31: smeserver-openvpn-s2s-0.1-reduce_ping_restart.patch |
48 |
|
Patch32: smeserver-openvpn-s2s-0.1-snat_outbound.patch |
49 |
|
Patch33: smeserver-openvpn-s2s-0.1-fix_remote_host_desc.patch |
50 |
|
|
51 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
52 |
|
|
53 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
54 |
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
55 |
|
|
56 |
Requires: e-smith-base |
Requires: e-smith-base |
57 |
Requires: openvpn >= 2.1 |
Requires: openvpn >= 2.1 |
61 |
to run openvpn in client or server mode for site to site tunnels |
to run openvpn in client or server mode for site to site tunnels |
62 |
|
|
63 |
%changelog |
%changelog |
64 |
|
* Thu Jun 2 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-20.sme |
65 |
|
- Fix remote host description |
66 |
|
|
67 |
|
* Wed Jun 1 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-19.sme |
68 |
|
- SNAT outbound connexions to use the local IP as source |
69 |
|
|
70 |
|
* Tue Apr 19 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-18.sme |
71 |
|
- Reduce inactivity timeout |
72 |
|
|
73 |
|
* Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 0.1-17.sme |
74 |
|
- apply locale 2011-03-06 patch |
75 |
|
|
76 |
|
* Tue Jan 25 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-16.sme |
77 |
|
- Stop disabling service on rpm removal (spec change only) |
78 |
|
|
79 |
|
* Tue Dec 7 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-15.sme |
80 |
|
- Remove useless smb.conf template |
81 |
|
|
82 |
|
* Tue Dec 7 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-14.sme |
83 |
|
- Fix type variable (thks M. Doerner) |
84 |
|
|
85 |
|
* Mon Nov 8 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-13.sme |
86 |
|
- Apply locale 2010-11-08 patch |
87 |
|
|
88 |
|
* Thu Nov 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-12.sme |
89 |
|
- Apply locale 2010-11-04 patch |
90 |
|
|
91 |
* Tue Nov 02 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-11.sme |
* Tue Nov 02 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-11.sme |
92 |
- Remove the nice directive |
- Remove the nice directive |
93 |
|
|
158 |
%patch23 -p1 |
%patch23 -p1 |
159 |
%patch24 -p1 |
%patch24 -p1 |
160 |
%patch25 -p1 |
%patch25 -p1 |
161 |
|
%patch26 -p1 |
162 |
|
%patch27 -p1 |
163 |
|
%patch28 -p1 |
164 |
|
%patch29 -p1 |
165 |
|
%patch30 -p1 |
166 |
|
%patch31 -p1 |
167 |
|
%patch32 -p1 |
168 |
|
%patch33 -p1 |
169 |
|
|
170 |
%build |
%build |
171 |
perl createlinks |
perl createlinks |
196 |
%post |
%post |
197 |
|
|
198 |
%preun |
%preun |
|
if [ $1 -eq 0 ] ; then |
|
|
/sbin/e-smith/db configuration setprop openvpn-s2s status disabled |
|
|
/etc/rc.d/init.d/openvpn-s2s stop |
|
|
fi |
|
|
|
|
|
true |
|
199 |
|
|