summaryrefslogtreecommitdiffstats
path: root/pki/specs
diff options
context:
space:
mode:
authormharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-02-03 00:21:47 +0000
committermharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b>2011-02-03 00:21:47 +0000
commit6461baab8d6c2a57f1d45eff9f50b3b00bc41af2 (patch)
tree45cc8f54f9c0ab05e4f3a2e91c92c0cdcb4db955 /pki/specs
parent1673dc2b20a2c2ec4be7ca7b4832ecfe612641f5 (diff)
downloadpki-6461baab8d6c2a57f1d45eff9f50b3b00bc41af2.tar.gz
pki-6461baab8d6c2a57f1d45eff9f50b3b00bc41af2.tar.xz
pki-6461baab8d6c2a57f1d45eff9f50b3b00bc41af2.zip
Bugzilla Bug #656663 - 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@1812 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/specs')
-rw-r--r--pki/specs/pki-ocsp.spec30
1 files changed, 30 insertions, 0 deletions
diff --git a/pki/specs/pki-ocsp.spec b/pki/specs/pki-ocsp.spec
index 514aa6c7..a348ceea 100644
--- a/pki/specs/pki-ocsp.spec
+++ b/pki/specs/pki-ocsp.spec
@@ -27,6 +27,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
@@ -102,6 +110,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-ocsp.conf' under the 'tmpfiles.d' directory
+echo "D /var/lock/pki 0755 root root -" > %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-ocsp.conf
+echo "D /var/lock/pki/ocsp 0755 root root -" >> %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-ocsp.conf
+echo "D /var/run/pki 0755 root root -" >> %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-ocsp.conf
+echo "D /var/run/pki/ocsp 0755 root root -" >> %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-ocsp.conf
+%endif
+
%pre
@@ -136,6 +158,14 @@ fi
%{_datadir}/pki/ocsp/webapps/
%dir %{_localstatedir}/lock/pki/ocsp
%dir %{_localstatedir}/run/pki/ocsp
+%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-ocsp.conf
+%endif
%changelog