From 1a6a58b3f593edace41e57f674a586a5d867998d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 11 Feb 2025 16:44:31 +0100 Subject: [PATCH 1/2] Add sysusers.d config file to allow rpm to create users/groups automatically See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers. --- postgrey.spec | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/postgrey.spec b/postgrey.spec index b5bd715..8df2f85 100644 --- a/postgrey.spec +++ b/postgrey.spec @@ -2,7 +2,7 @@ Name: postgrey Version: 1.37 -Release: 25%{?dist} +Release: 26%{?dist} Summary: Postfix Greylisting Policy Server # File headers only state "GNU GPL", but the LICENSE sections state v2 and "any # later version" @@ -31,7 +31,6 @@ BuildRequires: systemd #Requires: perl(Sys::Syslog) # Requiring postfix for its directories and GID. Recommends: postfix -Requires(pre): shadow-utils Requires(post): systemd Requires(preun): systemd Requires(postun): systemd @@ -52,6 +51,11 @@ sed -i 's|nogroup|postgrey|g' postgrey sed -i 's|POD ||g;s|perldoc|man|g' README install -pm0644 %{SOURCE2} README.Fedora +# Create a sysusers.d config file +cat >postgrey.sysusers.conf </dev/null || groupadd -r postgrey -getent passwd postgrey >/dev/null || \ - useradd -r -g postgrey -d %{_localstatedir}/spool/postfix/postgrey -s /sbin/nologin \ - -c "Postfix Greylisting Service" postgrey -exit 0 +install -m0644 -D postgrey.sysusers.conf %{buildroot}%{_sysusersdir}/postgrey.conf + %post %systemd_post postgrey.service @@ -129,8 +129,12 @@ exit 0 %{_sbindir}/postgreyreport %{_mandir}/man8/postgrey.8* %dir %attr(0751,postgrey,postfix) %{_localstatedir}/spool/postfix/postgrey/ +%{_sysusersdir}/postgrey.conf %changelog +* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 1.37-26 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Sat Jan 18 2025 Fedora Release Engineering - 1.37-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 37eb9837d19d1479d7fbbe74b9792b502dea4dbf Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 06:05:10 +0000 Subject: [PATCH 2/2] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- postgrey.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/postgrey.spec b/postgrey.spec index 8df2f85..d1a1e2d 100644 --- a/postgrey.spec +++ b/postgrey.spec @@ -2,7 +2,7 @@ Name: postgrey Version: 1.37 -Release: 26%{?dist} +Release: 27%{?dist} Summary: Postfix Greylisting Policy Server # File headers only state "GNU GPL", but the LICENSE sections state v2 and "any # later version" @@ -132,6 +132,9 @@ install -m0644 -D postgrey.sysusers.conf %{buildroot}%{_sysusersdir}/postgrey.co %{_sysusersdir}/postgrey.conf %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 1.37-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 1.37-26 - Add sysusers.d config file to allow rpm to create users/groups automatically