Hello,

This patch addresses ticket https://fedorahosted.org/freeipa/ticket/3881.

-- 
Regards,

Ana Krivokapic
Associate Software Engineer
FreeIPA team
Red Hat Inc.

From 21264f8da8f0fa9d01b319b33c2b18daea52198a Mon Sep 17 00:00:00 2001
From: Ana Krivokapic <akriv...@redhat.com>
Date: Wed, 4 Sep 2013 18:18:13 +0200
Subject: [PATCH] Follow tmpfiles.d packaging guidelines

https://fedorahosted.org/freeipa/ticket/3881
---
 freeipa.spec.in | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/freeipa.spec.in b/freeipa.spec.in
index 67bd3667db42ebb3639f50a4dd0c3a9fda000781..88c02258d6eb9eefe556ad588316c6d8c9a62180 100644
--- a/freeipa.spec.in
+++ b/freeipa.spec.in
@@ -423,8 +423,8 @@ install -m 644 init/ipa_memcached.conf %{buildroot}%{_sysconfdir}/sysconfig/ipa_
 mkdir -p %{buildroot}%{_usr}/share/ipa/ui/js/plugins
 
 # NOTE: systemd specific section
-mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d/
-install -m 0644 init/systemd/ipa.conf.tmpfiles %{buildroot}%{_sysconfdir}/tmpfiles.d/ipa.conf
+mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d
+install -m 0644 init/systemd/ipa.conf.tmpfiles %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
 # END
 
 mkdir -p %{buildroot}%{_localstatedir}/run/
@@ -611,7 +611,7 @@ fi
 %dir %attr(0700,apache,apache) %{_localstatedir}/run/ipa_memcached/
 %dir %attr(0700,root,root) %{_localstatedir}/run/ipa/
 # NOTE: systemd specific section
-%config(noreplace) %{_sysconfdir}/tmpfiles.d/ipa.conf
+%{_prefix}/lib/tmpfiles.d/%{name}.conf
 %attr(644,root,root) %{_unitdir}/ipa.service
 %attr(644,root,root) %{_unitdir}/ipa_memcached.service
 %attr(644,root,root) %{_unitdir}/ipa-otpd.socket
@@ -836,6 +836,9 @@ fi
 %endif # ONLY_CLIENT
 
 %changelog
+* Wed Sep 4 2013 Ana Krivokapic <akriv...@redhat.com> - 3.3.90-3
+- Conform to tmpfiles.d packaging guidelines
+
 * Wed Aug 14 2013 Petr Viktorin <pvikt...@redhat.com> - 3.3.90-2
 - Add man pages to the tests subpackage
 
-- 
1.8.3.1

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to