SPECS: rwho.spec - release 16 - added required rwhod user

baggins baggins at pld-linux.org
Thu Aug 10 14:21:46 CEST 2006


Author: baggins                      Date: Thu Aug 10 12:21:46 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- release 16
- added required rwhod user

---- Files affected:
SPECS:
   rwho.spec (1.32 -> 1.33) 

---- Diffs:

================================================================
Index: SPECS/rwho.spec
diff -u SPECS/rwho.spec:1.32 SPECS/rwho.spec:1.33
--- SPECS/rwho.spec:1.32	Mon May 22 00:14:34 2006
+++ SPECS/rwho.spec	Thu Aug 10 14:21:40 2006
@@ -8,7 +8,7 @@
 Summary(tr):	Ađ üzerindeki makinalardaki kullanýcýlarý sorgular
 Name:		rwho
 Version:	0.17
-Release:	15
+Release:	16
 License:	BSD
 Group:		Networking/Daemons
 Source0:	ftp://ftp.linux.org.uk/pub/linux/Networking/netkit/netkit-%{name}-%{version}.tar.gz
@@ -89,6 +89,10 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%pre
+%groupadd -g 174 rwhod
+%useradd -u 174 -d /usr/share/empty -s /bin/false -c "rwhod User" -g rwhod rwhod
+
 %post
 /sbin/chkconfig --add rwhod
 %service rwhod restart "rwhod server"
@@ -99,6 +103,12 @@
 	/sbin/chkconfig --del rwhod
 fi
 
+%postun
+if [ "$1" = "0" ]; then
+	%userremove rwhod
+	%groupremove rwhod
+fi
+
 %files
 %defattr(644,root,root,755)
 %attr(754,root,root) /etc/rc.d/init.d/rwhod
@@ -117,6 +127,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.33  2006/08/10 12:21:40  baggins
+- release 16
+- added required rwhod user
+
 Revision 1.32  2006/05/21 22:14:34  glen
 - rel 15
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/rwho.spec?r1=1.32&r2=1.33&f=u



More information about the pld-cvs-commit mailing list