From 4760d4375ecba14931d64469dec996c300d50186 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 15:12:12 +0000 Subject: [PATCH] auto-import changelog data from ypbind-1.6-11.src.rpm Sun Aug 20 2000 Florian La Roche - fix condrestart #16615 - security fix for syslog() call Sun Aug 06 2000 Florian La Roche - do not include broadcast fallback until it is more tested Sun Aug 06 2000 Florian La Roche - add automatic fallback to broadcast - add "exit 0" to the scripts Wed Aug 02 2000 Bill Nottingham - turn off broadcast; authconfig will enable this... - put the pid that's actually listening to signals in the pidfile Thu Jul 20 2000 Bill Nottingham - move initscript back Thu Jul 13 2000 Prospector - automatic rebuild Fri Jul 07 2000 Florian La Roche - prereq init.d Wed Jul 05 2000 Florian La Roche - re-enable broadcasts Tue Jul 04 2000 Florian La Roche - fix scripts Mon Jul 03 2000 Nalin Dahyabhai - bump epoch Mon Jul 03 2000 Florian La Roche - switch from ypbind to ypbind-mt --- .cvsignore | 1 + sources | 1 + ypbind.init | 88 +++++++++++++++++++++++++++++++++++++++ ypbind.spec | 117 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 207 insertions(+) create mode 100755 ypbind.init create mode 100644 ypbind.spec diff --git a/.cvsignore b/.cvsignore index e69de29..a75a212 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +ypbind-mt-1.6.tar.gz diff --git a/sources b/sources index e69de29..b85c17a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +903b483e2434230c63407216380b6fc9 ypbind-mt-1.6.tar.gz diff --git a/ypbind.init b/ypbind.init new file mode 100755 index 0000000..e237f32 --- /dev/null +++ b/ypbind.init @@ -0,0 +1,88 @@ +#!/bin/sh +# +# ypbind: Starts the ypbind Daemon +# +# Version: @(#) /etc/init.d/ypbind.init 1.1 +# +# chkconfig: - 17 83 +# 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 work as NIS clients, but it should not be enabled on systems \ +# which are not using NIS. +# processname: ypbind +# config: /etc/yp.conf + +OTHER_YPBIND_OPTS="" + +# Source function library. +. /etc/init.d/functions + +start() { + echo -n "Binding to the NIS domain... " + daemon ypbind $OTHER_YPBIND_OPTS + echo + # the following fixes problems with the init scripts continuing + # even when we are really not bound yet to a server, and then things + # that need NIS fail. + pid=`pidofproc ypbind` + if [ -n "$pid" ]; then + echo -n "Listening for an NIS domain server: " + times=0 + until ypwhich > /dev/null 2>&1 || [ "$times" = "10" ] + do + echo -n "." ; + sleep 1 + times=$[$times+1] + done + ypwhich + fi + RETVAL=$? + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ypbind + return $RETVAL +} + +stop() { + echo -n "Shutting down NIS services: " + killproc ypbind + RETVAL=$? + if [ $RETVAL -eq 0 ] ; then + rm -f /var/lock/subsys/ypbind + # if we used brute force (like kill -9) we don't want those around + if [ x$(domainname) != x ] ; then + rm -f /var/yp/binding/$(domainname)* + fi + fi + echo + return $RETVAL +} + +restart() { + stop + start +} + +RETVAL=0 + +# See how we were called. +case "$1" in + start) + start + ;; + stop) + stop + ;; + status) + status ypbind + ;; + restart|reload) + restart + ;; + condrestart) + [ -f /var/lock/subsys/ypbind ] && restart || : + ;; + *) + echo "*** Usage: ypbind {start|stop|status|restart|condrestart}" + exit 1 +esac + +exit $? diff --git a/ypbind.spec b/ypbind.spec new file mode 100644 index 0000000..3a3fa5d --- /dev/null +++ b/ypbind.spec @@ -0,0 +1,117 @@ +Summary: The NIS daemon which binds NIS clients to an NIS domain. +Name: ypbind +Version: 1.6 +Release: 11 +Copyright: GPL +Group: System Environment/Daemons +Source0: ftp://ftp.us.kernel.org/pub/linux/NIS/ypbind-mt-%{PACKAGE_VERSION}.tar.gz +Source1: ypbind.init +Patch: ypbind-pthread.patch +Patch1: ypbind-mt-1.6-broadcast.patch +Patch2: ypbind-mt-1.6-syslog.patch +Prereq: /sbin/chkconfig /etc/init.d +Requires: portmap +Requires: yp-tools +Epoch: 3 +Buildroot: %{_tmppath}/ypbind-root + +%description +The Network Information Service (NIS) is a system which provides +network information (login names, passwords, home directories, group +information) to all of the machines on a network. NIS can enable +users to login on any machine on the network, as long as the machine +has the NIS client programs running and the user's password is +recorded in the NIS passwd database. NIS was formerly known as Sun +Yellow Pages (YP). + +This package provides the ypbind daemon. The ypbind daemon binds NIS +clients to an NIS domain. Ypbind must be running on any machines +which are running NIS client programs. + +Install the ypbind package on any machines which are running NIS client +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 +network. + +%prep +%setup -q -n ypbind-mt-%{version} +%patch -p1 -b .pthread-fun +#XXX %patch1 -p0 +%patch2 -p1 + +%build +%configure --disable-nls --sbindir=/sbin +make + +%install +rm -rf $RPM_BUILD_ROOT +%makeinstall sbindir=$RPM_BUILD_ROOT/sbin + +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d $RPM_BUILD_ROOT/var/yp/binding +install -m 644 etc/yp.conf $RPM_BUILD_ROOT/etc/yp.conf +install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/ypbind + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/sbin/chkconfig --add ypbind + +%preun +if [ "$1" = 0 ] ; then + /sbin/service ypbind stop > /dev/null 2>&1 + /sbin/chkconfig --del ypbind +fi +exit 0 + +%postun +if [ "$1" -ge 1 ]; then + /sbin/service ypbind condrestart > /dev/null 2>&1 +fi +exit 0 + +%files +%defattr(-,root,root) +/sbin/ypbind +%{_mandir}/*/* +%config /etc/rc.d/init.d/* +%config /etc/yp.conf +%dir /var/yp/binding +%doc README NEWS + +%changelog +* Sun Aug 20 2000 Florian La Roche +- fix condrestart #16615 +- security fix for syslog() call + +* Sun Aug 6 2000 Florian La Roche +- do not include broadcast fallback until it is more tested + +* Sun Aug 6 2000 Florian La Roche +- add automatic fallback to broadcast +- add "exit 0" to the scripts + +* Wed Aug 2 2000 Bill Nottingham +- turn off broadcast; authconfig will enable this... +- put the pid that's actually listening to signals in the pidfile + +* Thu Jul 20 2000 Bill Nottingham +- move initscript back + +* Thu Jul 13 2000 Prospector +- automatic rebuild + +* Fri Jul 7 2000 Florian La Roche +- prereq init.d + +* Wed Jul 5 2000 Florian La Roche +- re-enable broadcasts + +* Tue Jul 4 2000 Florian La Roche +- fix scripts + +* Mon Jul 3 2000 Nalin Dahyabhai +- bump epoch + +* Mon Jul 3 2000 Florian La Roche +- switch from ypbind to ypbind-mt