auto-import changelog data from ypbind-1.7-6.src.rpm
Sat Mar 03 2001 Preston Brown <pbrown@redhat.com> - much more sane ypbind init script for when networking is down. Wed Feb 07 2001 Trond Eivind Glomsrd <teg@redhat.com> - fix "usage" string (use $0) Wed Jan 24 2001 Florian La Roche <Florian.LaRoche@redhat.de> - prepare for initscript translation - do not prereq /etc/init.d Thu Jan 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> - Start after netfs (#23526)
This commit is contained in:
parent
89f8fe4490
commit
5d711fc0e2
@ -1 +1 @@
|
|||||||
ypbind-mt-1.6.tar.gz
|
ypbind-mt-1.7.tar.gz
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
903b483e2434230c63407216380b6fc9 ypbind-mt-1.6.tar.gz
|
d6f98266a18f25337cd6afdb8282af4f ypbind-mt-1.7.tar.gz
|
||||||
|
37
ypbind.init
37
ypbind.init
@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# ypbind: Starts the ypbind Daemon
|
# ypbind: Starts the ypbind Daemon
|
||||||
#
|
#
|
||||||
# Version: @(#) /etc/init.d/ypbind.init 1.1
|
# Version: @(#) /etc/init.d/ypbind.init 1.2
|
||||||
#
|
#
|
||||||
# chkconfig: - 17 83
|
# chkconfig: - 27 73
|
||||||
# description: This is a daemon which runs on NIS/YP clients and binds them \
|
# description: This is a daemon which runs on NIS/YP clients and binds them \
|
||||||
# to a NIS domain. It must be running for systems based on glibc \
|
# to a NIS domain. It must be running for systems based on glibc \
|
||||||
# to work as NIS clients, but it should not be enabled on systems \
|
# to work as NIS clients, but it should not be enabled on systems \
|
||||||
@ -19,16 +19,19 @@ OTHER_YPBIND_OPTS=""
|
|||||||
|
|
||||||
. /etc/sysconfig/network
|
. /etc/sysconfig/network
|
||||||
|
|
||||||
|
# Check that networking is configured.
|
||||||
|
[ ${NETWORKING} = "no" ] && exit 0
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
DOMAINNAME=`domainname`
|
DOMAINNAME=`domainname`
|
||||||
if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
|
if [ "$DOMAINNAME" = "(none)" -o "$DOMAINNAME" = "" ]; then
|
||||||
if [ -n "$NISDOMAIN" ]; then
|
if [ -n "$NISDOMAIN" ]; then
|
||||||
action "Setting NIS domain name $NISDOMAIN: " domainname $NISDOMAIN
|
action $"Setting NIS domain name $NISDOMAIN: " domainname $NISDOMAIN
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo -n "Binding to the NIS domain... "
|
echo -n $"Binding to the NIS domain... "
|
||||||
daemon ypbind $OTHER_YPBIND_OPTS
|
daemon ypbind $OTHER_YPBIND_OPTS
|
||||||
echo
|
echo
|
||||||
# the following fixes problems with the init scripts continuing
|
# the following fixes problems with the init scripts continuing
|
||||||
@ -36,23 +39,27 @@ start() {
|
|||||||
# that need NIS fail.
|
# that need NIS fail.
|
||||||
pid=`pidofproc ypbind`
|
pid=`pidofproc ypbind`
|
||||||
if [ -n "$pid" ]; then
|
if [ -n "$pid" ]; then
|
||||||
echo -n "Listening for an NIS domain server: "
|
echo -n $"Listening for an NIS domain server."
|
||||||
times=0
|
times=1
|
||||||
until ypwhich > /dev/null 2>&1 || [ "$times" = "10" ]
|
until ypwhich > /dev/null 2>&1 || [ "$times" = "3" ]
|
||||||
do
|
do
|
||||||
echo -n "." ;
|
RETVAL=$?
|
||||||
sleep 1
|
echo -n "."
|
||||||
times=$[$times+1]
|
times=$[$times+1]
|
||||||
done
|
done
|
||||||
ypwhich
|
|
||||||
fi
|
fi
|
||||||
RETVAL=$?
|
if [ $RETVAL -eq 0 ]; then
|
||||||
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/ypbind
|
touch /var/lock/subsys/ypbind
|
||||||
|
else
|
||||||
|
failure "attempting to contact yp server"
|
||||||
|
kill "$pid"
|
||||||
|
fi
|
||||||
|
echo
|
||||||
return $RETVAL
|
return $RETVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
echo -n "Shutting down NIS services: "
|
echo -n $"Shutting down NIS services: "
|
||||||
killproc ypbind
|
killproc ypbind
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
if [ $RETVAL -eq 0 ] ; then
|
if [ $RETVAL -eq 0 ] ; then
|
||||||
@ -91,7 +98,7 @@ case "$1" in
|
|||||||
[ -f /var/lock/subsys/ypbind ] && restart || :
|
[ -f /var/lock/subsys/ypbind ] && restart || :
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "*** Usage: ypbind {start|stop|status|restart|condrestart}"
|
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
|
||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
35
ypbind.spec
35
ypbind.spec
@ -1,19 +1,17 @@
|
|||||||
Summary: The NIS daemon which binds NIS clients to an NIS domain.
|
Summary: The NIS daemon which binds NIS clients to an NIS domain.
|
||||||
Name: ypbind
|
Name: ypbind
|
||||||
Version: 1.6
|
Version: 1.7
|
||||||
Release: 12
|
Release: 6
|
||||||
Copyright: GPL
|
Copyright: GPL
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: ftp://ftp.us.kernel.org/pub/linux/NIS/ypbind-mt-%{PACKAGE_VERSION}.tar.gz
|
Source0: ftp://ftp.us.kernel.org/pub/linux/NIS/ypbind-mt-%{PACKAGE_VERSION}.tar.gz
|
||||||
Source1: ypbind.init
|
Source1: ypbind.init
|
||||||
Patch: ypbind-pthread.patch
|
Patch: ypbind-pthread.patch
|
||||||
Patch1: ypbind-mt-1.6-broadcast.patch
|
Patch1: ypbind-mt-1.6-broadcast.patch
|
||||||
Patch2: ypbind-mt-1.6-syslog.patch
|
Prereq: /sbin/chkconfig
|
||||||
Prereq: /sbin/chkconfig /etc/init.d
|
Requires: portmap, yp-tools, bash >= 2.0
|
||||||
Requires: portmap
|
|
||||||
Requires: yp-tools
|
|
||||||
Epoch: 3
|
Epoch: 3
|
||||||
Buildroot: %{_tmppath}/ypbind-root
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Network Information Service (NIS) is a system which provides
|
The Network Information Service (NIS) is a system which provides
|
||||||
@ -33,11 +31,11 @@ programs (included in the yp-tools package). If you need an NIS server,
|
|||||||
you'll also need to install the ypserv package to a machine on your
|
you'll also need to install the ypserv package to a machine on your
|
||||||
network.
|
network.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n ypbind-mt-%{version}
|
%setup -q -n ypbind-mt-%{version}
|
||||||
%patch -p1 -b .pthread-fun
|
%patch -p1 -b .pthread-fun
|
||||||
#XXX %patch1 -p0
|
%patch1 -p0
|
||||||
%patch2 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-nls --sbindir=/sbin
|
%configure --disable-nls --sbindir=/sbin
|
||||||
@ -80,9 +78,28 @@ exit 0
|
|||||||
%doc README NEWS
|
%doc README NEWS
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Mar 3 2001 Preston Brown <pbrown@redhat.com>
|
||||||
|
- much more sane ypbind init script for when networking is down.
|
||||||
|
|
||||||
|
* Wed Feb 7 2001 Trond Eivind Glomsrød <teg@redhat.com>
|
||||||
|
- fix "usage" string (use $0)
|
||||||
|
|
||||||
|
* Wed Jan 24 2001 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||||
|
- prepare for initscript translation
|
||||||
|
- do not prereq /etc/init.d
|
||||||
|
|
||||||
|
* Thu Jan 11 2001 Bernhard Rosenkraenzer <bero@redhat.com>
|
||||||
|
- Start after netfs (#23526)
|
||||||
|
|
||||||
* Wed Nov 29 2000 Bill Nottingham <notting@redhat.com>
|
* Wed Nov 29 2000 Bill Nottingham <notting@redhat.com>
|
||||||
- set NIS domain name if it's not already set
|
- set NIS domain name if it's not already set
|
||||||
|
|
||||||
|
* Mon Oct 02 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||||
|
- update to 1.7
|
||||||
|
|
||||||
|
* Thu Aug 31 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||||
|
- add again automatic fallback to broadcast
|
||||||
|
|
||||||
* Sun Aug 20 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
* Sun Aug 20 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
||||||
- fix condrestart #16615
|
- fix condrestart #16615
|
||||||
- security fix for syslog() call
|
- security fix for syslog() call
|
||||||
|
Loading…
Reference in New Issue
Block a user