[unbound: 3/4] * use %{_sharedstatedir}/unbound for root key

Paul Wouters pwouters at fedoraproject.org
Mon Apr 8 15:57:53 UTC 2013


commit 2d358950a3f203583de984588664e22ec1172a90
Author: Paul Wouters <pwouters at redhat.com>
Date:   Mon Apr 8 11:51:59 2013 -0400

    * use %{_sharedstatedir}/unbound for root key

 unbound.spec |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/unbound.spec b/unbound.spec
index 6a63d5f..a915639 100644
--- a/unbound.spec
+++ b/unbound.spec
@@ -151,13 +151,13 @@ done
 install -m 0755 streamtcp %{buildroot}%{_sbindir}/unbound-streamtcp
 
 # Install tmpfiles.d config
-mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d/
+mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d/ %{buildroot}%{_sharedstatedir}/unbound
 install -m 0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/tmpfiles.d/unbound.conf
 
 # install root and DLV key - we keep a copy of the root key in old location,
 # in case user has changed the configuration and we wouldn't update it there
 install -m 0644 %{SOURCE5} %{SOURCE6} %{SOURCE13} %{buildroot}%{_sysconfdir}/unbound/
-install -m 0644 %{SOURCE13} %{buildroot}%{_libdir}/unbound/
+install -m 0644 %{SOURCE13} %{buildroot}%{_sharedstatedir}/unbound/root.key
 
 # remove static library from install (fedora packaging guidelines)
 rm %{buildroot}%{_libdir}/*.la
@@ -230,7 +230,7 @@ ln -s %{_mandir}/man8/unbound-control.8 %{buildroot}/%{_mandir}/man8/unbound-con
 %{_libdir}/libunbound.so.*
 %{_sysconfdir}/%{name}/icannbundle.pem
 %{_sysconfdir}/cron.monthly/unbound-anchor
-%attr(0644,root,root) %config(noreplace) %{_libdir}/%{name}/root.key
+%attr(0644,root,root) %config(noreplace) %{_sharedstatedir}/%{name}/root.key
 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/root.key
 %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/dlv.isc.org.key
 # just left for backwards compat - format is different! (bind format)


More information about the scm-commits mailing list