[pathfinder] Fixes to work with /var on tmpfs, see bz#656658

Konstantin Ryabitsev icon at fedoraproject.org
Thu Jan 6 18:32:48 UTC 2011


commit 67e9892c5c283689a9197702866347cd467ca80f
Author: Konstantin Ryabitsev <icon at fedoraproject.org>
Date:   Thu Jan 6 13:31:53 2011 -0500

    Fixes to work with /var on tmpfs, see bz#656658

 pathfinder.spec |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/pathfinder.spec b/pathfinder.spec
index 566eb9d..69792cd 100644
--- a/pathfinder.spec
+++ b/pathfinder.spec
@@ -2,7 +2,7 @@
 
 Name:           pathfinder
 Version:        1.1.3
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        X.509 Path Discovery and Validation
 
 Group:          Applications/Internet
@@ -116,6 +116,9 @@ echo "RUNUSER=\"%{daemon_user}\"" \
     > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/pathfinderd
 echo "RUNFLAGS=\"-c ini:%{_sysconfdir}/pathfinderd.ini -d\"" \
     >> $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/pathfinderd
+mkdir -p -m 0755 $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d
+echo "D %{_localstatedir}/run/pathfinderd 0755 %{daemon_user} %{daemon_user} -" \
+    > $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/pathfinderd.conf
 mkdir -p -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/run/pathfinderd
 
 
@@ -170,6 +173,7 @@ exit 0
 %config(noreplace) %{_sysconfdir}/pathfinderd.ini
 %config(noreplace) %{_sysconfdir}/sysconfig/pathfinderd
 %config(noreplace) %{_sysconfdir}/dbus-1/system.d/pathfinderd.conf
+%config(noreplace) %{_sysconfdir}/tmpfiles.d/pathfinderd.conf
 %{_initrddir}/pathfinderd
 %{_sbindir}/pathfinderd
 %{_bindir}/pathclient
@@ -177,7 +181,7 @@ exit 0
 %{_mandir}/man3/pathclient.3*
 %{_mandir}/man3/pathverify.3*
 %{_mandir}/man8/pathfinderd.8*
-%dir %attr(-,%{daemon_user},%{daemon_user}) %{_localstatedir}/run/pathfinderd
+%ghost %dir %{_localstatedir}/run/pathfinderd
 
 %files devel
 %defattr(-,root,root,-)
@@ -211,6 +215,9 @@ exit 0
 
 
 %changelog
+* Thu Jan 06 2011 Konstantin Ryabitsev <icon at fedoraproject.org> - 1.1.3-2
+- Changes to satisfy /var on tmpfs (#656658)
+
 * Mon Feb 15 2010 Konstantin Ryabitsev <icon at fedoraproject.org> - 1.1.3-1
 - Upstream 1.1.3
 - Apply DSO linking patch to fix builds on F13


More information about the scm-commits mailing list