public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
To: git-commits@fedoraproject.org
Subject: [rpms/inn] epel10: precreate required system user accounts
Date: Wed, 26 Aug 2026 08:06:52 GMT	[thread overview]
Message-ID: <178773161240.1.2531481819917732771.rpms-inn-1418a3936de5@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/inn
            Branch : epel10
            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

            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

                 reply	other threads:[~2026-08-26  8: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=178773161240.1.2531481819917732771.rpms-inn-1418a3936de5@fedoraproject.org \
    --to=dominik@greysector.net \
    --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