[bind10] Claim ownership of files created when configuring or running bind10
Tomas Hozza
thozza at fedoraproject.org
Wed Aug 28 14:17:27 UTC 2013
commit 7314249ae29942cea875f52f3fabb3ea43ad7bfe
Author: Tomas Hozza <thozza at redhat.com>
Date: Wed Aug 28 16:10:28 2013 +0200
Claim ownership of files created when configuring or running bind10
Signed-off-by: Tomas Hozza <thozza at redhat.com>
bind10.spec | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/bind10.spec b/bind10.spec
index 9aa056e..af34211 100644
--- a/bind10.spec
+++ b/bind10.spec
@@ -107,6 +107,11 @@ rm -f $RPM_BUILD_ROOT/%{b10sysconfdir}/cmdctl-certfile.pem
touch $RPM_BUILD_ROOT/%{b10sysconfdir}/cmdctl-keyfile.pem
touch $RPM_BUILD_ROOT/%{b10sysconfdir}/cmdctl-certfile.pem
+# claim ownership of files created when configuring or running bind10
+touch $RPM_BUILD_ROOT/%{b10sysconfdir}/cmdctl-accounts.csv
+touch $RPM_BUILD_ROOT/%{b10localstatedir}/b10-config.db
+touch $RPM_BUILD_ROOT/%{b10localstatedir}/logger_lockfile
+
# Package those files via %%doc
rm -f $RPM_BUILD_ROOT/%{_docdir}/bind10/{AUTHORS,COPYING,ChangeLog,README}
rm -f $RPM_BUILD_ROOT/%{_docdir}/bind10/bind10*
@@ -202,6 +207,9 @@ fi
%attr(0750, root, named) %dir %{b10sysconfdir}
%attr(0640, root, named) %config(noreplace) %ghost %{b10sysconfdir}/cmdctl-keyfile.pem
%attr(0640, root, named) %config(noreplace) %ghost %{b10sysconfdir}/cmdctl-certfile.pem
+%config(noreplace) %ghost %{b10sysconfdir}/cmdctl-accounts.csv
+%config(noreplace) %ghost %{b10localstatedir}/b10-config.db
+%ghost %{b10localstatedir}/logger_lockfile
%{_sbindir}/bind10
%{_mandir}/man8/bind10*
%{_bindir}/b10-certgen
@@ -384,6 +392,7 @@ fi
%changelog
* Wed Aug 28 2013 Tomas Hozza <thozza at redhat.com> - 1.1.0-6
- Generate private key and cert for b10-cmdctl during installation (#913230)
+- Claim ownership of files created when configuring or running bind10
* Wed Aug 28 2013 Tomas Hozza <thozza at redhat.com> - 1.1.0-5
- Fix cmdctl-certfile.pem and cmdctl-keyfile.pem owner group (#1001695)
More information about the scm-commits
mailing list