From 4829f5fbf54efb9626a5cbf2cdfa52d9cbe0a4f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zoran=20Peri=C4=8Di=C4=87?= Date: Wed, 20 May 2020 22:22:39 +0200 Subject: [PATCH] Add tmpfiles config for creating /run/systemd --- strongswan.spec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/strongswan.spec b/strongswan.spec index 714afa0..5764c91 100644 --- a/strongswan.spec +++ b/strongswan.spec @@ -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