public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Andreas Haupt <andreas.haupt@desy.de>
To: git-commits@fedoraproject.org
Subject: [rpms/postgrey] epel10: fixed creation of postgrey user during %pre
Date: Tue, 01 Dec 2026 11:41:57 GMT [thread overview]
Message-ID: <179612531704.1.10051926018750238698.rpms-postgrey-ef606a5daf1c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/postgrey
Branch : epel10
Commit : ef606a5daf1cdf067a1ed2a503522635862dc6be
Author : Andreas Haupt <andreas.haupt@desy.de>
Date : 2026-12-01T12:34:21+01:00
Stats : +6/-6 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/postgrey/c/ef606a5daf1cdf067a1ed2a503522635862dc6be?branch=epel10
Log:
fixed creation of postgrey user during %pre
---
diff --git a/postgrey.spec b/postgrey.spec
index a34b88b..cb81e17 100644
--- a/postgrey.spec
+++ b/postgrey.spec
@@ -13,10 +13,12 @@ Source0: http://postgrey.schweikert.ch/pub/postgrey-%{version}.tar.gz
Source1: postgrey.service
Source2: README-rpm
Source3: postgrey.sysconfig
+Source4: postgrey.sysusers
BuildArch: noarch
BuildRequires: perl-generators
BuildRequires: perl-podlators
BuildRequires: systemd
+%{?sysusers_requires_compat}
## Note: If --privacy specified, perl(Digest::SHA) will be needed.
#Requires: perl(BerkeleyDB)
#Requires: perl(Fcntl)
@@ -51,11 +53,6 @@ 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 \
@@ -95,8 +92,10 @@ install -pDm0644 postgrey.8 \
install -pDm0755 contrib/postgreyreport \
%{buildroot}%{_sbindir}/postgreyreport
-install -m0644 -D postgrey.sysusers.conf %{buildroot}%{_sysusersdir}/postgrey.conf
+install -m0644 -D %{SOURCE4} %{buildroot}%{_sysusersdir}/postgrey.conf
+%pre
+%sysusers_create_compat %{SOURCE4}
%post
%systemd_post postgrey.service
diff --git a/postgrey.sysusers b/postgrey.sysusers
new file mode 100644
index 0000000..c1a7323
--- /dev/null
+++ b/postgrey.sysusers
@@ -0,0 +1 @@
+u postgrey - 'Postfix Greylisting Service' /var/spool/postfix/postgrey -
reply other threads:[~2026-12-01 11:41 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=179612531704.1.10051926018750238698.rpms-postgrey-ef606a5daf1c@fedoraproject.org \
--to=andreas.haupt@desy.de \
--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