public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/postgrey] rawhide: fixed creation of postgrey user during %pre
@ 2026-12-01 11:34 Andreas Haupt
  0 siblings, 0 replies; only message in thread
From: Andreas Haupt @ 2026-12-01 11:34 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/postgrey
Branch : rawhide
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=rawhide

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 -

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-12-01 11:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01 11:34 [rpms/postgrey] rawhide: fixed creation of postgrey user during %pre Andreas Haupt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox