rpms/inn/devel inn.spec,1.46,1.47

Ondrej Vasik (ovasik) fedora-extras-commits at redhat.com
Tue Jun 17 12:17:04 UTC 2008


Author: ovasik

Update of /cvs/extras/rpms/inn/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29344

Modified Files:
	inn.spec 
Log Message:
Add news user. fixes bug #437462


Index: inn.spec
===================================================================
RCS file: /cvs/extras/rpms/inn/devel/inn.spec,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- inn.spec	19 May 2008 14:15:27 -0000	1.46
+++ inn.spec	17 Jun 2008 12:16:14 -0000	1.47
@@ -1,7 +1,7 @@
 Summary: The InterNetNews (INN) system, an Usenet news server
 Name: inn
 Version: 2.4.4
-Release: 2%{?dist}
+Release: 3%{?dist}
 #see LICENSE file for details
 License: GPL+ and BSD and MIT and Public Domain
 Group: System Environment/Daemons
@@ -24,6 +24,7 @@
 Patch10: inn-2.4.3-nologinshell.patch
 BuildRequires: perl-devel python db4-devel byacc krb5-devel pam-devel e2fsprogs-devel
 BuildRequires: perl(ExtUtils::Embed)
+Requires(pre): shadow-utils
 Prereq: chkconfig, grep, coreutils, sed
 Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 Requires: bash >= 2.0, inews
@@ -72,6 +73,13 @@
 Install inews if you need a program for posting Usenet articles to
 local news servers.
 
+%pre
+getent group news >/dev/null || groupadd -r news
+getent passwd news >/dev/null || \
+useradd -r -g news -d /etc/news -s /sbin/nologin \
+-c "News server user" news
+exit 0
+
 %prep
 %setup  -q  -a 10
 %patch  -p1 -b .rh
@@ -325,6 +333,8 @@
 %{_mandir}/man1/inews*
 
 %changelog
+* Tue Jun 17 2008 Ondrej Vasik <ovasik at redhat.com> - 2.4.4-3
+- Add news user. fixes bug #437462
 * Mon May 19 2008 Ondrej Vasik <ovasik at redhat.com> - 2.4.4-2
 - add sparc arches to the list for -fPIC(Dennis Gilmore)
 




More information about the fedora-extras-commits mailing list