Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37038000
en ru br
Репозитории ALT
S:1.21.2-alt1
5.1: 1.6.3-alt10.M50P.1
4.1: 1.6.3-alt3.M41.4
4.0: 1.5.1-alt4.M40.5
+updates:1.5.1-alt4.M40.5
3.0: 1.4.1-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: krb5

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%def_without test

Name: krb5
Version: 1.6.3
Release: alt10.M50P.1

%define _docdir %_defaultdocdir/%name-%version

Summary: The Kerberos network authentication system
License: MIT
Group: System/Libraries
Url: http://web.mit.edu/kerberos/www/

Source0: %name-%version.tar
Source1: %name-doc.tar
Source2: %name-alt.tar

BuildRequires: /dev/pts /proc
%{?_with_test:buildrequires: tcsh dejagnu telnet}
BuildRequires: flex libcom_err-devel libkeyutils-devel libldap-devel libncurses-devel libss-devel libssl-devel libtinfo-devel tcl-devel

%description
Kerberos V5 is a trusted-third-party network authentication system,
which can improve your network's security by eliminating the insecure
practice of cleartext passwords.

# {{{ subpackages


%package -n lib%name
Summary: The shared libraries used by Kerberos 5
Group: System/Libraries
Requires: gawk

%package -n lib%name-ldap
Summary: The shared Kerberos 5 libraries, LDAP support
Group: System/Libraries
Requires: lib%name = %version-%release

%package -n lib%name-devel
Summary: Development files needed to compile Kerberos 5 programs
Group: System/Libraries
Requires: lib%name = %version-%release
Requires: lib%name-ldap = %version-%release
Requires: libcom_err-devel
Requires: libkeyutils-devel

%package kdc
Group: System/Servers
Summary: The Kerberos 5 Key Distribution Center
Requires: lib%name = %version-%release
Requires: lib%name-ldap = %version-%release

%package kadmin
Group: System/Servers
Summary: The KDC admin programs for Kerberos 5
Requires: lib%name = %version-%release

%package kinit
Summary: Kerberos 5 programs for use on workstations
Group: System/Base
Requires: lib%name = %version-%release

%package services
Group: System/Servers
Summary: Set of commonly used kerberized services
Requires: lib%name = %version-%release

%package clients
Group: Networking/Other
Summary: Set of commonly used kerberized network programs
Requires: lib%name = %version-%release

%package doc
Group: Books/Computer books
Summary: Kerberos 5 documentation
BuildArch: noarch

# compat subpackages

%package server
Group: System/Servers
Summary: The server programs for Kerberos 5
BuildArch: noarch
Requires: %name-kdc = %version-%release
Requires: %name-services = %version-%release

%package workstation
Group: System/Base
Summary: Kerberos 5 programs for use on workstations
BuildArch: noarch
Requires: %name-kinit = %version-%release
Requires: %name-clients = %version-%release


%description -n lib%name
Kerberos is a network authentication system.  This package contains
the shared libraries needed by Kerberos 5.  If you are using Kerberos,
you need to install this package.

%description -n lib%name-ldap
Kerberos is a network authentication system.  This package contains
the shared Kerberos 5 libraries needed for LDAP backend support.

%description -n lib%name-devel
Kerberos is a network authentication system.  This package contains the
header files and libraries needed for compiling Kerberos 5 programs.
If you want to develop Kerberos-aware programs, you need to install
this package.

%description kdc
Kerberos is a network authentication system.
This package contains the programs that must be installed
on a Kerberos 5 Key Distribution Center.

%description kadmin
Kerberos is a network authentication system.
This package contains set of programs helping to manage
a Kerberos 5 Key Distribution Center.

%description kinit
Kerberos is a network authentication system.
This package contains the basic Kerberos programs.
If your network uses Kerberos, this package should be installed
on every workstation.

%description services
Kerberos is a network authentication system.
This package contains kerberized versions of commonly used services,
such as Telnet or FTP.
You should have good reasons to install it.

%description clients
Kerberos is a network authentication system.
This package contains kerberized versions of common
network-related client programs such as Telnet or FTP.

%description doc
Kerberos is a network authentication system.
This packages contains documentation bundled with
MIT Kerberos.

%description server
Kerberos is a network authentication system. This package contains
the programs that must be installed on a Kerberos 5 server.  If you
are installing a Kerberos 5 server, you need to install this package
(in other words, most people should NOT install this package).

%description workstation
Kerberos is a network authentication system.  This package contains the
basic Kerberos programs (kinit, klist, kdestroy, kpasswd) as well as
kerberized versions of Telnet and FTP.

# }}}


%prep
%setup

%build
util/reconf --verbose --force
DEFINES="-D_FILE_OFFSET_BITS=64" ; export DEFINES
%add_optflags -I/usr/include/et
%configure \
--enable-shared --disable-static \
--localstatedir=%_localstatedir/kerberos \
--with-system-et \
--with-system-ss \
--without-krb4 \
--with-ldap \
--enable-dns \
--enable-dns-for-kdc \
--enable-dns-for-realm \
--with-netlib=-lresolv \
--includedir=%_includedir/%name \
#
make all %{?_with_test:check}

%install
make install DESTDIR=%buildroot INSTALL_SETUID='%__install -m0755'

# Relocate *some* shared libraries

mkdir -p %buildroot/%_lib
for lib in libdes425 libgssapi_krb5 libk5crypto libkrb5 libkrb5support; do
 mv %buildroot%_libdir/${lib}.so.* %buildroot/%_lib
 ln -snf ../../%_lib/`readlink %buildroot%_libdir/${lib}.so` %buildroot%_libdir/${lib}.so
done

# Fix binaries clashes

for i in ftp rcp rlogin rsh telnet uuclient; do
 mv -f %buildroot%_bindir/$i %buildroot%_bindir/%name-$i
done

for i in ftpd telnetd uuserver; do
 mv -f %buildroot%_sbindir/$i %buildroot%_sbindir/%name-$i
done

mv -f %buildroot%_sbindir/login.krb5 %buildroot%_sbindir/%name-login
ln -s %name-login %buildroot%_sbindir/login.krb5

# Fix manpages clashes

for i in ftp rcp rlogin rsh telnet uuclient ; do
 if [ -f %buildroot%_man1dir/$i.1 ] ; then
   mv %buildroot%_man1dir/$i.1 %buildroot%_man1dir/%name-$i.1
 fi
done

for i in ftpd telnetd ; do
 if [ -f %buildroot%_man8dir/$i.8 ] ; then
   mv %buildroot%_man8dir/$i.8 %buildroot%_man8dir/%name-$i.8
 fi
done

ln -s login.krb5.8 %buildroot%_man8dir/%name-login.8

# Server init scripts, xinetd configuration files,

# sample client config file and sample KDC config files.
tar xf %SOURCE2 -C %buildroot

# Install docs

rm -rf %buildroot%_docdir
mkdir -p %buildroot%_infodir %buildroot%_docdir
tar xf %SOURCE1 -C %buildroot%_docdir
cp -p plugins/kdb/ldap/libkdb_ldap/kerberos.{ldif,schema} %buildroot%_docdir
mv %buildroot%_docdir/krb5-{admin,install,user}.info %buildroot%_infodir
gzip %buildroot%_docdir/*.ps

# cleanups

rm -rf %buildroot%_datadir/gnats %buildroot%_datadir/examples
rm -rf %buildroot%_includedir/krb5/kerberosIV
rm -f %buildroot%_man1dir/tmac.doc*
touch %buildroot%_sysconfdir/krb5.keytab

%post kdc
%post_service krb5kdc
%post_service kadmin
%post_service kprop

%preun kdc
%preun_service krb5kdc
%preun_service kadmin
%preun_service kprop

%files -n lib%name
%config %_initdir/kdcrotate
%config(noreplace) %_sysconfdir/krb5.conf
%ghost %config(noreplace) %attr(600,root,root) %_sysconfdir/krb5.keytab

/%_lib/lib*.so.*

%_libdir/libgssrpc.so.*
%_libdir/libkadm5clnt.so.*
%_libdir/libkadm5srv.so.*
%_libdir/libkdb5.so.*

%dir %_libdir/%name
%dir %_libdir/%name/plugins
%dir %_libdir/%name/plugins/kdb
%dir %_libdir/%name/plugins/preauth
%_libdir/%name/plugins/kdb/db2.so
%_libdir/%name/plugins/preauth/pkinit.so

%_man5dir/krb5.conf.5*

%files -n lib%name-ldap
%_libdir/libkdb_ldap.so.*
%_libdir/%name/plugins/kdb/kldap.so

%files -n lib%name-devel
%dir %_includedir/krb5
%_includedir/krb5/*
%_libdir/lib*.so
%_bindir/gss-client
%_bindir/sclient
%_bindir/krb5-config
%_bindir/sim_client
%_sbindir/gss-server
%exclude %_sbindir/krb5-send-pr
%_sbindir/sim_server
%_sbindir/sserver
%_man1dir/sclient.1*
%_man1dir/krb5-config.1*
%_man1dir/krb5-send-pr.1*
%_man8dir/sserver.8*

%files kdc
%dir %_localstatedir/kerberos
%dir %_localstatedir/kerberos/krb5kdc
%config(noreplace) %_localstatedir/kerberos/krb5kdc/kdc.conf
%config(noreplace) %_localstatedir/kerberos/krb5kdc/kadm5.acl

%_initdir/kadmin
%_initdir/krb5kdc
%_initdir/kprop

%_sbindir/kadmin.local
%_sbindir/kadmind
%_sbindir/k5srvutil
%_sbindir/kdb5_util
%_sbindir/kdb5_ldap_util
%_sbindir/kprop
%_sbindir/kpropd
%_sbindir/krb5kdc

%_infodir/%name-admin.info*
%_infodir/%name-install.info*

%_man5dir/kdc.conf.5*
%_man8dir/kadmin.local.8*
%_man8dir/kadmind.8*
%_man8dir/kdb5_util.8*
%_man8dir/kdb5_ldap_util.8*
%_man8dir/kprop.8*
%_man8dir/kpropd.8*
%_man8dir/krb5kdc.8*
%_man8dir/k5srvutil.8*

%files kadmin
%_sbindir/kadmin
%_sbindir/ktutil
%_man8dir/kadmin.8*
%_man8dir/ktutil.8*

%files kinit
%_bindir/kdestroy
%_bindir/kinit
%_bindir/klist
%_bindir/kpasswd
%_bindir/ksu
%_bindir/kvno

%_infodir/%name-user.info*

%_man1dir/kdestroy.1*
%_man1dir/kerberos.1*
%_man1dir/kinit.1*
%_man1dir/klist.1*
%_man1dir/kpasswd.1*
%_man1dir/ksu.1*
%_man1dir/kvno.1*
%_man5dir/.k5login.5*

%files services
%config(noreplace) %_sysconfdir/xinetd.d/*
%_sbindir/%name-login
%_sbindir/login.krb5

%_sbindir/klogind
%_sbindir/kshd

%_sbindir/%name-ftpd
%_sbindir/%name-telnetd
%_sbindir/%name-uuserver

%_man8dir/%name-login.8*
%_man8dir/login.%name.8*

%_man8dir/klogind.8*
%_man8dir/kshd.8*

%_man8dir/%name-ftpd.8*
%_man8dir/%name-telnetd.8*

%files clients
%_bindir/%name-ftp
%_bindir/%name-rcp
%_bindir/%name-rlogin
%_bindir/%name-rsh
%_bindir/%name-telnet
%_bindir/%name-uuclient

%_man1dir/%name-ftp.1*
%_man1dir/%name-rsh.1*
%_man1dir/%name-rlogin.1*
%_man1dir/%name-rcp.1*
%_man1dir/%name-telnet.1*

%files doc
%_docdir

%files server
%files workstation

# {{{ changelog


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin