[udisks] Use tmpfiles.d for /var/run dir (#733161)

David Zeuthen davidz at fedoraproject.org
Thu Aug 25 15:35:36 UTC 2011


commit 29c55a9c0174614570ccc636919b2273bac74b0d
Author: David Zeuthen <davidz at redhat.com>
Date:   Thu Aug 25 11:35:17 2011 -0400

    Use tmpfiles.d for /var/run dir (#733161)
    
    Signed-off-by: David Zeuthen <davidz at redhat.com>

 udisks.spec |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/udisks.spec b/udisks.spec
index 9f7f0bd..95bde7e 100644
--- a/udisks.spec
+++ b/udisks.spec
@@ -14,7 +14,7 @@
 Summary: Storage Management Service
 Name: udisks
 Version: 1.0.3
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPLv2+
 Group: System Environment/Libraries
 URL: http://www.freedesktop.org/wiki/Software/udisks
@@ -112,6 +112,13 @@ ln -s udisks.1 $RPM_BUILD_ROOT%{_datadir}/man/man1/devkit-disks.1
 # TODO: should be fixed upstream
 chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/udisks-bash-completion.sh
 
+# https://bugzilla.redhat.com/show_bug.cgi?id=733161
+rmdir $RPM_BUILD_ROOT%{_localstatedir}/run/udisks
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/udisks.conf << EOF
+d /var/run/udisks 0700 root root
+EOF
+
 %find_lang %{name}
 
 %files -f %{name}.lang
@@ -142,7 +149,7 @@ chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/udisks-bash-completion.sh
 
 %{_datadir}/dbus-1/system-services/*.service
 
-%ghost %attr(0700,root,root) %dir %{_localstatedir}/run/udisks
+%{_sysconfdir}/tmpfiles.d/udisks.conf
 %attr(0700,root,root) %dir %{_localstatedir}/lib/udisks
 
 %files devel
@@ -154,7 +161,10 @@ chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/udisks-bash-completion.sh
 
 # Note: please don't forget the %{?dist} in the changelog. Thanks
 %changelog
-* Mon Jul 18 2011 Dan Horák <dan at danny.cz> - 1.0.3-2
+* Thu Aug 25 2011 David Zeuthen <davidz at redhat.com> - 1.0.3-3%{?dist}
+- Use tmpfiles.d for /var/run dir (#733161)
+
+* Mon Jul 18 2011 Dan Horák <dan at danny.cz> - 1.0.3-2%{?dist}
 - rebuilt for sg3_utils 1.31
 
 * Mon Jul 11 2011 David Zeuthen <davidz at redhat.com> - 1.0.3-1%{?dist}


More information about the scm-commits mailing list