]> git.pld-linux.org Git - packages/FreeWnn.git/commitdiff
- Req user-wnn
authorpascalek <pascalek@pld-linux.org>
Sat, 10 May 2003 09:00:44 +0000 (09:00 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    FreeWnn.spec -> 1.7

FreeWnn.spec

index 72a15fed4f01f5acd7808bf7be6b5e0766a22132..ade8aca23cc746208685e34b69739b987faf16a1 100644 (file)
@@ -90,11 +90,7 @@ Statyczna wersja biblioteki FreeWnn.
 Summary:       Common files for Wnn
 Summary(pl):   Wspólne pliki Wnn
 Group:         Applications/System
-Requires(pre): /bin/id
-Requires(pre): /usr/sbin/groupadd
-Requires(pre): /usr/sbin/useradd
-Requires(postun):      /usr/sbin/userdel
-Requires(postun):      /usr/sbin/groupdel
+Requires(pre): user-wnn
 
 %description common
 FreeWnn-common includes the files you need to run FreeWnn, cWnn or
@@ -301,30 +297,6 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del FreeWnn
 fi
 
-%pre common
-if [ -n "`getgid wnn`" ]; then
-       if [ "`getgid wnn`" != "42" ]; then
-               echo "Warning: group wnn doesn't have gid=42. Correct this before installing FreeWnn." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/groupadd -g 42 -r -f wnn
-fi
-if [ -n "`id -u wnn 2>/dev/null`" ]; then
-       if [ "`id -u wnn`" != "42" ]; then
-               echo "Warning: user wnn doesn't have uid=42. Correct this before installing FreeWnn." 1>&2
-               exit 1
-       fi
-else
-       /usr/sbin/useradd -M -u 42 -c "Wnn Service User" -g wnn -s /bin/false wnn 1>&2
-fi
-
-%postun common
-if [ "$1" = "0" ]; then
-       /usr/sbin/userdel wnn
-       /usr/sbin/groupdel wnn
-fi
-
 %post  libs -p /sbin/ldconfig
 %postun        libs -p /sbin/ldconfig
 
This page took 0.101799 seconds and 4 git commands to generate.