public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/pdns] epel10: Use sysusers.d config file for RHEL 11
Date: Thu, 06 Aug 2026 11:28:00 GMT [thread overview]
Message-ID: <178601568064.1.2853802463585795467.rpms-pdns-889cce610b39@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pdns
Branch : epel10
Commit : 889cce610b39809d311564c5adf3c53d91afcf8d
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-07-27T20:02:45-04:00
Stats : +9/-6 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/pdns/c/889cce610b39809d311564c5adf3c53d91afcf8d?branch=epel10
Log:
Use sysusers.d config file for RHEL 11
RHEL 11 inherits the Fedora 42 change:
https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers
---
diff --git a/pdns.spec b/pdns.spec
index 8bb90ae..84323b4 100644
--- a/pdns.spec
+++ b/pdns.spec
@@ -3,14 +3,14 @@
Name: pdns
Version: 5.0.6
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: A modern, advanced and high performance authoritative-only name server
License: GPL-2.0-only
URL: http://powerdns.com
Source0: http://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2
ExcludeArch: %{arm} %{ix86}
-%if 0%{?rhel}
+%if 0%{?rhel} && 0%{?rhel} < 11
Requires(pre): shadow-utils
%endif
Requires(post): systemd
@@ -152,7 +152,7 @@ This package contains the ixfrdist program.
%prep
%autosetup -p1
-%if 0%{?fedora}
+%if 0%{?fedora} || 0%{?rhel} >= 11
# Create a sysusers.d config file
cat >pdns.sysusers.conf <<EOF
u pdns - 'PowerDNS Authoritative Server' /var/lib/pdns -
@@ -221,14 +221,14 @@ sed -i \
%{__rm} %{buildroot}/%{_bindir}/stubquery
%{__install} -d %{buildroot}/%{_sharedstatedir}/%{name}
-%if 0%{?fedora}
+%if 0%{?fedora} || 0%{?rhel} >= 11
install -m0644 -D pdns.sysusers.conf %{buildroot}%{_sysusersdir}/pdns.conf
%endif
%check
make %{?_smp_mflags} -C pdns check
-%if 0%{?rhel}
+%if 0%{?rhel} && 0%{?rhel} < 11
%pre
getent group pdns >/dev/null || groupadd -r pdns
getent passwd pdns >/dev/null || \
@@ -267,7 +267,7 @@ getent passwd pdns >/dev/null || \
%dir %attr(-,pdns,pdns) %{_sharedstatedir}/%{name}
%dir %attr(-,root,pdns) %{_sysconfdir}/%{name}/
%attr(0640,root,pdns) %config(noreplace) %{_sysconfdir}/%{name}/pdns.conf
-%if 0%{?fedora}
+%if 0%{?fedora} || 0%{?rhel} >= 11
%{_sysusersdir}/pdns.conf
%endif
@@ -370,6 +370,9 @@ getent passwd pdns >/dev/null || \
%{_unitdir}/ixfrdist@.service
%changelog
+* Tue Jul 28 2026 Yaakov Selkowitz <yselkowi@redhat.com> - 5.0.6-3
+- Use sysusers.d config file for RHEL 11
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
reply other threads:[~2026-08-06 11:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178601568064.1.2853802463585795467.rpms-pdns-889cce610b39@fedoraproject.org \
--to=yselkowi@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox