4 |
Summary: OpenVPN, a strong VPN solution build over SSL, pre-configured for routed mode |
Summary: OpenVPN, a strong VPN solution build over SSL, pre-configured for routed mode |
5 |
Name: smeserver-openvpn-routed |
Name: smeserver-openvpn-routed |
6 |
%define version 0.1.6 |
%define version 0.1.6 |
7 |
%define release 3 |
%define release 5 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
21 |
#Requires: perl(Net::OpenVPN::Manage) |
#Requires: perl(Net::OpenVPN::Manage) |
22 |
Patch0:smeserver-openvpn-routed-0.1.6-Add-in-systemd-startup.patch |
Patch0:smeserver-openvpn-routed-0.1.6-Add-in-systemd-startup.patch |
23 |
Patch1: smeserver-openvpn-routed-0.1.6-bz11336-sme10compatible.patch |
Patch1: smeserver-openvpn-routed-0.1.6-bz11336-sme10compatible.patch |
24 |
|
Patch2: smeserver-openvpn-routed-0.1.6-bz12020-backup.patch |
25 |
|
|
26 |
%description |
%description |
27 |
This package contains all the needed scripts and templates |
This package contains all the needed scripts and templates |
29 |
|
|
30 |
|
|
31 |
%changelog |
%changelog |
32 |
* Thu Apr 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.1.6-3.sme |
* Sat Jul 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 0.1.6-5.sme |
33 |
|
- add to core backup [SME: 11997] |
34 |
|
|
35 |
|
* Thu Apr 01 2021 Jean-Philippe Pialasse <tests@pialasse.com> 0.1.6-4.sme |
36 |
- autoconfiguration if openvpn-bridge is isntalled and configured [SME: 11336] |
- autoconfiguration if openvpn-bridge is isntalled and configured [SME: 11336] |
37 |
- reworked systemd unit and scripts |
- reworked systemd unit and scripts |
38 |
- new property HMAC forced to SHA256, instead of insecure default SHA1 [SME: 9925] |
- new property HMAC forced to SHA256, instead of insecure default SHA1 [SME: 9925] |
70 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
71 |
%patch0 -p1 |
%patch0 -p1 |
72 |
%patch1 -p1 |
%patch1 -p1 |
73 |
|
%patch2 -p1 |
74 |
|
|
75 |
%build |
%build |
76 |
perl createlinks |
perl createlinks |
85 |
%install |
%install |
86 |
/bin/rm -rf $RPM_BUILD_ROOT |
/bin/rm -rf $RPM_BUILD_ROOT |
87 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
|
/bin/chmod +x $RPM_BUILD_ROOT/usr/sbin/systemd/openvpn-routed |
|
88 |
/bin/rm -f %{name}-%{version}-filelist |
/bin/rm -f %{name}-%{version}-filelist |
89 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
90 |
|
--file /sbin/e-smith/systemd/openvpn-routed 'attr(0755,root,root)' \ |
91 |
--file /var/service/openvpn-routed/run 'attr(0755,root,root)' \ |
--file /var/service/openvpn-routed/run 'attr(0755,root,root)' \ |
92 |
--file /var/service/openvpn-routed/log/run 'attr(0755,root,root)' \ |
--file /var/service/openvpn-routed/log/run 'attr(0755,root,root)' \ |
93 |
--dir /var/log/openvpn-routed 'attr(0750,smelog,smelog)' \ |
--dir /var/log/openvpn-routed 'attr(0750,smelog,smelog)' \ |