From 2d358950a3f203583de984588664e22ec1172a90 Mon Sep 17 00:00:00 2001 From: Paul Wouters Date: Mon, 8 Apr 2013 11:51:59 -0400 Subject: [PATCH] * use %{_sharedstatedir}/unbound for root key --- unbound.spec | 6 +++--- 1 file 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)