public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/postgrey] epel10.3: Add sysusers.d config file to allow rpm to create users/groups automatically
Date: Mon, 30 Nov 2026 12:54:04 GMT [thread overview]
Message-ID: <179604324403.1.7385248102744558690.rpms-postgrey-1a6a58b3f593@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/postgrey
Branch : epel10.3
Commit : 1a6a58b3f593edace41e57f674a586a5d867998d
Author : Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date : 2025-02-11T16:44:31+01:00
Stats : +12/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/postgrey/c/1a6a58b3f593edace41e57f674a586a5d867998d?branch=epel10.3
Log:
Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
---
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 <<EOF
+u postgrey - 'Postfix Greylisting Service' %{_localstatedir}/spool/postfix/postgrey -
+EOF
+
%build
# We only have perl scripts, so just "build" the man page.
pod2man \
@@ -91,12 +95,8 @@ install -pDm0644 postgrey.8 \
install -pDm0755 contrib/postgreyreport \
%{buildroot}%{_sbindir}/postgreyreport
-%pre
-getent group postgrey >/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 <zbyszek@in.waw.pl> - 1.37-26
+- Add sysusers.d config file to allow rpm to create users/groups automatically
+
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 1.37-25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
reply other threads:[~2026-11-30 12:54 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=179604324403.1.7385248102744558690.rpms-postgrey-1a6a58b3f593@fedoraproject.org \
--to=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