public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/sagator] epel10: Add sysusers.d config file to allow rpm to create users/groups automatically
Date: Thu, 26 Nov 2026 14:06:32 GMT [thread overview]
Message-ID: <179570199267.1.11067459140731453543.rpms-sagator-ede73283e6b6@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/sagator
Branch : epel10
Commit : ede73283e6b677a987afdf933b8e460189e59ce1
Author : Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date : 2025-02-11T16:44:35+01:00
Stats : +13/-7 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/sagator/c/ede73283e6b677a987afdf933b8e460189e59ce1?branch=epel10
Log:
Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
---
diff --git a/sagator.spec b/sagator.spec
index ee01971..ea6c715 100644
--- a/sagator.spec
+++ b/sagator.spec
@@ -18,7 +18,7 @@
Summary: Antivirus/anti-spam gateway for smtp server
Name: sagator
Version: 2.0.3
-Release: 0.beta3%{?dist}.3
+Release: 0.beta3%{?dist}.4
Source: http://www.salstar.sk/pub/antivir/snapshots/unstable/sagator-%{version}-0.beta3.tar.bz2
URL: http://www.salstar.sk/sagator/
# Automatically converted from old format: GPLv2+ - review is highly recommended.
@@ -71,7 +71,7 @@ Requires: sed
BuildRequires: aaa_base, python-xml, clamav >= %{CLAMAV_VERSION}
Requires: aaa_base, smtp_daemon
%else
-Requires: server(smtp), shadow-utils
+Requires: server(smtp)
BuildRequires: clamav-devel >= %{CLAMAV_VERSION}
Requires: clamav-lib >= %{CLAMAV_VERSION}
%endif
@@ -113,6 +113,11 @@ This package helps moving to the upstream SELinux module.
%prep
%setup -q
+# Create a sysusers.d config file
+cat >sagator.sysusers.conf <<EOF
+u vscan - 'SAGATOR' %{CHROOTDIR} -
+EOF
+
%build
sh configure --prefix=%{_prefix} --filelist --python=%{python_version}
make %{?_smp_mflags}
@@ -129,11 +134,8 @@ mkdir -p %{buildroot}%{CHROOTDIR}/tmp/quarantine
cp -arf scripts/db %{buildroot}%{_datadir}/%{name}/
%find_lang %{name}
-%pre core
-getent group vscan >/dev/null || groupadd -r vscan
-getent passwd vscan >/dev/null || \
-useradd -r -g vscan -d %{CHROOTDIR} -s /sbin/nologin -c "SAGATOR" vscan
-exit 0
+install -m0644 -D sagator.sysusers.conf %{buildroot}%{_sysusersdir}/sagator.conf
+
%post core
touch %{_var}/lib/sagator-mkchroot
@@ -207,6 +209,7 @@ touch %{_var}/lib/sagator-mkchroot
%dir %{CHROOTDIR}
%attr(1777,vscan,vscan) %dir %{CHROOTDIR}/tmp
%attr(0770,vscan,vscan) %dir %{CHROOTDIR}/tmp/quarantine
+%{_sysusersdir}/sagator.conf
%files webq -f sagator.lang
%{_datadir}/%{name}/srv/web
@@ -219,6 +222,9 @@ touch %{_var}/lib/sagator-mkchroot
%endif
%changelog
+* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.3-0.beta3.4
+- Add sysusers.d config file to allow rpm to create users/groups automatically
+
* Sun Jan 19 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-0.beta3.3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
reply other threads:[~2026-11-26 14:06 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=179570199267.1.11067459140731453543.rpms-sagator-ede73283e6b6@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