diff --git a/mgetty.spec b/mgetty.spec index 4ba96b3..5f01e67 100644 --- a/mgetty.spec +++ b/mgetty.spec @@ -1,9 +1,10 @@ %define date Jun15 +%define SENDFAX_UID 78 Summary: A getty replacement for use with data and fax modems Name: mgetty Version: 1.1.36 -Release: 6%{?dist} +Release: 7%{?dist} Source: ftp://mgetty.greenie.net/pub/mgetty/source/1.1/mgetty%{version}-%{date}.tar.gz Source1: ftp://mgetty.greenie.net/pub/mgetty/source/1.1/mgetty%{version}-%{date}.tar.gz.asc Source2: logrotate.mgetty @@ -189,8 +190,10 @@ if [ -f %{_infodir}/mgetty.inf* ]; then fi %pre sendfax -/usr/sbin/useradd -c "mgetty fax spool user" -u 78 \ - -s /sbin/nologin -r -d /var/spool/fax fax 2> /dev/null || : +getent group fax >/dev/null || groupadd -g %SENDFAX_UID -r fax +getent passwd fax >/dev/null || \ + useradd -r -u %SENDFAX_UID -g fax -d /var/spool/fax -s /sbin/nologin -c "mgetty fax spool user" fax +exit 0 %files %defattr(-,root,root) @@ -328,6 +331,9 @@ fi %{_mandir}/man1/viewfax.1* %changelog +* Fri May 21 2010 Jiri Skala - 1.1.36-7 +- group id should be equal to fax user id + * Mon Jan 25 2010 Jiri Skala - 1.1.36-6 - modified spec to make rpmlint more silent - added comments to spec to surviving rpmlint W and E