diff options
author | mharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2011-02-03 00:26:13 +0000 |
---|---|---|
committer | mharmsen <mharmsen@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2011-02-03 00:26:13 +0000 |
commit | 9f679598437b6b0d0e596e377de300f0d75d26d6 (patch) | |
tree | 1a7d5c80994faaf5f63ad91335841af8c2f9d55b | |
parent | d923066a27ec451712440115a10026a151496c97 (diff) | |
download | pki-9f679598437b6b0d0e596e377de300f0d75d26d6.tar.gz pki-9f679598437b6b0d0e596e377de300f0d75d26d6.tar.xz pki-9f679598437b6b0d0e596e377de300f0d75d26d6.zip |
Bugzilla Bug #656666 - 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@1815 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
-rw-r--r-- | pki/specs/pki-tps.spec | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pki/specs/pki-tps.spec b/pki/specs/pki-tps.spec index eae999dd6..1e0ad720c 100644 --- a/pki/specs/pki-tps.spec +++ b/pki/specs/pki-tps.spec @@ -33,6 +33,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 @@ -142,6 +150,20 @@ cd %{buildroot}/%{_datadir}/pki/tps/docroot mkdir %{buildroot}%{_sysconfdir}/ld.so.conf.d echo %{_libdir}/tps > %{buildroot}%{_sysconfdir}/ld.so.conf.d/tps-%{_arch}.conf +%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-tps.conf' under the 'tmpfiles.d' directory +echo "D /var/lock/pki 0755 root root -" > %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-tps.conf +echo "D /var/lock/pki/tps 0755 root root -" >> %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-tps.conf +echo "D /var/run/pki 0755 root root -" >> %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-tps.conf +echo "D /var/run/pki/tps 0755 root root -" >> %{buildroot}%{_sysconfdir}/tmpfiles.d/pki-tps.conf +%endif + %post /sbin/ldconfig @@ -181,6 +203,14 @@ fi %{_datadir}/pki/tps/setup/ %dir %{_localstatedir}/lock/pki/tps %dir %{_localstatedir}/run/pki/tps +%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-tps.conf +%endif %changelog |