Add tmpfiles config for creating /run/systemd
This commit is contained in:
@@ -8,6 +8,10 @@ Summary: An OpenSource IPsec-based VPN and TNC solution
|
||||
License: GPLv2+
|
||||
URL: http://www.strongswan.org/
|
||||
Source0: http://download.strongswan.org/%{name}-%{version}%{?prerelease}.tar.bz2
|
||||
|
||||
# tmpfiles.d configuration for the /run directory
|
||||
Source1: %{name}-tmpfiles.conf
|
||||
|
||||
Patch1: strongswan-5.6.0-uintptr_t.patch
|
||||
Patch3: strongswan-5.6.2-CVE-2018-5388.patch
|
||||
|
||||
@@ -215,6 +219,9 @@ for i in aacerts acerts certs cacerts crls ocspcerts private reqs; do
|
||||
done
|
||||
install -d -m 0700 %{buildroot}%{_rundir}/strongswan
|
||||
|
||||
mkdir -p %{buildroot}%{_tmpfilesdir}
|
||||
install -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
|
||||
|
||||
%post
|
||||
%systemd_post %{name}.service
|
||||
|
||||
@@ -257,6 +264,8 @@ install -d -m 0700 %{buildroot}%{_rundir}/strongswan
|
||||
%{_datadir}/strongswan/templates/database/
|
||||
%attr(0755,root,root) %dir %{_rundir}/strongswan
|
||||
|
||||
%{_tmpfilesdir}/%{name}.conf
|
||||
|
||||
%files sqlite
|
||||
%{_libdir}/strongswan/plugins/libstrongswan-sqlite.so
|
||||
|
||||
|
||||
Reference in New Issue
Block a user