1 |
jpp |
1.11 |
# $Id: smeserver-openvpn-s2s.spec,v 1.10 2022/07/30 17:38:35 brianr Exp $ |
2 |
brianr |
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 |
jpp |
1.11 |
%define release 18 |
10 |
brianr |
1.1 |
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-s2s-0.2-use_verify_x509_name.patch |
17 |
|
|
Patch1: smeserver-openvpn-s2s-0.2-locale-2015-02-17.patch |
18 |
|
|
Patch2: smeserver-openvpn-s2s-0.2-locale-2015-07-01.patch |
19 |
|
|
Patch3: smeserver-openvpn-s2s-0.2-fix_daemon_id_validation.patch |
20 |
|
|
Patch4: smeserver-openvpn-s2s-0.2-locale-2017-12-02.patch |
21 |
brianr |
1.2 |
Patch5: smeserver-openvpn-s2s-0.2-Alter-for-systemd-startup.patch |
22 |
jpp |
1.3 |
Patch6: smeserver-openvpn-s2s-0.2-sme10.patch |
23 |
terryfage |
1.7 |
Patch7: smeserver-openvpn-s2s-0.2-locale-2021-08-23.patch |
24 |
terryfage |
1.8 |
Patch8: smeserver-openvpn-s2s-0.2-locale-2021-09-08.patch |
25 |
jpp |
1.9 |
Patch9: smeserver-openvpn-s2s-0.2-bz12019-backup.patch |
26 |
jpp |
1.11 |
Patch10: smeserver-openvpn-s2s-0.2-bz12224.patch |
27 |
brianr |
1.1 |
|
28 |
|
|
BuildArchitectures: noarch |
29 |
|
|
|
30 |
|
|
BuildRequires: e-smith-devtools |
31 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
32 |
|
|
|
33 |
|
|
Requires: e-smith-base |
34 |
|
|
Requires: openvpn >= 2.1 |
35 |
|
|
|
36 |
|
|
%description |
37 |
|
|
This package contains all the needed scripts and templates |
38 |
|
|
to run openvpn in client or server mode for site to site tunnels |
39 |
|
|
|
40 |
|
|
%changelog |
41 |
jpp |
1.11 |
* Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-18.sme |
42 |
|
|
- improve panel display [SME: 12224] |
43 |
|
|
|
44 |
brianr |
1.10 |
* Sat Jul 30 2022 Brian Read <brianr@bjsystems.co.uk> 0.2-17.sme |
45 |
|
|
- Re-build and link to latest devtools [SME: 11997] |
46 |
|
|
|
47 |
jpp |
1.9 |
* Sat Jul 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-16.sme |
48 |
|
|
- add to core backup [SME: 12019] |
49 |
|
|
|
50 |
terryfage |
1.8 |
* Wed Sep 08 2021 Terry Fage <terry.fage@gmail.com> 0.2-14.sme |
51 |
|
|
- apply locale 2021-09-08 patch |
52 |
|
|
|
53 |
terryfage |
1.7 |
* Mon Aug 23 2021 Terry Fage <terry.fage@gmail.com> 0.2-14.sme |
54 |
|
|
- apply locale 2021-08-23 patch |
55 |
|
|
|
56 |
jpp |
1.6 |
* Thu Apr 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-13.sme |
57 |
brianr |
1.10 |
- Re-build and link to latest devtools permission on log dir [SME: 11516] |
58 |
jpp |
1.6 |
|
59 |
jpp |
1.5 |
* Wed Mar 31 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-12.sme |
60 |
brianr |
1.10 |
- Re-build and link to latest devtools typos [SME: 11498] |
61 |
jpp |
1.5 |
|
62 |
jpp |
1.4 |
* Tue Mar 30 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.2-11.sme |
63 |
jpp |
1.3 |
- enforce better cipher with settings [SME: 11498] |
64 |
|
|
- enforce better HMAC with setting [SME: 11498] |
65 |
|
|
- enforce TLS 1.2 or better with setting [SME: 11498] |
66 |
|
|
- enforce strong TLS ciphers with setting [SME: 11498] |
67 |
|
|
- better list of vpn connections [SME: 11337] |
68 |
|
|
- allow soft reload of individual connection [SME: 11337] |
69 |
brianr |
1.10 |
- Re-build and link to latest devtools incorect permission on private keys [SME: 11337] |
70 |
jpp |
1.3 |
|
71 |
brianr |
1.2 |
* Thu Feb 04 2021 Brian Read <brianr@bjsystems.co.uk> 0.2-9.sme |
72 |
|
|
- Initial import to SME10 [SME: 11337] |
73 |
|
|
- Alter-for-systemd-startup |
74 |
|
|
|
75 |
brianr |
1.1 |
* Sat Dec 02 2017 SME Translation Server <translations@contribs.org> 0.2-8.sme |
76 |
|
|
- apply locale 2017-12-02 patch |
77 |
|
|
|
78 |
|
|
* Wed Oct 25 2017 Daniel Berteaud <daniel@firewall-services.com> 0.2-7.sme |
79 |
|
|
- Fix daemon ID validation [SME: 10446] |
80 |
|
|
|
81 |
|
|
* Mon Feb 8 2016 Daniel Berteaud <daniel@firewall-services.com> 0.2-6.sme |
82 |
|
|
- Create /etc/openvpn/s2s/dev/urandom [SME: 9238] |
83 |
|
|
|
84 |
|
|
* Wed Jul 1 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.2-5.sme |
85 |
|
|
- Apply smeserver-openvpn-s2s-0.2-locale-2015-07-01.patch [SME: 8967] |
86 |
|
|
|
87 |
|
|
* Tue Feb 17 2015 Daniel Berteaud <daniel@firewall-services.com> 0.2-4.sme |
88 |
|
|
- Apply locale 2015-02-17 patch |
89 |
|
|
|
90 |
|
|
* Thu Dec 18 2014 Daniel Berteaud <daniel@firewall-services.com> 0.2-3.sme |
91 |
|
|
- Create required (but unused) /etc/openvpn/s2s/tmp dir |
92 |
|
|
|
93 |
|
|
* Thu Nov 14 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2-2.sme |
94 |
|
|
- Use verify-x509-name instead of tls-remote |
95 |
|
|
|
96 |
|
|
* Mon Nov 11 2013 Daniel Berteaud <daniel@firewall-services.com> 0.2-1.sme |
97 |
|
|
- Rebuild for SME9 |
98 |
|
|
|
99 |
|
|
* Sun Jul 14 2013 JP Pialasse <tests@pialasse.com> 0.1-22.sme |
100 |
|
|
- apply locale 2013-07-14 patch |
101 |
|
|
|
102 |
|
|
* Thu Oct 13 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-21.sme |
103 |
|
|
- Apply locale 2011-10-13 patch |
104 |
|
|
|
105 |
|
|
* Thu Jun 2 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-20.sme |
106 |
|
|
- Fix remote host description |
107 |
|
|
|
108 |
|
|
* Wed Jun 1 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-19.sme |
109 |
|
|
- SNAT outbound connexions to use the local IP as source |
110 |
|
|
|
111 |
|
|
* Tue Apr 19 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-18.sme |
112 |
|
|
- Reduce inactivity timeout |
113 |
|
|
|
114 |
|
|
* Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 0.1-17.sme |
115 |
|
|
- apply locale 2011-03-06 patch |
116 |
|
|
|
117 |
|
|
* Tue Jan 25 2011 Daniel Berteaud <daniel@firewall-services.com> 0.1-16.sme |
118 |
|
|
- Stop disabling service on rpm removal (spec change only) |
119 |
|
|
|
120 |
|
|
* Tue Dec 7 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-15.sme |
121 |
|
|
- Remove useless smb.conf template |
122 |
|
|
|
123 |
|
|
* Tue Dec 7 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-14.sme |
124 |
|
|
- Fix type variable (thks M. Doerner) |
125 |
|
|
|
126 |
|
|
* Mon Nov 8 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-13.sme |
127 |
|
|
- Apply locale 2010-11-08 patch |
128 |
|
|
|
129 |
|
|
* Thu Nov 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-12.sme |
130 |
|
|
- Apply locale 2010-11-04 patch |
131 |
|
|
|
132 |
|
|
* Tue Nov 02 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-11.sme |
133 |
|
|
- Remove the nice directive |
134 |
|
|
|
135 |
|
|
* Mon Oct 18 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-10.sme |
136 |
|
|
- Expand smb.conf and restart samba services |
137 |
|
|
|
138 |
|
|
* Mon Oct 18 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-9.sme |
139 |
|
|
- Fix typo in up script |
140 |
|
|
|
141 |
|
|
* Mon Oct 18 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-8.sme |
142 |
|
|
- Various enhancement in templates |
143 |
|
|
- Set wget timeout |
144 |
|
|
- Fix crontab templates |
145 |
|
|
|
146 |
|
|
* Sun Oct 17 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-7.sme |
147 |
|
|
- Implement CRL updates and verification |
148 |
|
|
- Fix masq template |
149 |
|
|
|
150 |
|
|
* Sun Oct 17 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-6.sme |
151 |
|
|
- Set VPN networks non removable |
152 |
|
|
|
153 |
|
|
* Sun Oct 17 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-5.sme |
154 |
|
|
- Rename logrotate configuration file |
155 |
|
|
- Add missingok to logrotate conf |
156 |
|
|
- Support per configuration customization |
157 |
|
|
- Add TLS auth support |
158 |
|
|
|
159 |
|
|
* Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-4.sme |
160 |
|
|
- Fix adding routes in up script |
161 |
|
|
- Log drop trafic |
162 |
|
|
- Fix multiple net validation |
163 |
|
|
|
164 |
|
|
* Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-3.sme |
165 |
|
|
- allow one-way VPN with AllowInbound prop |
166 |
|
|
|
167 |
|
|
* Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-3.sme |
168 |
|
|
- Various fixes |
169 |
|
|
|
170 |
|
|
* Mon Oct 4 2010 Daniel Berteaud <daniel@firewall-services.com> 0.1-1.sme |
171 |
|
|
- initiale release (based on work from Florian Dejan) |
172 |
|
|
|
173 |
|
|
%prep |
174 |
|
|
|
175 |
|
|
%setup -q -n %{name}-%{version} |
176 |
|
|
%patch0 -p1 |
177 |
|
|
%patch1 -p1 |
178 |
|
|
%patch2 -p1 |
179 |
|
|
%patch3 -p1 |
180 |
|
|
%patch4 -p1 |
181 |
brianr |
1.2 |
%patch5 -p1 |
182 |
jpp |
1.3 |
%patch6 -p1 |
183 |
terryfage |
1.7 |
%patch7 -p1 |
184 |
terryfage |
1.8 |
%patch8 -p1 |
185 |
jpp |
1.9 |
%patch9 -p1 |
186 |
jpp |
1.11 |
%patch10 -p1 |
187 |
brianr |
1.1 |
|
188 |
|
|
%build |
189 |
|
|
perl createlinks |
190 |
|
|
|
191 |
|
|
%{__mkdir_p} root/etc/openvpn/s2s/priv |
192 |
|
|
%{__mkdir_p} root/etc/openvpn/s2s/pub |
193 |
|
|
%{__mkdir_p} root/etc/openvpn/s2s/tmp |
194 |
|
|
%{__mkdir_p} root/etc/openvpn/s2s/dev |
195 |
|
|
%{__mkdir_p} root/var/run/openvpn-s2s |
196 |
|
|
%{__mkdir_p} root/var/log/openvpn-s2s |
197 |
|
|
|
198 |
|
|
%install |
199 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
200 |
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
201 |
brianr |
1.2 |
/bin/chmod +x $RPM_BUILD_ROOT/usr/sbin/systemd/openvpn-s2s |
202 |
brianr |
1.1 |
/bin/rm -f %{name}-%{version}-filelist |
203 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
204 |
|
|
--dir /etc/openvpn/s2s/pub 'attr(0755,root,root)' \ |
205 |
|
|
--dir /etc/openvpn/s2s/priv 'attr(0750,root,root)' \ |
206 |
|
|
--dir /etc/openvpn/s2s/tmp 'attr(0750,root,root)' \ |
207 |
jpp |
1.6 |
--dir /var/log/openvpn-s2s 'attr(0770,root,root)' \ |
208 |
brianr |
1.1 |
--file /etc/openvpn/s2s/bin/up 'attr(4750,root,openvpn)' \ |
209 |
|
|
> %{name}-%{version}-filelist |
210 |
|
|
|
211 |
|
|
%files -f %{name}-%{version}-filelist |
212 |
|
|
%defattr(-,root,root) |
213 |
|
|
|
214 |
|
|
%clean |
215 |
|
|
rm -rf $RPM_BUILD_ROOT |
216 |
|
|
|
217 |
|
|
%post |
218 |
|
|
if [ \! -c /etc/openvpn/s2s/dev/urandom ]; then |
219 |
|
|
mknod -m 0444 /etc/openvpn/s2s/dev/urandom c 1 9 |
220 |
|
|
fi |
221 |
jpp |
1.6 |
#chown root:root /var/log/openvpn-s2s |
222 |
brianr |
1.1 |
%preun |