From: Remi Gacogne Date: Tue, 1 Aug 2023 08:04:54 +0000 (+0200) Subject: dnsdist: Fix the group of the dnsdist.conf file when installed via RPM X-Git-Tag: dnsdist-1.8.1~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e8380166ceb941a2de640b3a027d92f06103fba;p=thirdparty%2Fpdns.git dnsdist: Fix the group of the dnsdist.conf file when installed via RPM 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) --- diff --git a/builder-support/specs/dnsdist.spec b/builder-support/specs/dnsdist.spec index a60c611815..d1e4e0939a 100644 --- a/builder-support/specs/dnsdist.spec +++ b/builder-support/specs/dnsdist.spec @@ -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*