public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Xavier Bachelot <xavier@bachelot.org>
To: git-commits@fedoraproject.org
Subject: [rpms/openarc] f44: Fix user/group creation for older releases
Date: Mon, 28 Sep 2026 19:21:28 GMT [thread overview]
Message-ID: <179062328894.1.14743506181807396290.rpms-openarc-30ac48e53a35@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/openarc
Branch : f44
Commit : 30ac48e53a353bfcdc8df790df866c23bd265a11
Author : Xavier Bachelot <xavier@bachelot.org>
Date : 2026-02-20T13:58:05+01:00
Stats : +13/-9 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/openarc/c/30ac48e53a353bfcdc8df790df866c23bd265a11?branch=f44
Log:
Fix user/group creation for older releases
---
diff --git a/openarc-sysusers.conf b/openarc-sysusers.conf
new file mode 100644
index 0000000..3700558
--- /dev/null
+++ b/openarc-sysusers.conf
@@ -0,0 +1,3 @@
+#Type Name ID GECOS Home directory Shell
+u openarc - - /var/lib/openarc -
+m openarc mail
diff --git a/openarc.spec b/openarc.spec
index ea1267f..3c809a4 100644
--- a/openarc.spec
+++ b/openarc.spec
@@ -1,4 +1,4 @@
-%global baserelease 1
+%global baserelease 2
#global pre_rel Beta3
Summary: An open source library and milter for providing ARC service
@@ -9,6 +9,7 @@ Release: %{?pre_rel:0.}%{baserelease}%{?pre_rel:.%pre_rel}%{?dist}
License: LicenseRef-Callaway-BSD AND Sendmail-8.23
URL: https://github.com/flowerysong/OpenARC
Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
+Source1: openarc-sysusers.conf
BuildRequires: autoconf
BuildRequires: automake
@@ -25,6 +26,7 @@ BuildRequires: systemd-rpm-macros
%else
BuildRequires: systemd
%endif
+%{?sysusers_requires_compat}
Requires: lib%{name}%{?_isa} = %{version}-%{release}
@@ -57,13 +59,6 @@ required for developing applications against libopenarc.
%prep
%autosetup -p1
-# Previously, a non-system group was created :(, sysusers does not support this
-# Create a sysusers.d config file
-cat >openarc.sysusers.conf <<EOF
-u openarc - - %{_localstatedir}/lib/%{name} -
-m openarc mail
-EOF
-
%build
%if 0%{?fedora} >= 42
@@ -115,9 +110,12 @@ chmod 0640 %{buildroot}%{_sysconfdir}/%{name}/PeerList
install -d -m 0755 %{buildroot}%{_unitdir}
install -m 0644 contrib/systemd/openarc.service %{buildroot}%{_unitdir}/
-install -m0644 -D openarc.sysusers.conf %{buildroot}%{_sysusersdir}/openarc.conf
+install -m0644 -D %{SOURCE1} %{buildroot}%{_sysusersdir}/openarc.conf
+%pre
+%sysusers_create_compat %{SOURCE1}
+
%post
%systemd_post %{name}.service
@@ -157,6 +155,9 @@ install -m0644 -D openarc.sysusers.conf %{buildroot}%{_sysusersdir}/openarc.conf
%changelog
+* Fri Feb 20 2026 Xavier Bachelot <xavier@bachelot.org> - 1.3.0-2
+- Fix user/group creation for older releases
+
* Wed Feb 04 2026 Xavier Bachelot <xavier@bachelot.org> - 1.3.0-1
- Update to 1.3.0
reply other threads:[~2026-09-28 19:21 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=179062328894.1.14743506181807396290.rpms-openarc-30ac48e53a35@fedoraproject.org \
--to=xavier@bachelot.org \
--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