summaryrefslogtreecommitdiffstats
path: root/pki/specs
diff options
context:
space:
mode:
authormharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-02-03 00:23:06 +0000
committermharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-02-03 00:23:06 +0000
commit2d508601a648f30bf72a4c84e0f625849ac7d9b3 (patch)
treede3ee9d3babd7bba07cc385b182004e98478b173 /pki/specs
parent6461baab8d6c2a57f1d45eff9f50b3b00bc41af2 (diff)
downloadpki-2d508601a648f30bf72a4c84e0f625849ac7d9b3.tar.gz
pki-2d508601a648f30bf72a4c84e0f625849ac7d9b3.tar.xz
pki-2d508601a648f30bf72a4c84e0f625849ac7d9b3.zip
Bugzilla Bug #656664 - Please Update Spec File to use %ghost on files
in /var/run and /var/lock git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@1813 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/specs')
-rw-r--r--pki/specs/pki-ra.spec30
1 files changed, 30 insertions, 0 deletions
diff --git a/pki/specs/pki-ra.spec b/pki/specs/pki-ra.spec
index a14fa2b7..a7251a36 100644
--- a/pki/specs/pki-ra.spec
+++ b/pki/specs/pki-ra.spec
@@ -29,6 +29,14 @@ Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
Requires(postun): initscripts
+%if 0%{?fedora} >= 15
+# Details:
+#
+# * https://fedoraproject.org/wiki/Features/var-run-tmpfs
+# * https://fedoraproject.org/wiki/Tmpfiles.d_packaging_draft
+#
+Requires: initscripts
+%endif
Source0: http://pki.fedoraproject.org/pki/sources/%{name}/%{name}-%{version}.tar.gz
@@ -104,6 +112,20 @@ cd build
cd build
%{__make} install DESTDIR=%{buildroot} INSTALL="install -p"
+%if 0%{?fedora} >= 15
+# Details:
+#
+# * https://fedoraproject.org/wiki/Features/var-run-tmpfs
+# * https://fedoraproject.org/wiki/Tmpfiles.d_packaging_draft
+#
+%{__mkdir_p} %{buildroot}%{_sysconfdir}/tmpfiles.d
+# generate 'pki-ra.conf' under the 'tmpfiles.d' directory
+echo "D /var/lock/pki 0755 root root -" > %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-ra.conf
+echo "D /var/lock/pki/ra 0755 root root -" >> %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-ra.conf
+echo "D /var/run/pki 0755 root root -" >> %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-ra.conf
+echo "D /var/run/pki/ra 0755 root root -" >> %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-ra.conf
+%endif
+
%pre
@@ -138,6 +160,14 @@ fi
%{_datadir}/pki/ra/setup/
%dir %{_localstatedir}/lock/pki/ra
%dir %{_localstatedir}/run/pki/ra
+%if 0%{?fedora} >= 15
+# Details:
+#
+# * https://fedoraproject.org/wiki/Features/var-run-tmpfs
+# * https://fedoraproject.org/wiki/Tmpfiles.d_packaging_draft
+#
+%config(noreplace) %{_sysconfdir}/tmpfiles.d/pki-ra.conf
+%endif
%changelog