SPECS: avahi.spec - pre/postun user/group preparation

freetz freetz at pld-linux.org
Sat Jan 21 14:40:17 CET 2006


Author: freetz                       Date: Sat Jan 21 13:40:17 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- pre/postun user/group preparation

---- Files affected:
SPECS:
   avahi.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/avahi.spec
diff -u SPECS/avahi.spec:1.2 SPECS/avahi.spec:1.3
--- SPECS/avahi.spec:1.2	Sat Jan 21 14:35:21 2006
+++ SPECS/avahi.spec	Sat Jan 21 14:40:12 2006
@@ -265,6 +265,12 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%if 0
+%pre
+%groupadd -g x -r -f avahi
+%useradd -u x -r -d /usr/share/empty -s /bin/false -c "Avahi daemon" -g avahi avahi
+%endif
+
 %post
 /sbin/chkconfig --add %{name}-daemon
 %service %{name}-daemon restart
@@ -279,6 +285,14 @@
 	/sbin/chkconfig --del %{name}-daemon
 fi
 
+%if 0
+%postun                                                                                         
+if [ "$1" = "0" ]; then                                                                         
+        %userremove avahi
+	%groupremove avahi
+fi
+%endif
+
 %post	libs -p /sbin/ldconfig
 %postun	libs -p /sbin/ldconfig
 
@@ -409,6 +423,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2006/01/21 13:40:12  freetz
+- pre/postun user/group preparation
+
 Revision 1.2  2006/01/21 13:35:21  freetz
 - added init scripts
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/avahi.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list