]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Fix the group of the dnsdist.conf file when installed via RPM 13118/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 1 Aug 2023 08:04:54 +0000 (10:04 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 14 Aug 2023 13:13:42 +0000 (15:13 +0200)
I _hope_ the `%attr` directive does the right thing, based on
http://ftp.rpm.org/max-rpm/s1-rpm-anywhere-specifying-file-attributes.html
I'm using this directive instead of calling `chgrp` in `%post` because
I'm told using `chgrp` would make `verify` complain about the ownership later.

(cherry picked from commit 32c478585461060b993a414e074daea47de94b80)

builder-support/specs/dnsdist.spec

index a60c6118153a58519a429a7f0d43a66bd4e60196..d1e4e0939ad0d1257c106b2fd8079c759f4cffe4 100644 (file)
@@ -155,5 +155,5 @@ systemctl daemon-reload ||:
 %{_bindir}/*
 %{_mandir}/man1/*
 %dir %{_sysconfdir}/dnsdist
-%config(noreplace) %{_sysconfdir}/%{name}/dnsdist.conf
+%attr(-, root, dnsdist) %config(noreplace) %{_sysconfdir}/%{name}/dnsdist.conf
 %{_unitdir}/dnsdist*