public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/inn] epel10.3: precreate required system user accounts
@ 2026-08-26 8:54 Dominik 'Rathann' Mierzejewski
0 siblings, 0 replies; only message in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-08-26 8:54 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/inn
Branch : epel10.3
Commit : 1418a3936de5f869171ad6f2e689413b3e608858
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date : 2017-01-27T00:09:08+01:00
Stats : +19/-1 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/inn/c/1418a3936de5f869171ad6f2e689413b3e608858?branch=epel10.3
Log:
precreate required system user accounts
make sure uucp user exists when installing inn (rnews)
make sure news user exists when installing inews
---
diff --git a/inn.spec b/inn.spec
index 652712a..ee91289 100644
--- a/inn.spec
+++ b/inn.spec
@@ -3,7 +3,7 @@
Summary: The InterNetNews system, an Usenet news server
Name: inn
Version: 2.6.1
-Release: 1%{?dist}
+Release: 2%{?dist}
#see LICENSE file for details
License: GPLv2+ and BSD and MIT and Public Domain
Group: System Environment/Daemons
@@ -96,6 +96,14 @@ getent group news >/dev/null || groupadd -g 13 -r news
getent passwd news >/dev/null || \
useradd -r -u 9 -g news -d /etc/news \
-c "News server user" news
+getent group uucp >/dev/null || groupadd -g 14 -r uucp
+if ! getent passwd uucp >/dev/null ; then
+ if ! getent passwd 10 >/dev/null ; then
+ useradd -r -u 10 -g uucp -d /var/spool/uucp -c "Uucp user" uucp
+ else
+ useradd -r -g uucp -d /var/spool/uucp -c "Uucp user" uucp
+ fi
+fi
exit 0
%prep
@@ -212,6 +220,12 @@ D %{_localstatedir}/run/news 0755 news news -
EOF
install -d -m 0755 $RPM_BUILD_ROOT%{_localstatedir}/run/news
+%pre -n inews
+getent group news >/dev/null || groupadd -g 13 -r news
+getent passwd news >/dev/null || \
+useradd -r -u 9 -g news -d /etc/news \
+-c "News server user" news
+exit 0
%post
su -m news -c '/usr/libexec/news/makedbz -i -o'
@@ -552,6 +566,10 @@ fi
%{_mandir}/man1/inews*
%changelog
+* Thu Jan 26 2017 Dominik Mierzejewski <rpm@greysector.net> - 2.6.1-2
+- make sure uucp user exists when installing inn (rnews)
+- make sure news user exists when installing inews
+
* Wed Jan 25 2017 Dominik Mierzejewski <rpm@greysector.net> - 2.6.1-1
- update to 2.6.1 release (#1403810)
- drop obsolete patches
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-26 8:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-26 8:54 [rpms/inn] epel10.3: precreate required system user accounts Dominik 'Rathann' Mierzejewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox