auto-import changelog data from ypserv-1.3.12-1.src.rpm
Tue Jul 24 2001 Florian La Roche <Florian.LaRoche@redhat.de> - add gdbm-devel BuildReq #49767 - add ypxfrd init script #44845 - fix #44805 - fix #20042, adding option to yppasswdd startup - own /var/yp
This commit is contained in:
parent
bc5b09772f
commit
085110d03e
@ -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
|
||||
|
@ -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
|
||||
|
65
ypserv-ypxfrd.init
Normal file
65
ypserv-ypxfrd.init
Normal file
@ -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
|
20
ypserv.spec
20
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 <Florian.LaRoche@redhat.de>
|
||||
- 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 <timp@redhat.com>
|
||||
- added reload entry to initscript (same as restart)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user