SHA256
1
0
forked from pool/strongswan

handle missed tmpfiles_create macro

OBS-URL: https://build.opensuse.org/package/show/network:vpn/strongswan?expand=0&rev=75
This commit is contained in:
Marius Tomaschewski 2014-09-26 17:17:56 +00:00 committed by Git OBS Bridge
parent ce4e2bdd61
commit 94db999eee

View File

@ -403,11 +403,8 @@ echo 'd %{_rundir}/%{name} 0770 root root' > %{buildroot}%{_tmpfilesdir}/%{name}
%post libs0
/sbin/ldconfig
%if %{with systemd}
%{?tmpfiles_create: %tmpfiles_create %{_tmpfilesdir}/%{name}.conf}
%else
test -d %{_rundir}/%{name} || %{__mkdir_p} %{_rundir}/%{name}
%endif
%{?tmpfiles_create:%tmpfiles_create %{_tmpfilesdir}/%{name}.conf}
%{!?tmpfiles_create:test -d %{_rundir}/%{name} || %{__mkdir_p} %{_rundir}/%{name}}
%postun libs0 -p /sbin/ldconfig