]> git.pld-linux.org Git - packages/avahi.git/commitdiff
- pre/postun user/group preparation
authorfreetz <freetz@pld-linux.org>
Sat, 21 Jan 2006 13:40:12 +0000 (13:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    avahi.spec -> 1.3

avahi.spec

index 80aa1998ad36397ee44fbf52b948b4124e358d69..4ece87d73970d71793f7f0daccf4907a061371ea 100644 (file)
@@ -264,6 +264,12 @@ install %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d
 %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
@@ -278,6 +284,14 @@ if [ "$1" = "0" ]; then
        /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
 
This page took 0.036799 seconds and 4 git commands to generate.