From 085110d03e23533b6d08d9849428994d826f9cdf Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 15:14:21 +0000 Subject: [PATCH] auto-import changelog data from ypserv-1.3.12-1.src.rpm Tue Jul 24 2001 Florian La Roche - add gdbm-devel BuildReq #49767 - add ypxfrd init script #44845 - fix #44805 - fix #20042, adding option to yppasswdd startup - own /var/yp --- ypserv-yppasswdd.init | 2 +- ypserv-ypserv.init | 2 +- ypserv-ypxfrd.init | 65 +++++++++++++++++++++++++++++++++++++++++++ ypserv.spec | 20 +++++++++++-- 4 files changed, 85 insertions(+), 4 deletions(-) create mode 100644 ypserv-ypxfrd.init diff --git a/ypserv-yppasswdd.init b/ypserv-yppasswdd.init index 03258b6..6dd394e 100644 --- a/ypserv-yppasswdd.init +++ b/ypserv-yppasswdd.init @@ -22,7 +22,7 @@ RETVAL=0 start() { echo -n $"Starting YP passwd service: " - daemon rpc.yppasswdd + daemon rpc.yppasswdd $YPPASSWDD_ARGS RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/yppasswdd diff --git a/ypserv-ypserv.init b/ypserv-ypserv.init index 527e511..2eaf6e6 100644 --- a/ypserv-ypserv.init +++ b/ypserv-ypserv.init @@ -25,7 +25,7 @@ RETVAL=0 start() { echo -n $"Starting YP server services: " - daemon ypserv + daemon ypserv $YPSERV_ARGS RETVAL=$? echo [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ypserv diff --git a/ypserv-ypxfrd.init b/ypserv-ypxfrd.init new file mode 100644 index 0000000..e807a0d --- /dev/null +++ b/ypserv-ypxfrd.init @@ -0,0 +1,65 @@ +#!/bin/bash +# +# ypxfrd: Starts the ypxfrd daemon +# +# Version: @(#) /etc/init.d/ypxfrd 1.0 +# +# chkconfig: - 26 74 +# description: ypxfrd should be started in addition to ypserv to accelerate \ +# transferring yp maps. +# processname: ypxfrd + +# Source function library. +[ -f /etc/rc.d/init.d/functions ] || exit 0 +. /etc/rc.d/init.d/functions + +# getting the YP-Domainname +. /etc/sysconfig/network + +RETVAL=0 + +start() { + echo -n $"Starting YP map server: " + daemon ypxfrd $YPXFRD_ARGS + ETVAL=$? + echo + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ypxfrd + return $RETVAL +} + +stop() { + echo -n $"Stopping YP map server: " + killproc ypxfrd + RETVAL=$? + [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/ypxfrd + echo + return $RETVAL +} + +# See how we were called. +case "$1" in + start) + start + ;; + stop) + stop + ;; + status) + status ypxfrd + ;; + restart|reload) + stop + start + ;; + condrestart) + if [ -f /var/lock/subsys/ypxfrd ]; then + stop + start + fi + ;; + *) + echo $"Usage: $0 {start|stop|status|restart|reload|condrestart}" + exit 1 +esac + +exit $RETVAL diff --git a/ypserv.spec b/ypserv.spec index 908606a..e5b5f14 100644 --- a/ypserv.spec +++ b/ypserv.spec @@ -4,18 +4,20 @@ Summary: The NIS (Network Information Service) server. Url: http://www.suse.de/~kukuk Name: ypserv Version: 1.3.12 -Release: 0.2 +Release: 1 Copyright: GNU Group: System Environment/Daemons Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypserv-%{version}.tar.gz Source1: ypserv-ypserv.init Source2: ypserv-yppasswdd.init +Source3: ypserv-ypxfrd.init Requires: make, portmap, bash >= 2.0 Prereq: /sbin/chkconfig /sbin/service Patch0: ypserv-1.3.11-redhat.patch Patch1: ypserv-1.3.9-ndbmkey.patch Patch3: ypserv-syslog.patch Obsoletes: yppasswd +BuildRequires: gdbm-devel Buildroot: %{_tmppath}/%{name}-root %description @@ -37,7 +39,7 @@ client machines. %prep %setup -q -%patch0 -p0 +%patch0 -p1 %patch1 -p1 %patch3 -p1 @@ -54,6 +56,7 @@ mkdir -p $RPM_BUILD_ROOT%{initdir} install -m644 etc/ypserv.conf $RPM_BUILD_ROOT%{_sysconfdir} install -m755 $RPM_SOURCE_DIR/ypserv-ypserv.init $RPM_BUILD_ROOT%{initdir}/ypserv install -m755 $RPM_SOURCE_DIR/ypserv-yppasswdd.init $RPM_BUILD_ROOT%{initdir}/yppasswdd +install -m755 $RPM_SOURCE_DIR/ypserv-ypxfrd.init $RPM_BUILD_ROOT%{initdir}/ypxfrd %clean rm -rf $RPM_BUILD_ROOT @@ -61,6 +64,7 @@ rm -rf $RPM_BUILD_ROOT %post /sbin/chkconfig --add ypserv /sbin/chkconfig --add yppasswdd +/sbin/chkconfig --add ypxfrd %triggerpostun -- ypserv <= ypserv-1.3.0-2 /sbin/chkconfig --add ypserv @@ -74,13 +78,17 @@ if [ $1 = 0 ]; then /sbin/chkconfig --del ypserv /sbin/service yppasswdd stop > /dev/null 2>&1 /sbin/chkconfig --del yppasswdd + /sbin/service ypxfrd stop > /dev/null 2>&1 + /sbin/chkconfig --del ypxfrd fi %postun if [ "$1" -ge "1" ]; then /sbin/service ypserv condrestart > /dev/null 2>&1 /sbin/service yppasswdd condrestart > /dev/null 2>&1 + /sbin/service ypxfrd condrestart > /dev/null 2>&1 fi +exit 0 %files %defattr(-,root,root) @@ -88,6 +96,7 @@ fi %doc etc/ypserv.conf etc/securenets etc/README.etc %config %{_sysconfdir}/ypserv.conf %config /var/yp/* +%dir /var/yp %config %{initdir}/* %{_libdir}/yp %{_sbindir}/* @@ -95,6 +104,13 @@ fi %{_includedir}/*/* %changelog +* Tue Jul 24 2001 Florian La Roche +- add gdbm-devel BuildReq #49767 +- add ypxfrd init script #44845 +- fix #44805 +- fix #20042, adding option to yppasswdd startup +- own /var/yp + * Mon Jul 9 2001 Tim Powers - added reload entry to initscript (same as restart)