public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pdns] epel10: Use sysusers.d config file for RHEL 11
@ 2026-08-06 11:28 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-08-06 11:28 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-06 11:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-06 11:28 [rpms/pdns] epel10: Use sysusers.d config file for RHEL 11 Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox