Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37413842
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 

Name: krb5
Version: 1.5.1
Release: alt4.M40.5

%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.bz2
Source1: %name-alt.tar

BuildRequires: flex libncurses-devel libtinfo-devel tcl-devel libe2fs-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-devel
Summary: Development files needed to compile Kerberos 5 programs
Group: System/Libraries
Requires: lib%name = %version-%release
Requires: libe2fs-devel

%package kdc
Group: System/Servers
Summary: The Kerberos 5 Key Distribution Center
Requires: lib%name = %version-%release
Requires(post): %install_info
Requires(preun): %uninstall_info

%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
Requires(post): %install_info
Requires(preun): %uninstall_info

%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

# compat subpackages

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

%package workstation
Group: System/Base
Summary: Kerberos 5 programs for use on workstations
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-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.

# }}}

# {{{ build

%prep
%setup -q

find . -type f -name "*.fixinfo" -delete

%build
cd src

dira=`pwd`
find . -type f -name 'configure.in' -printf '%%h\n' | \
       while read; do
               pushd $REPLY
               autoconf -I$dira/config -I$dira
               popd
       done

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 \
--enable-dns \
--enable-dns-for-kdc \
--enable-dns-for-realm \
--with-netlib=-lresolv \
--includedir=%_includedir/%name \
#
%__make

# Run the test suite.  Won't run in the build system because /dev/pts is

# not available for telnet tests and so on.
# rm -f lib/rpc/unit-test/config
# mv -f lib/rpc/unit-test/config_exp lib/rpc/unit-test/config
# make check TMPDIR=%_tmppath

# }}}

# {{{ install

%install
%__make DESTDIR=%buildroot \
INSTALL_SETUID='%__install -m0755' \
install -C src

# Server init scripts, xinetd configuration files,

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

# 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

# Install docs

rm -rf %buildroot%_docdir
mkdir -p %buildroot%_infodir %buildroot%_docdir
cp -a doc/{api,implement,kadm5,kadmin,krb5-protocol,rpc} %buildroot%_docdir
cp -a doc/krb5-{admin,install,user} %buildroot%_docdir
gzip doc/*.ps
install -m0644 doc/{admin,install,user}*.ps.gz %buildroot%_docdir
install -m0644 doc/krb5-*.info{,-*} %buildroot%_infodir

# Fixup permissions on header files.

find %buildroot/%_includedir -type d | xargs chmod 0755
find %buildroot/%_includedir -type f | xargs chmod 0644

# 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

# cleanups

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

# }}}

# {{{ scriptlets

%post -n lib%name
%post_ldconfig

%post kdc
%post_service krb5kdc
%post_service kadmin
%post_service kprop
%install_info %name-{admin,install}.info

%post kinit
%install_info %name-user.info

%preun kdc
%preun_service krb5kdc
%preun_service kadmin
%preun_service kprop
%uninstall_info %name-{admin,install}.info

%preun kinit
%uninstall_info %name-user.info

# }}}

# {{{ files

%files -n lib%name
%config %_initdir/kdcrotate
%config(noreplace) %_sysconfdir/krb5.conf
/%_lib/lib*.so.*
%_libdir/lib*.so.*
%dir %_libdir/%name
%dir %_libdir/%name/plugins
%_libdir/%name/plugins/kdb
%_man5dir/krb5.conf.5*

%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
%_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
%config %_initdir/kadmin
%config %_initdir/krb5kdc
%config %_initdir/kprop

%_sbindir/kadmin.local
%_sbindir/kadmind
%_sbindir/k5srvutil
%_sbindir/kdb5_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/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