1 |
vip-ire |
1.4 |
# $Id: smeserver-openvpn-s2s.spec,v 1.3 2013/11/14 17:50:53 vip-ire Exp $ |
2 |
vip-ire |
1.1 |
# Authority: vip-ire |
3 |
|
|
# Name: Daniel Berteaud |
4 |
|
|
|
5 |
|
|
Summary: OpenVPN, a strong VPN solution built over SSL, for site to site tunnels |
6 |
|
|
%define name smeserver-openvpn-s2s |
7 |
|
|
Name: %{name} |
8 |
|
|
%define version 0.2 |
9 |
vip-ire |
1.4 |
%define release 3 |
10 |
vip-ire |
1.1 |
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
License: GPL |
13 |
|
|
Group: Networking/Remote access |
14 |
vip-ire |
1.2 |
Source: %{name}-%{version}.tar.xz |
15 |
vip-ire |
1.3 |
Patch0: smeserver-openvpn-s2s-0.2-use_verify_x509_name.patch |
16 |
vip-ire |
1.1 |
BuildArchitectures: noarch |
17 |
|
|
|
18 |
|
|
BuildRequires: e-smith-devtools |
19 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
|
|
|
21 |
|
|
Requires: e-smith-base |
22 |
|
|
Requires: openvpn >= 2.1 |
23 |
|
|
|
24 |
|
|
%description |
25 |
|
|
This package contains all the needed scripts and templates |
26 |
|
|
to run openvpn in client or server mode for site to site tunnels |
27 |
|
|
|
28 |
|
|
%changelog |
29 |
vip-ire |
1.4 |
* Thu Dec 18 2014 Daniel Berteaud <daniel@firewall-services.com> 0.2-3.sme |
30 |
|
|
- Create required (but unused) /etc/openvpn/s2s/tmp dir |
31 |
|
|
|
32 |
vip-ire |
1.3 |
* Thu Nov 14 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2-2.sme |
33 |
|
|
- Use verify-x509-name instead of tls-remote |
34 |
|
|
|
35 |
vip-ire |
1.1 |
* Mon Nov 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2-1.sme |
36 |
|
|
- Rebuild for SME9 |
37 |
|
|
|
38 |
|
|
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 0.1-22.sme |
39 |
|
|
- apply locale 2013-07-14 patch |
40 |
|
|
|
41 |
|
|
* Thu Oct 13 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-21.sme |
42 |
|
|
- Apply locale 2011-10-13 patch |
43 |
|
|
|
44 |
|
|
* Thu Jun 2 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-20.sme |
45 |
|
|
- Fix remote host description |
46 |
|
|
|
47 |
|
|
* Wed Jun 1 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-19.sme |
48 |
|
|
- SNAT outbound connexions to use the local IP as source |
49 |
|
|
|
50 |
|
|
* Tue Apr 19 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-18.sme |
51 |
|
|
- Reduce inactivity timeout |
52 |
|
|
|
53 |
|
|
* Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 0.1-17.sme |
54 |
|
|
- apply locale 2011-03-06 patch |
55 |
|
|
|
56 |
|
|
* Tue Jan 25 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-16.sme |
57 |
|
|
- Stop disabling service on rpm removal (spec change only) |
58 |
|
|
|
59 |
|
|
* Tue Dec 7 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-15.sme |
60 |
|
|
- Remove useless smb.conf template |
61 |
|
|
|
62 |
|
|
* Tue Dec 7 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-14.sme |
63 |
|
|
- Fix type variable (thks M. Doerner) |
64 |
|
|
|
65 |
|
|
* Mon Nov 8 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-13.sme |
66 |
|
|
- Apply locale 2010-11-08 patch |
67 |
|
|
|
68 |
|
|
* Thu Nov 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-12.sme |
69 |
|
|
- Apply locale 2010-11-04 patch |
70 |
|
|
|
71 |
|
|
* Tue Nov 02 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-11.sme |
72 |
|
|
- Remove the nice directive |
73 |
|
|
|
74 |
|
|
* Mon Oct 18 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-10.sme |
75 |
|
|
- Expand smb.conf and restart samba services |
76 |
|
|
|
77 |
|
|
* Mon Oct 18 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-9.sme |
78 |
|
|
- Fix typo in up script |
79 |
|
|
|
80 |
|
|
* Mon Oct 18 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-8.sme |
81 |
|
|
- Various enhancement in templates |
82 |
|
|
- Set wget timeout |
83 |
|
|
- Fix crontab templates |
84 |
|
|
|
85 |
|
|
* Sun Oct 17 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-7.sme |
86 |
|
|
- Implement CRL updates and verification |
87 |
|
|
- Fix masq template |
88 |
|
|
|
89 |
|
|
* Sun Oct 17 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-6.sme |
90 |
|
|
- Set VPN networks non removable |
91 |
|
|
|
92 |
|
|
* Sun Oct 17 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-5.sme |
93 |
|
|
- Rename logrotate configuration file |
94 |
|
|
- Add missingok to logrotate conf |
95 |
|
|
- Support per configuration customization |
96 |
|
|
- Add TLS auth support |
97 |
|
|
|
98 |
|
|
* Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-4.sme |
99 |
|
|
- Fix adding routes in up script |
100 |
|
|
- Log drop trafic |
101 |
|
|
- Fix multiple net validation |
102 |
|
|
|
103 |
|
|
* Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-3.sme |
104 |
|
|
- allow one-way VPN with AllowInbound prop |
105 |
|
|
|
106 |
|
|
* Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-3.sme |
107 |
|
|
- Various fixes |
108 |
|
|
|
109 |
|
|
* Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-1.sme |
110 |
|
|
- initiale release (based on work from Florian Dejan) |
111 |
|
|
|
112 |
|
|
%prep |
113 |
|
|
|
114 |
|
|
%setup -q -n %{name}-%{version} |
115 |
vip-ire |
1.3 |
%patch0 -p1 |
116 |
vip-ire |
1.1 |
|
117 |
|
|
%build |
118 |
|
|
perl createlinks |
119 |
|
|
|
120 |
|
|
%{__mkdir_p} root/etc/openvpn/s2s/priv |
121 |
|
|
%{__mkdir_p} root/etc/openvpn/s2s/pub |
122 |
vip-ire |
1.4 |
%{__mkdir_p} root/etc/openvpn/s2s/tmp |
123 |
vip-ire |
1.1 |
%{__mkdir_p} root/var/run/openvpn-s2s |
124 |
|
|
%{__mkdir_p} root/var/log/openvpn-s2s |
125 |
|
|
|
126 |
|
|
%install |
127 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
128 |
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
129 |
|
|
/bin/rm -f %{name}-%{version}-filelist |
130 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
131 |
|
|
--dir /etc/openvpn/s2s/pub 'attr(0755,root,root)' \ |
132 |
|
|
--dir /etc/openvpn/s2s/priv 'attr(0750,root,root)' \ |
133 |
vip-ire |
1.4 |
--dir /etc/openvpn/s2s/tmp 'attr(0750,root,root)' \ |
134 |
vip-ire |
1.1 |
--dir /var/log/openvpn-s2s 'attr(0770,root,nobody)' \ |
135 |
|
|
--file /etc/openvpn/s2s/bin/up 'attr(4750,root,openvpn)' \ |
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 |
|
|
|