public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/icecream] epel8: Add sysusers.d config file to allow rpm to create users/groups automatically
Date: Fri, 31 Jul 2026 06:34:34 GMT [thread overview]
Message-ID: <178547967444.1.2848779131964567498.rpms-icecream-866bf44a65f9@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/icecream
Branch : epel8
Commit : 866bf44a65f9146eb583b7fbdd98ab68c88b9b15
Author : Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date : 2025-02-11T15:35:20+01:00
Stats : +8/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/icecream/c/866bf44a65f9146eb583b7fbdd98ab68c88b9b15?branch=epel8
Log:
Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
---
diff --git a/icecream.spec b/icecream.spec
index 0b3bc49..aef219f 100644
--- a/icecream.spec
+++ b/icecream.spec
@@ -39,7 +39,6 @@ BuildRequires: autoconf automake libtool
Requires: firewalld-filesystem
Requires: environment(modules)
-Requires(pre): shadow-utils
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
@@ -90,6 +89,11 @@ cp -p %{SOURCE3} %{SOURCE4} %{SOURCE5} SELinux
mkdir fedora
cp -p %{SOURCE6} %{SOURCE7} %{SOURCE9} %{SOURCE10} %{SOURCE11} fedora
+# Create a sysusers.d config file
+cat >icecream.sysusers.conf <<EOF
+u icecc - 'Icecream distributed compiler' %{_localstatedir}/cache/icecream -
+EOF
+
%build
./autogen.sh
@@ -172,19 +176,14 @@ if [ $? == 0 -a "${SELINUXTYPE}" == %1 -a -f ${FILE_CONTEXT}.%{name} ]; then \
rm -f ${FILE_CONTEXT}.%name; \
fi;
+install -m0644 -D icecream.sysusers.conf %{buildroot}%{_sysusersdir}/icecream.conf
+
%pre
%if %{with selinux}
for selinuxvariant in %{selinux_variants}; do
%saveFileContext ${selinuxvariant}
done
%endif
-
-getent group icecc >/dev/null || groupadd -r icecc
-getent passwd icecc >/dev/null || \
- useradd -r -g icecc -d %{_localstatedir}/cache/icecream \
- -s /sbin/nologin -c "Icecream distributed compiler" icecc
-exit 0
-
%post
/sbin/ldconfig
%if %{with selinux}
@@ -265,6 +264,7 @@ exit 0
%{?with_selinux:%{_datadir}/selinux/*/icecream.pp}
%{_prefix}/lib/firewalld/services/icecream.xml
%{_prefix}/lib/firewalld/services/icecream-scheduler.xml
+%{_sysusersdir}/icecream.conf
%files devel
%dir %{_includedir}/icecc/
reply other threads:[~2026-07-31 6:34 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=178547967444.1.2848779131964567498.rpms-icecream-866bf44a65f9@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