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

bind.spec

index 9fbe5de03fadeec41109d77e9b5c3b7ae2bf32c8..03c370e33dd6b80cda0d39acbb808ca96af96deb 100644 (file)
--- a/bind.spec
+++ b/bind.spec
@@ -41,13 +41,8 @@ BuildRequires:       libtool
 PreReq:                %{name}-libs = %{version}
 PreReq:                rc-scripts >= 0.2.0
 Requires(pre): fileutils
-Requires(pre): /usr/bin/getgid
-Requires(pre): /bin/id
-Requires(pre): /usr/sbin/groupadd
-Requires(pre): /usr/sbin/useradd
+Requires(pre): user-named
 Requires(post,preun):  /sbin/chkconfig
-Requires(postun):      /usr/sbin/userdel
-Requires(postun):      /usr/sbin/groupdel
 Requires:      psmisc >= 20.1
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Provides:      nameserver
@@ -358,24 +353,6 @@ if [ -f %{_sysconfdir}/named.boot ]; then
        mv -f %{_sysconfdir}/named.boot /etc/named.rpmsave
        echo "Warning: %{_sysconfdir}/named.boot saved as /etc/named.rpmsave." 1>&2
 fi
-if [ -n "`getgid named`" ]; then
-       if [ "`getgid named`" != "58" ]; then
-               echo "Error: group named doesn't have gid=58. Correct this before installing bind." 1>&2
-               exit 1
-       fi
-else
-       echo "Adding group named GID=58."
-       /usr/sbin/groupadd -g 58 named || exit 1
-fi
-if [ -n "`id -u named 2>/dev/null`" ]; then
-       if [ "`id -u named`" != "58" ]; then
-               echo "Error: user named doesn't have uid=58. Correct this before installing bind." 1>&2
-               exit 1
-       fi
-else
-       echo "Adding user named UID=58."
-       /usr/sbin/useradd -u 58 -g 58 -d /dev/null -s /bin/false -c "BIND user" named || exit 1
-fi
 
 %post
 /sbin/chkconfig --add named
@@ -393,14 +370,6 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del named
 fi
 
-%postun
-if [ "$1" = "0" ]; then
-       echo "Removing user named."
-       %{_sbindir}/userdel named
-       echo "Removing group named."
-       %{_sbindir}/groupdel named
-fi
-
 %post   libs -p /sbin/ldconfig
 %postun libs -p /sbin/ldconfig
 
This page took 0.184576 seconds and 4 git commands to generate.