1 |
# $Id: smeserver-openvpn-bridge.spec,v 1.1 2021/02/04 16:20:59 brianr Exp $ |
# $Id: smeserver-openvpn-bridge.spec,v 1.2 2021/02/13 14:43:54 brianr Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
6 |
%define name smeserver-openvpn-bridge |
%define name smeserver-openvpn-bridge |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 2.1 |
%define version 2.1 |
9 |
%define release 11 |
%define release 12 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GPL |
22 |
Patch6: smeserver-openvpn-bridge-2.1-push-routes.patch |
Patch6: smeserver-openvpn-bridge-2.1-push-routes.patch |
23 |
Patch7: smeserver-openvpn-bridge-2.1-locale-2019-12-07.patch |
Patch7: smeserver-openvpn-bridge-2.1-locale-2019-12-07.patch |
24 |
Patch8: smeserver-openvpn-bridge-2.1-Add-in-systemd-startup.patch |
Patch8: smeserver-openvpn-bridge-2.1-Add-in-systemd-startup.patch |
25 |
|
Patch9: smeserver-openvpn-bridge-2.1-bz11335.patch |
26 |
|
|
27 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
28 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
41 |
to have a full working openvpn server running in bridge mode. |
to have a full working openvpn server running in bridge mode. |
42 |
|
|
43 |
%changelog |
%changelog |
44 |
|
* Tue Mar 23 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.1-12.sme |
45 |
|
- fix permisison issue on private keys [SME: 11335] |
46 |
|
- rework unit file |
47 |
|
avoid failure, add ncp cipher, add loging status |
48 |
|
- add default cipher AES-256-CBC - if issue with older clients < 2.4 |
49 |
|
it is advised to set it to 'auto' or BF-CBC |
50 |
|
|
51 |
* Thu Feb 04 2021 Brian Read <brianr@bjsystems.co.uk> 2.1-11.sme |
* Thu Feb 04 2021 Brian Read <brianr@bjsystems.co.uk> 2.1-11.sme |
52 |
- Initial import to SME10 [SME: 11335] |
- Initial import to SME10 [SME: 11335] |
53 |
- Add-in-systemd-startup |
- Add-in-systemd-startup |
297 |
%patch6 -p1 |
%patch6 -p1 |
298 |
%patch7 -p1 |
%patch7 -p1 |
299 |
%patch8 -p1 |
%patch8 -p1 |
300 |
|
%patch9 -p1 |
301 |
|
|
302 |
|
rm -rf root/usr/sbin/systemd/ |
303 |
|
rm -rf root/var/service/ |
304 |
|
|
305 |
%build |
%build |
306 |
perl createlinks |
perl createlinks |
318 |
/bin/chmod +x $RPM_BUILD_ROOT/usr/sbin/systemd/openvpn-bridge |
/bin/chmod +x $RPM_BUILD_ROOT/usr/sbin/systemd/openvpn-bridge |
319 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
320 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
321 |
--file /var/service/openvpn-bridge/run 'attr(0755,root,root)' \ |
--dir /var/log/openvpn-bridge 'attr(0750,root,root)' \ |
|
--file /var/service/openvpn-bridge/log/run 'attr(0755,root,root)' \ |
|
|
--dir /var/log/openvpn-bridge 'attr(0750,smelog,smelog)' \ |
|
322 |
--dir /etc/openvpn/bridge/pub 'attr(0755,root,root)' \ |
--dir /etc/openvpn/bridge/pub 'attr(0755,root,root)' \ |
323 |
--dir /etc/openvpn/bridge/priv 'attr(0750,root,root)' \ |
--dir /etc/openvpn/bridge/priv 'attr(0750,root,root)' \ |
324 |
--dir /etc/openvpn/bridge/ccd 'attr(0755,root,root)' \ |
--dir /etc/openvpn/bridge/ccd 'attr(0755,root,root)' \ |