[polipo] make sure /var/run/polipo is created when tmpfiles.d is not used

Bernard Johnson bjohnson at fedoraproject.org
Tue Sep 27 16:52:13 UTC 2011


commit 995030bc527507feb679d277097e72f29d8812bb
Author: Bernard Johnson <bjohnson at symetrix.com>
Date:   Tue Sep 27 10:51:40 2011 -0600

    make sure /var/run/polipo is created when tmpfiles.d is not used

 polipo.spec |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/polipo.spec b/polipo.spec
index 9c4d65e..24e5899 100644
--- a/polipo.spec
+++ b/polipo.spec
@@ -73,6 +73,8 @@ install -D -p -m 0755 %{SOURCE5} $RPM_BUILD_ROOT/%{_sysconfdir}/NetworkManager/d
 
 %if 0%{?_with_tmpfilesd}
 install -D -p -m 0644 %{SOURCE6} $RPM_BUILD_ROOT/%{_sysconfdir}/tmpfiles.d/%{name}.conf
+%else
+install -d -m 0755 $RPM_BUILD_ROOT/%{_localstatedir}/run/%{name}
 %endif
 
 %if 0%{?_with_systemd}


More information about the scm-commits mailing list