5d711fc0e2
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 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)
138 lines
3.9 KiB
RPMSpec
138 lines
3.9 KiB
RPMSpec
Summary: The NIS daemon which binds NIS clients to an NIS domain.
|
||
Name: ypbind
|
||
Version: 1.7
|
||
Release: 6
|
||
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
|
||
Prereq: /sbin/chkconfig
|
||
Requires: portmap, yp-tools, bash >= 2.0
|
||
Epoch: 3
|
||
Buildroot: %{_tmppath}/%{name}-%{version}-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
|
||
%patch1 -p0
|
||
|
||
%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
|
||
* 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<73>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>
|
||
- 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>
|
||
- fix condrestart #16615
|
||
- security fix for syslog() call
|
||
|
||
* Sun Aug 6 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
||
- do not include broadcast fallback until it is more tested
|
||
|
||
* Sun Aug 6 2000 Florian La Roche <Florian.LaRoche@redhat.de>
|
||
- add automatic fallback to broadcast
|
||
- add "exit 0" to the scripts
|
||
|
||
* Wed Aug 2 2000 Bill Nottingham <notting@redhat.com>
|
||
- 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 <notting@redhat.com>
|
||
- move initscript back
|
||
|
||
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
|
||
- automatic rebuild
|
||
|
||
* Fri Jul 7 2000 Florian La Roche <Florian.LaRoche@redhat.com>
|
||
- prereq init.d
|
||
|
||
* Wed Jul 5 2000 Florian La Roche <Florian.LaRoche@redhat.com>
|
||
- re-enable broadcasts
|
||
|
||
* Tue Jul 4 2000 Florian La Roche <Florian.LaRoche@redhat.com>
|
||
- fix scripts
|
||
|
||
* Mon Jul 3 2000 Nalin Dahyabhai <nalin@redhat.com>
|
||
- bump epoch
|
||
|
||
* Mon Jul 3 2000 Florian La Roche <Florian.LaRoche@redhat.com>
|
||
- switch from ypbind to ypbind-mt
|