From 9e54e748387f5490803579891646e8ca671db850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Tue, 11 Feb 2025 15:53:25 +0100 Subject: [PATCH 1/2] Add sysusers.d config file to allow rpm to create users/groups automatically See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers. --- ngircd.spec | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/ngircd.spec b/ngircd.spec index 3ee3849..6bfc9ef 100644 --- a/ngircd.spec +++ b/ngircd.spec @@ -1,6 +1,6 @@ Name: ngircd Version: 27 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Next Generation IRC Daemon # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later @@ -28,7 +28,6 @@ Requires(post): systemd Requires(preun): systemd Requires(postun): systemd -Requires(pre): shadow-utils %description ngIRCd is a free open source daemon for Internet Relay Chat (IRC), @@ -38,6 +37,11 @@ scratch and is not based upon the original IRCd like many others. %prep %autosetup -p1 +# Create a sysusers.d config file +cat >ngircd.sysusers.conf < %{buildroot}%{_tmpfilesdir}/ngircd.conf +install -m0644 -D ngircd.sysusers.conf %{buildroot}%{_sysusersdir}/ngircd.conf + %check make check -%pre -getent group ngircd >/dev/null || groupadd -r ngircd -getent passwd ngircd >/dev/null || \ - useradd -r -g ngircd -d /tmp/ -s /sbin/nologin \ - -c "Next Generation IRC Daemon" ngircd -exit 0 %post %systemd_post ngircd.service @@ -96,8 +96,12 @@ exit 0 %{_mandir}/man5/ngircd.conf* %{_mandir}/man8/ngircd.8* %{_tmpfilesdir}/ngircd.conf +%{_sysusersdir}/ngircd.conf %changelog +* Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 27-5 +- Add sysusers.d config file to allow rpm to create users/groups automatically + * Fri Jan 17 2025 Fedora Release Engineering - 27-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From a5694fcb74cd35fe24f0e74c7dd836f556736fd2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 22:50:08 +0000 Subject: [PATCH 2/2] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- ngircd.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ngircd.spec b/ngircd.spec index 6bfc9ef..acb4468 100644 --- a/ngircd.spec +++ b/ngircd.spec @@ -1,6 +1,6 @@ Name: ngircd Version: 27 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Next Generation IRC Daemon # Automatically converted from old format: GPLv2+ - review is highly recommended. License: GPL-2.0-or-later @@ -99,6 +99,9 @@ make check %{_sysusersdir}/ngircd.conf %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 27-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Tue Feb 11 2025 Zbigniew Jędrzejewski-Szmek - 27-5 - Add sysusers.d config file to allow rpm to create users/groups automatically