Add config files
This commit is contained in:
parent
2d14f92d76
commit
eefd475f21
@ -20,11 +20,13 @@
|
|||||||
|
|
||||||
Name: libreswan
|
Name: libreswan
|
||||||
Version: 3.25
|
Version: 3.25
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: A free implementation of IPsec & IKE for Linux
|
Summary: A free implementation of IPsec & IKE for Linux
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Url: https://libreswan.org/
|
Url: https://libreswan.org/
|
||||||
Source0: https://download.libreswan.org/%{name}-%{version}.tar.gz
|
Source0: https://download.libreswan.org/%{name}-%{version}.tar.gz
|
||||||
|
Source1: openeuler-libreswan-sysctl.conf
|
||||||
|
Source2: openeuler-libreswan-tmpfiles.conf
|
||||||
|
|
||||||
Patch0001: libreswan-3.25-relax-delete.patch
|
Patch0001: libreswan-3.25-relax-delete.patch
|
||||||
Patch0002: libreswan-3.25-unbound-hook.patch
|
Patch0002: libreswan-3.25-unbound-hook.patch
|
||||||
@ -87,9 +89,9 @@ FS=$(pwd)
|
|||||||
install -d -m 0700 %{buildroot}{%{_rundir}/pluto,%{_localstatedir}/log/pluto/peer}
|
install -d -m 0700 %{buildroot}{%{_rundir}/pluto,%{_localstatedir}/log/pluto/peer}
|
||||||
install -d %{buildroot}{%{_sbindir},%{_tmpfilesdir},%{_libdir}/fipscheck,%{_sysconfdir}/sysctl.d}
|
install -d %{buildroot}{%{_sbindir},%{_tmpfilesdir},%{_libdir}/fipscheck,%{_sysconfdir}/sysctl.d}
|
||||||
|
|
||||||
install -m 0644 packaging/fedora/libreswan-sysctl.conf %{buildroot}%{_sysconfdir}/sysctl.d/50-libreswan.conf
|
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysctl.d/50-libreswan.conf
|
||||||
|
|
||||||
install -m 0644 packaging/fedora/libreswan-tmpfiles.conf %{buildroot}%{_tmpfilesdir}/libreswan.conf
|
install -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/libreswan.conf
|
||||||
|
|
||||||
echo "include %{_sysconfdir}/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets
|
echo "include %{_sysconfdir}/ipsec.d/*.secrets" > %{buildroot}%{_sysconfdir}/ipsec.secrets
|
||||||
|
|
||||||
@ -128,6 +130,9 @@ export NSS_DISABLE_HW_GCM=1
|
|||||||
%doc %{_mandir}/*/*
|
%doc %{_mandir}/*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 03 2020 Jiangping Hu <hujp1985@foxmail.com> - 3.25-6
|
||||||
|
- Add config files
|
||||||
|
|
||||||
* Mon Oct 28 2019 yanzhihua <yanzhihua4@huawei.com> - 3.25-4
|
* Mon Oct 28 2019 yanzhihua <yanzhihua4@huawei.com> - 3.25-4
|
||||||
- Package init
|
- Package init
|
||||||
|
|
||||||
|
|||||||
6
openeuler-libreswan-sysctl.conf
Normal file
6
openeuler-libreswan-sysctl.conf
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
net.ipv6.conf.default.accept_redirects = 0
|
||||||
|
net.ipv6.conf.all.accept_redirects = 0
|
||||||
|
net.ipv4.conf.default.send_redirects = 0
|
||||||
|
net.ipv4.conf.default.accept_redirects = 0
|
||||||
|
net.ipv4.conf.all.send_redirects = 0
|
||||||
|
net.ipv4.conf.all.accept_redirects = 0
|
||||||
1
openeuler-libreswan-tmpfiles.conf
Normal file
1
openeuler-libreswan-tmpfiles.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
d /run/pluto 755 root root -
|
||||||
Loading…
x
Reference in New Issue
Block a user