auto-import changelog data from krb5-1.2.2-11.src.rpm
Fri Jul 20 2001 Nalin Dahyabhai <nalin@redhat.com> - tweak statglue.c to fix stat/stat64 aliasing problems - be cleaner in use of gcc to build shlibs Wed Jul 11 2001 Nalin Dahyabhai <nalin@redhat.com> - use gcc to build shared libraries Wed Jun 27 2001 Nalin Dahyabhai <nalin@redhat.com> - add patch to support "ANY" keytab type (i.e., "default_keytab_name = ANY:FILE:/etc/krb5.keytab,SRVTAB:/etc/srvtab" patch from Gerald Britton, #42551) - build with -D_FILE_OFFSET_BITS=64 to get large file I/O in ftpd (#30697) - patch ftpd to use long long and %lld format specifiers to support the SIZE command on large files (also #30697) - don't use LOG_AUTH as an option value when calling openlog() in ksu (#45965) - implement reload in krb5kdc and kadmind init scripts (#41911) - lose the krb5server init script (not using it any more) Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com> - Bump release + rebuild.
This commit is contained in:
parent
7287770309
commit
21f3145cb4
26
kadmind.init
26
kadmind.init
@ -18,10 +18,12 @@
|
|||||||
|
|
||||||
# Source function library.
|
# Source function library.
|
||||||
. /etc/init.d/functions
|
. /etc/init.d/functions
|
||||||
|
prog="Kerberos 5 Admin Server"
|
||||||
|
kadmind=/usr/kerberos/sbin/kadmind
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
|
||||||
# Sheel functions to cut down on useless shell instances.
|
# Shell functions to cut down on useless shell instances.
|
||||||
start() {
|
start() {
|
||||||
if [ ! -f /var/kerberos/krb5kdc/principal ] ; then
|
if [ ! -f /var/kerberos/krb5kdc/principal ] ; then
|
||||||
exit 0
|
exit 0
|
||||||
@ -35,19 +37,25 @@ start() {
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo -n $"Starting Kerberos 5 Admin Server: "
|
echo -n $"Starting $prog: "
|
||||||
daemon /usr/kerberos/sbin/kadmind
|
daemon ${kadmind}
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL = 0 ] && touch /var/lock/subsys/kadmin
|
[ $RETVAL = 0 ] && touch /var/lock/subsys/kadmin
|
||||||
}
|
}
|
||||||
stop() {
|
stop() {
|
||||||
echo -n $"Stopping Kerberos 5 Admin Server: "
|
echo -n $"Stopping $prog: "
|
||||||
killproc kadmind
|
killproc ${kadmind}
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/kadmin
|
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/kadmin
|
||||||
}
|
}
|
||||||
|
reload() {
|
||||||
|
echo -n $"Reopening $prog log file: "
|
||||||
|
killproc ${kadmind} -HUP
|
||||||
|
RETVAL=$?
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
# See how we were called.
|
# See how we were called.
|
||||||
case "$1" in
|
case "$1" in
|
||||||
@ -62,7 +70,11 @@ case "$1" in
|
|||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
status kadmind
|
status ${kadmind}
|
||||||
|
RETVAL=$?
|
||||||
|
;;
|
||||||
|
reload)
|
||||||
|
reload
|
||||||
;;
|
;;
|
||||||
condrestart)
|
condrestart)
|
||||||
if [ -f /var/lock/subsys/kadmin ] ; then
|
if [ -f /var/lock/subsys/kadmin ] ; then
|
||||||
@ -71,7 +83,7 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo $"Usage: $0 {start|stop|status|condrestart|restart}"
|
echo $"Usage: $0 {start|stop|status|condrestart|reload|restart}"
|
||||||
RETVAL=1
|
RETVAL=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
13
kpropd.init
13
kpropd.init
@ -19,21 +19,23 @@
|
|||||||
. /etc/init.d/functions
|
. /etc/init.d/functions
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
prog="Kerberos 5 Propagation Server"
|
||||||
|
kpropd=/usr/kerberos/sbin/kpropd
|
||||||
|
|
||||||
# Sheel functions to cut down on useless shell instances.
|
# Sheel functions to cut down on useless shell instances.
|
||||||
start() {
|
start() {
|
||||||
if [ ! -f /var/kerberos/krb5kdc/kpropd.acl ] ; then
|
if [ ! -f /var/kerberos/krb5kdc/kpropd.acl ] ; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo -n $"Starting Kerberos 5 Propagation Server: "
|
echo -n $"Starting $prog: "
|
||||||
daemon /usr/kerberos/sbin/kpropd -S
|
daemon ${kpropd} -S
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL = 0 ] && touch /var/lock/subsys/kprop
|
[ $RETVAL = 0 ] && touch /var/lock/subsys/kprop
|
||||||
}
|
}
|
||||||
stop() {
|
stop() {
|
||||||
echo -n $"Stopping Kerberos 5 Propagation Server: "
|
echo -n $"Stopping $prog: "
|
||||||
killproc kpropd
|
killproc ${kpropd}
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/kprop
|
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/kprop
|
||||||
@ -52,7 +54,8 @@ case "$1" in
|
|||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
status kpropd
|
status ${kpropd}
|
||||||
|
retval=$?
|
||||||
;;
|
;;
|
||||||
condrestart)
|
condrestart)
|
||||||
if [ -f /var/lock/subsys/kprop ] ; then
|
if [ -f /var/lock/subsys/kprop ] ; then
|
||||||
|
86
krb5.spec
86
krb5.spec
@ -3,7 +3,7 @@
|
|||||||
Summary: The Kerberos network authentication system.
|
Summary: The Kerberos network authentication system.
|
||||||
Name: krb5
|
Name: krb5
|
||||||
Version: 1.2.2
|
Version: 1.2.2
|
||||||
Release: 7
|
Release: 11
|
||||||
Source0: krb5-%{version}.tar.gz
|
Source0: krb5-%{version}.tar.gz
|
||||||
Source1: kpropd.init
|
Source1: kpropd.init
|
||||||
Source2: krb524d.init
|
Source2: krb524d.init
|
||||||
@ -22,7 +22,6 @@ Source14: klogin.xinetd
|
|||||||
Source15: kshell.xinetd
|
Source15: kshell.xinetd
|
||||||
Source16: krb5-telnet.xinetd
|
Source16: krb5-telnet.xinetd
|
||||||
Source17: gssftp.xinetd
|
Source17: gssftp.xinetd
|
||||||
Source18: krb5server.init
|
|
||||||
Source19: statglue.c
|
Source19: statglue.c
|
||||||
Patch0: krb5-1.1-db.patch
|
Patch0: krb5-1.1-db.patch
|
||||||
Patch1: krb5-1.1.1-tiocgltc.patch
|
Patch1: krb5-1.1.1-tiocgltc.patch
|
||||||
@ -45,7 +44,10 @@ Patch17: krb5-1.2.2-wragg.patch
|
|||||||
Patch18: krb5-1.2.2-statglue.patch
|
Patch18: krb5-1.2.2-statglue.patch
|
||||||
Patch19: http://web.mit.edu/kerberos/www/advisories/ftpbuf_122_patch.txt
|
Patch19: http://web.mit.edu/kerberos/www/advisories/ftpbuf_122_patch.txt
|
||||||
Patch20: krb5-1.2.2-by-address.patch
|
Patch20: krb5-1.2.2-by-address.patch
|
||||||
Copyright: MIT, freely distributable.
|
Patch21: http://lite.mit.edu/krb5-1.2.2-ktany.patch
|
||||||
|
Patch22: krb5-1.2.2-logauth.patch
|
||||||
|
Patch23: krb5-1.2.2-size.patch
|
||||||
|
License: MIT, freely distributable.
|
||||||
URL: http://web.mit.edu/kerberos/www/
|
URL: http://web.mit.edu/kerberos/www/
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
BuildRoot: %{_tmppath}/%{name}-root
|
BuildRoot: %{_tmppath}/%{name}-root
|
||||||
@ -60,7 +62,7 @@ practice of cleartext passwords.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Development files needed for compiling Kerberos 5 programs.
|
Summary: Development files needed for compiling Kerberos 5 programs.
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name}-libs = %{version}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
Kerberos is a network authentication system. The krb5-devel package
|
Kerberos is a network authentication system. The krb5-devel package
|
||||||
@ -82,7 +84,7 @@ Kerberos, you'll need to install this package.
|
|||||||
%package server
|
%package server
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Summary: The server programs for Kerberos 5.
|
Summary: The server programs for Kerberos 5.
|
||||||
Requires: %{name}-libs = %{version}, %{name}-workstation = %{version}
|
Requires: %{name}-libs = %{version}-%{release}, %{name}-workstation = %{version}-%{release}
|
||||||
Prereq: grep, /sbin/install-info, /bin/sh, sh-utils
|
Prereq: grep, /sbin/install-info, /bin/sh, sh-utils
|
||||||
|
|
||||||
%description server
|
%description server
|
||||||
@ -95,7 +97,7 @@ package).
|
|||||||
%package workstation
|
%package workstation
|
||||||
Summary: Kerberos 5 programs for use on workstations.
|
Summary: Kerberos 5 programs for use on workstations.
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
Requires: %{name}-libs = %{version}
|
Requires: %{name}-libs = %{version}-%{release}
|
||||||
Prereq: grep, /sbin/install-info, /bin/sh, sh-utils
|
Prereq: grep, /sbin/install-info, /bin/sh, sh-utils
|
||||||
|
|
||||||
%description workstation
|
%description workstation
|
||||||
@ -106,6 +108,27 @@ network uses Kerberos, this package should be installed on every
|
|||||||
workstation.
|
workstation.
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 20 2001 Nalin Dahyabhai <nalin@redhat.com>
|
||||||
|
- tweak statglue.c to fix stat/stat64 aliasing problems
|
||||||
|
- be cleaner in use of gcc to build shlibs
|
||||||
|
|
||||||
|
* Wed Jul 11 2001 Nalin Dahyabhai <nalin@redhat.com>
|
||||||
|
- use gcc to build shared libraries
|
||||||
|
|
||||||
|
* Wed Jun 27 2001 Nalin Dahyabhai <nalin@redhat.com>
|
||||||
|
- add patch to support "ANY" keytab type (i.e.,
|
||||||
|
"default_keytab_name = ANY:FILE:/etc/krb5.keytab,SRVTAB:/etc/srvtab"
|
||||||
|
patch from Gerald Britton, #42551)
|
||||||
|
- build with -D_FILE_OFFSET_BITS=64 to get large file I/O in ftpd (#30697)
|
||||||
|
- patch ftpd to use long long and %%lld format specifiers to support the SIZE
|
||||||
|
command on large files (also #30697)
|
||||||
|
- don't use LOG_AUTH as an option value when calling openlog() in ksu (#45965)
|
||||||
|
- implement reload in krb5kdc and kadmind init scripts (#41911)
|
||||||
|
- lose the krb5server init script (not using it any more)
|
||||||
|
|
||||||
|
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
|
||||||
|
- Bump release + rebuild.
|
||||||
|
|
||||||
* Tue May 29 2001 Nalin Dahyabhai <nalin@redhat.com>
|
* Tue May 29 2001 Nalin Dahyabhai <nalin@redhat.com>
|
||||||
- pass some structures by address instead of on the stack in krb5kdc
|
- pass some structures by address instead of on the stack in krb5kdc
|
||||||
|
|
||||||
@ -113,7 +136,7 @@ workstation.
|
|||||||
- rebuild in new environment
|
- rebuild in new environment
|
||||||
|
|
||||||
* Thu Apr 26 2001 Nalin Dahyabhai <nalin@redhat.com>
|
* Thu Apr 26 2001 Nalin Dahyabhai <nalin@redhat.com>
|
||||||
- add patch from Tom Yu to fix ftpd overflows
|
- add patch from Tom Yu to fix ftpd overflows (#37731)
|
||||||
|
|
||||||
* Wed Apr 18 2001 Than Ngo <than@redhat.com>
|
* Wed Apr 18 2001 Than Ngo <than@redhat.com>
|
||||||
- disable optimizations on the alpha again
|
- disable optimizations on the alpha again
|
||||||
@ -411,6 +434,9 @@ pushd src/appl/gssftp/ftpd
|
|||||||
%patch19 -p0 -b .ftpd
|
%patch19 -p0 -b .ftpd
|
||||||
popd
|
popd
|
||||||
%patch20 -p0 -b .by-address
|
%patch20 -p0 -b .by-address
|
||||||
|
%patch21 -p1 -b .ktany
|
||||||
|
%patch22 -p1 -b .logauth
|
||||||
|
%patch23 -p1 -b .size
|
||||||
cp $RPM_SOURCE_DIR/statglue.c src/util/profile/statglue.c
|
cp $RPM_SOURCE_DIR/statglue.c src/util/profile/statglue.c
|
||||||
find . -type f -name "*.fixinfo" -exec rm -fv "{}" ";"
|
find . -type f -name "*.fixinfo" -exec rm -fv "{}" ";"
|
||||||
gzip doc/*.ps
|
gzip doc/*.ps
|
||||||
@ -425,10 +451,10 @@ ARCH_OPT_FLAGS=-O0
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Can't use %%configure because we don't use the default mandir.
|
# Can't use %%configure because we don't use the default mandir.
|
||||||
LDCOMBINE_TAIL="-lc"; export LDCOMBINE_TAIL
|
DEFINES="-D_FILE_OFFSET_BITS=64" ; export DEFINES
|
||||||
./configure \
|
./configure \
|
||||||
--with-cc=%{__cc} \
|
--with-cc=%{__cc} \
|
||||||
--with-ccopts="$RPM_OPT_FLAGS $ARCH_OPT_FLAGS -fPIC" \
|
--with-ccopts="$RPM_OPT_FLAGS $ARCH_OPT_FLAGS $DEFINES -fPIC" \
|
||||||
--enable-shared --enable-static \
|
--enable-shared --enable-static \
|
||||||
--prefix=%{prefix} \
|
--prefix=%{prefix} \
|
||||||
--infodir=%{_infodir} \
|
--infodir=%{_infodir} \
|
||||||
@ -438,7 +464,7 @@ LDCOMBINE_TAIL="-lc"; export LDCOMBINE_TAIL
|
|||||||
--with-netlib=-lresolv \
|
--with-netlib=-lresolv \
|
||||||
--with-tcl=%{_prefix} \
|
--with-tcl=%{_prefix} \
|
||||||
%{_target_platform}
|
%{_target_platform}
|
||||||
make
|
make LDCOMBINE='%{__cc} -shared -Wl,-soname=lib$(LIB)$(SHLIBSEXT) $(CFLAGS)'
|
||||||
|
|
||||||
# Run the test suite. Won't run in the build system because /dev/pts is
|
# Run the test suite. Won't run in the build system because /dev/pts is
|
||||||
# not available for telnet tests and so on.
|
# not available for telnet tests and so on.
|
||||||
@ -447,11 +473,12 @@ make
|
|||||||
%install
|
%install
|
||||||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
# Our shell scripts.
|
# Shell scripts wrappers for Kerberized rsh and rlogin.
|
||||||
mkdir -p $RPM_BUILD_ROOT%{prefix}/bin
|
mkdir -p $RPM_BUILD_ROOT%{prefix}/bin
|
||||||
install -m 755 $RPM_SOURCE_DIR/{krsh,krlogin} $RPM_BUILD_ROOT/%{prefix}/bin/
|
install -m 755 $RPM_SOURCE_DIR/{krsh,krlogin} $RPM_BUILD_ROOT/%{prefix}/bin/
|
||||||
|
|
||||||
# Extra headers.
|
%if 1
|
||||||
|
# Extra headers which are not installed by default.
|
||||||
mkdir -p $RPM_BUILD_ROOT%{prefix}/include
|
mkdir -p $RPM_BUILD_ROOT%{prefix}/include
|
||||||
(cd src/include
|
(cd src/include
|
||||||
find kadm5 krb5 gssrpc gssapi -name "*.h" | \
|
find kadm5 krb5 gssrpc gssapi -name "*.h" | \
|
||||||
@ -460,25 +487,26 @@ sed 's^k5-int^krb5/kdb^g' < $RPM_BUILD_ROOT/%{prefix}/include/kadm5/admin.h \
|
|||||||
> $RPM_BUILD_ROOT/%{prefix}/include/kadm5/admin.h2 &&\
|
> $RPM_BUILD_ROOT/%{prefix}/include/kadm5/admin.h2 &&\
|
||||||
mv $RPM_BUILD_ROOT/%{prefix}/include/kadm5/admin.h2 \
|
mv $RPM_BUILD_ROOT/%{prefix}/include/kadm5/admin.h2 \
|
||||||
$RPM_BUILD_ROOT/%{prefix}/include/kadm5/admin.h
|
$RPM_BUILD_ROOT/%{prefix}/include/kadm5/admin.h
|
||||||
find $RPM_BUILD_ROOT/%{prefix}/include -type d | xargs chmod 755
|
%endif
|
||||||
find $RPM_BUILD_ROOT/%{prefix}/include -type f | xargs chmod 644
|
|
||||||
|
|
||||||
# Info docs.
|
# Info docs.
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_infodir}
|
mkdir -p $RPM_BUILD_ROOT%{_infodir}
|
||||||
install -m 644 doc/*.info* $RPM_BUILD_ROOT%{_infodir}/
|
install -m 644 doc/*.info* $RPM_BUILD_ROOT%{_infodir}/
|
||||||
|
# Forcefully compress the info pages so that we know the right file name to
|
||||||
|
# pass to install-info in %%post.
|
||||||
gzip $RPM_BUILD_ROOT%{_infodir}/*.info*
|
gzip $RPM_BUILD_ROOT%{_infodir}/*.info*
|
||||||
|
|
||||||
# KDC config files.
|
# Sample KDC config files.
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_var}/kerberos/krb5kdc
|
mkdir -p $RPM_BUILD_ROOT%{_var}/kerberos/krb5kdc
|
||||||
install -m 644 $RPM_SOURCE_DIR/kdc.conf $RPM_BUILD_ROOT%{_var}/kerberos/krb5kdc/
|
install -m 644 $RPM_SOURCE_DIR/kdc.conf $RPM_BUILD_ROOT%{_var}/kerberos/krb5kdc/
|
||||||
install -m 644 $RPM_SOURCE_DIR/kadm5.acl $RPM_BUILD_ROOT%{_var}/kerberos/krb5kdc/
|
install -m 644 $RPM_SOURCE_DIR/kadm5.acl $RPM_BUILD_ROOT%{_var}/kerberos/krb5kdc/
|
||||||
|
|
||||||
# Client config files and scripts.
|
# Sample client config files and login-time scriptlets.
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
|
mkdir -p $RPM_BUILD_ROOT/etc/profile.d
|
||||||
install -m 644 $RPM_SOURCE_DIR/krb5.conf $RPM_BUILD_ROOT/etc/krb5.conf
|
install -m 644 $RPM_SOURCE_DIR/krb5.conf $RPM_BUILD_ROOT/etc/krb5.conf
|
||||||
install -m 755 $RPM_SOURCE_DIR/krb5.{sh,csh} $RPM_BUILD_ROOT/etc/profile.d/
|
install -m 755 $RPM_SOURCE_DIR/krb5.{sh,csh} $RPM_BUILD_ROOT/etc/profile.d/
|
||||||
|
|
||||||
# KDC init script.
|
# Server init scripts.
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
|
||||||
install -m 755 $RPM_SOURCE_DIR/krb5kdc.init $RPM_BUILD_ROOT/etc/rc.d/init.d/krb5kdc
|
install -m 755 $RPM_SOURCE_DIR/krb5kdc.init $RPM_BUILD_ROOT/etc/rc.d/init.d/krb5kdc
|
||||||
install -m 755 $RPM_SOURCE_DIR/kadmind.init $RPM_BUILD_ROOT/etc/rc.d/init.d/kadmin
|
install -m 755 $RPM_SOURCE_DIR/kadmind.init $RPM_BUILD_ROOT/etc/rc.d/init.d/kadmin
|
||||||
@ -486,15 +514,6 @@ install -m 755 $RPM_SOURCE_DIR/kpropd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/kprop
|
|||||||
install -m 755 $RPM_SOURCE_DIR/krb524d.init $RPM_BUILD_ROOT/etc/rc.d/init.d/krb524
|
install -m 755 $RPM_SOURCE_DIR/krb524d.init $RPM_BUILD_ROOT/etc/rc.d/init.d/krb524
|
||||||
install -m 755 $RPM_SOURCE_DIR/kdcrotate $RPM_BUILD_ROOT/etc/rc.d/init.d/
|
install -m 755 $RPM_SOURCE_DIR/kdcrotate $RPM_BUILD_ROOT/etc/rc.d/init.d/
|
||||||
|
|
||||||
# The rest of the binaries and libraries and docs.
|
|
||||||
cd src
|
|
||||||
make prefix=$RPM_BUILD_ROOT%{prefix} \
|
|
||||||
localstatedir=$RPM_BUILD_ROOT%{_var}/kerberos \
|
|
||||||
infodir=$RPM_BUILD_ROOT%{_infodir} install
|
|
||||||
|
|
||||||
# Fixup strange shared library permissions.
|
|
||||||
chmod 755 $RPM_BUILD_ROOT%{prefix}/lib/*.so*
|
|
||||||
|
|
||||||
# Xinetd configuration files.
|
# Xinetd configuration files.
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d/
|
mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d/
|
||||||
for xinetd in eklogin klogin kshell krb5-telnet gssftp ; do
|
for xinetd in eklogin klogin kshell krb5-telnet gssftp ; do
|
||||||
@ -502,9 +521,18 @@ for xinetd in eklogin klogin kshell krb5-telnet gssftp ; do
|
|||||||
$RPM_BUILD_ROOT/etc/xinetd.d/${xinetd}
|
$RPM_BUILD_ROOT/etc/xinetd.d/${xinetd}
|
||||||
done
|
done
|
||||||
|
|
||||||
# Trim off useless info.
|
# The rest of the binaries and libraries and docs.
|
||||||
strip $RPM_BUILD_ROOT%{prefix}/bin/* $RPM_BUILD_ROOT%{prefix}/sbin/* || :
|
cd src
|
||||||
strip -g $RPM_BUILD_ROOT%{prefix}/lib/lib* || :
|
make prefix=$RPM_BUILD_ROOT%{prefix} \
|
||||||
|
localstatedir=$RPM_BUILD_ROOT%{_var}/kerberos \
|
||||||
|
infodir=$RPM_BUILD_ROOT%{_infodir} install
|
||||||
|
|
||||||
|
# Fixup permissions on header files.
|
||||||
|
find $RPM_BUILD_ROOT/%{prefix}/include -type d | xargs chmod 755
|
||||||
|
find $RPM_BUILD_ROOT/%{prefix}/include -type f | xargs chmod 644
|
||||||
|
|
||||||
|
# Fixup strange shared library permissions.
|
||||||
|
chmod 755 $RPM_BUILD_ROOT%{prefix}/lib/*.so*
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||||
|
12
krb524d.init
12
krb524d.init
@ -19,21 +19,23 @@
|
|||||||
. /etc/rc.d/init.d/functions
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
prog="Kerberos 5-to-4 Server"
|
||||||
|
krb524d=/usr/kerberos/sbin/krb524d
|
||||||
|
|
||||||
# Sheel functions to cut down on useless shell instances.
|
# Sheel functions to cut down on useless shell instances.
|
||||||
start() {
|
start() {
|
||||||
if [ ! -f /var/kerberos/krb5kdc/principal ] ; then
|
if [ ! -f /var/kerberos/krb5kdc/principal ] ; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo -n $"Starting Kerberos 5-to-4 Server: "
|
echo -n $"Starting $prog: "
|
||||||
daemon /usr/kerberos/sbin/krb524d -m
|
daemon ${krb524d} -m
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL = 0 ] && touch /var/lock/subsys/krb524
|
[ $RETVAL = 0 ] && touch /var/lock/subsys/krb524
|
||||||
}
|
}
|
||||||
stop() {
|
stop() {
|
||||||
echo -n $"Stopping Kerberos 5-to-4 Server: "
|
echo -n $"Stopping $prog: "
|
||||||
killproc krb524d
|
killproc ${krb524d}
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/krb524
|
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/krb524
|
||||||
@ -52,7 +54,7 @@ case "$1" in
|
|||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
status krb524d
|
status ${krb524d}
|
||||||
;;
|
;;
|
||||||
condrestart)
|
condrestart)
|
||||||
if [ -f /var/lock/subsys/krb524 ] ; then
|
if [ -f /var/lock/subsys/krb524 ] ; then
|
||||||
|
24
krb5kdc.init
24
krb5kdc.init
@ -19,25 +19,33 @@
|
|||||||
. /etc/rc.d/init.d/functions
|
. /etc/rc.d/init.d/functions
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
prog="Kerberos 5 KDC"
|
||||||
|
krb5kdc=/usr/kerberos/sbin/krb5kdc
|
||||||
|
|
||||||
# Sheel functions to cut down on useless shell instances.
|
# Sheel functions to cut down on useless shell instances.
|
||||||
start() {
|
start() {
|
||||||
if [ ! -f /var/kerberos/krb5kdc/principal ] ; then
|
if [ ! -f /var/kerberos/krb5kdc/principal ] ; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo -n $"Starting Kerberos 5 KDC: "
|
echo -n $"Starting $prog: "
|
||||||
daemon /usr/kerberos/sbin/krb5kdc
|
daemon ${krb5kdc}
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL = 0 ] && touch /var/lock/subsys/krb5kdc
|
[ $RETVAL = 0 ] && touch /var/lock/subsys/krb5kdc
|
||||||
}
|
}
|
||||||
stop() {
|
stop() {
|
||||||
echo -n $"Stopping Kerberos 5 KDC: "
|
echo -n $"Stopping $prog: "
|
||||||
killproc krb5kdc
|
killproc ${krb5kdc}
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/krb5kdc
|
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/krb5kdc
|
||||||
}
|
}
|
||||||
|
reload() {
|
||||||
|
echo -n $"Reopening $prog log file: "
|
||||||
|
killproc ${krb5kdc} -HUP
|
||||||
|
RETVAL=$?
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
# See how we were called.
|
# See how we were called.
|
||||||
case "$1" in
|
case "$1" in
|
||||||
@ -51,8 +59,12 @@ case "$1" in
|
|||||||
stop
|
stop
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
|
reload)
|
||||||
|
reload
|
||||||
|
;;
|
||||||
status)
|
status)
|
||||||
status krb5kdc
|
status ${krb5kdc}
|
||||||
|
RETVAL=$?
|
||||||
;;
|
;;
|
||||||
condrestart)
|
condrestart)
|
||||||
if [ -f /var/lock/subsys/krb5kdc ] ; then
|
if [ -f /var/lock/subsys/krb5kdc ] ; then
|
||||||
@ -61,7 +73,7 @@ case "$1" in
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo $"Usage: $0 {start|stop|status|restart|condrestart}"
|
echo $"Usage: $0 {start|stop|status|reload|restart|condrestart}"
|
||||||
RETVAL=1
|
RETVAL=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user