info:krb5.spec -devel
Wojtek Slusarczyk
wojtek w SHADOW.EU.ORG
Nie, 30 Sie 1998, 19:59:41 CEST
Wygenerowalem wlasnie kerberosa :
Summary: Kerberos V5 System
Summary(pl): System Kerberos V5
Name: krb5
Version: 1.0.5
Release: 2d
Source: %{name}-%{version}.src.tar.gz
Source1: %{name}-%{version}.crypto.tar.gz
Source2: %{name}-%{version}.doc.tar.gz
Source3: kerberos.init
Source4: propagation
Source5: inetd.conf.secure
Patch0: pty.patch
Patch1: gssapi.patch
Copyright: MIT
Requires: words
Group: Networking
BuildRoot: /tmp/%{name}-%{version}-%{release}-root
%description
Kerberos V5 is based on the Kerberos authentication system developed at
MIT. Under Kerberos, a client (generally either a user or a service)
sends a request for a ticket to the Key Distribution Center (KDC). The
KDC creates a "ticket-granting ticket" (TGT) for the client, encrypts
it using the client's password as the key, and sends the encrypted TGT
back to the client. The client then attempts to decrypt the TGT, using
its password. If the client successfully decrypts the TGT (i.e., if
the client gave the correct password), it keeps the decrypted TGT,
which indicates proof of the client's identity.
%description -l pl
Kerberos V5 jest systemem autentykacji rozwijanym przez MIT. W tym systemie
klient (użytkownik lub serwis) wysyła żadanie biletu do Centrum Dystrybucji
Kluczy (KDC). KDC tworzy zakodowany kredyt (TGT), używając hasła klienta do
jego zaszyfrowania i wysyła go spowrotem do klienta. Klient następnie
przystępuje do rozkodowywania kredytu przy pomocy swojego hasła. Jezeli zrobi
to prawidlowo (tzn. poda poprawne hsło), jego bilet uaktywnia się i bedzie ważny
na daną usługę.
%package -n krb5-workstation
Summary: Kerberos programs for use on workstations
Summary(pl): Oprogramowanie klienckie dla stacji roboczej kerberosa
Group: Networking/Utilities
Requires: krb5-lib
%description -n krb5-workstation
Kerberos Client
%description -n krb5-workstation -l pl
Klient dla systemu kerberos
%package -n krb5-server
Group: Networking/Daemons
Summary: Kerberos Server
Summary(pl): Serwer kerberosa
Requires: krb5-lib
%description -n krb5-server
Master KDC
%description -n krb5-server -l pl
Główne centrum dystrybucji kluczy (KDC)
%package -n krb5-lib
Summary: Kerberos shared libraries
Summary(pl): Biblioteki dynamiczne dla kerberosa
Group: Libraries
%description -n krb5-lib
Libraries for Kerberos V5 Server and Client
%description -n krb5-lib -l pl
Biblioteki dynamiczne dla systemu kerberos
%prep
%setup -q -b1 -b2
%patch0 -p1
%patch1 -p0
%build
cd src
ARCH=`uname -m`
if [ "$ARCH" = "i686" ]; then
CFLAGS="$RPM_OPT_FLAGS"
./configure --enable-shared --without-tcl \
--with-vague-errors --without-krb4 i586-linux
else
CFLAGS="$RPM_OPT_FLAGS"
./configure --enable-shared --without-tcl \
--with-vague-errors --without-krb4
fi
# There is still problem with STREAMSPTY...
if [ -f /lib/libc-2.0.9* ]; then
cat $RPM_BUILD_DIR/krb5-1.0.5/src/appl/telnet/telnetd/Makefile | sed s/-DSTREAMSPTY=1/""/g > $RPM_BUILD_DIR/krb5-1.0.5/src/appl/telnet/telnetd/Makefile
fi
make
make install DESTDIR=$RPM_BUILD_ROOT
chmod 755 $RPM_BUILD_ROOT/usr/local/lib/*.so.*
mkdir -p $RPM_BUILD_ROOT/etc
mkdir -p $RPM_BUILD_ROOT/var/krb5kdc
chmod 700 $RPM_BUILD_ROOT/var/krb5kdc
install -m644 $RPM_BUILD_DIR/krb5-1.0.5/src/config-files/krb5.conf $RPM_BUILD_ROOT/etc/krb5.conf
install -m644 $RPM_BUILD_DIR/krb5-1.0.5/src/config-files/kdc.conf $RPM_BUILD_ROOT/var/krb5kdc/kdc.conf
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
install -m711 $RPM_SOURCE_DIR/kerberos.init $RPM_BUILD_ROOT/etc/rc.d/init.d/kerberos.init
cd $RPM_BUILD_ROOT/usr/local/bin
for I in *; do strip $I;
done
cd $RPM_BUILD_ROOT/usr/local/sbin
for I in `ls | grep -v krb5-send-pr`; do strip $I;
done
install -m711 $RPM_SOURCE_DIR/propagation $RPM_BUILD_ROOT/usr/local/sbin/propagation
cd $RPM_BUILD_ROOT/usr/local/include
rm -rf asn.1
cd $RPM_BUILD_ROOT/usr/local/sbin
ln -s krb5kdc kerberos
cd $RPM_BUILD_ROOT/usr/local/man/man8
ln -s krb5kdc.8 kerberos.8
rm -f kadmin.local.8
ln -s kadmin.8 kadmin.local.8
mkdir -p $RPM_BUILD_ROOT/usr/local/doc/{user,admin}
mkdir -p $RPM_BUILD_ROOT/usr/local/doc/admin/{krb5-protocol,kadmin}
mkdir -p $RPM_BUILD_ROOT/usr/local/doc/user/appendix
install -m644 $RPM_SOURCE_DIR/inetd.conf.secure \
$RPM_BUILD_ROOT/usr/local/doc/user/appendix/inetd.conf.secure
cp $RPM_BUILD_DIR/krb5-1.0.5/doc/{user*.html,user*.ps} \
$RPM_BUILD_ROOT/usr/local/doc/user
cp $RPM_BUILD_DIR/krb5-1.0.5/doc/{admin*.html,admin*.ps,install*.html,install*.ps} \
$RPM_BUILD_ROOT/usr/local/doc/admin
cp $RPM_BUILD_DIR/krb5-1.0.5/doc/kadmin/* \
$RPM_BUILD_ROOT/usr/local/doc/admin/kadmin
cp $RPM_BUILD_DIR/krb5-1.0.5/doc/krb5-protocol/* \
$RPM_BUILD_ROOT/usr/local/doc/admin/krb5-protocol
cd $RPM_BUILD_ROOT/usr/local
ln -s /var var
cd $RPM_BUILD_ROOT/var/krb5kdc
ln -s /usr/dict/linux.words kadmin5.dict
touch kadmin5.acl
chmod 755 $RPM_BUILD_ROOT/usr/local/lib/*.so.*
%clean
rm -rf $RPM_BUILD_ROOT
%post -n krb5-lib
/sbin/ldconfig
%files -n krb5-server
%defattr(-, root, root)
%attr(0700, root, root) /etc/rc.d/init.d/kerberos.init
/usr/local/var
%config(noreplace) %verify(not size mtime md5) /var/krb5kdc/*
%attr(0711, root, root) /usr/local/sbin/kadmin
%attr(0711, root, root) /usr/local/sbin/kadmin.local
%attr(0711, root, root) /usr/local/sbin/propagation
%attr(0711, root, root) /usr/local/sbin/kdb5_util
%attr(0711, root, root) /usr/local/sbin/kerberos
%attr(0711, root, root) /usr/local/sbin/kprop
%attr(0711, root, root) /usr/local/sbin/kpropd
%attr(0711, root, root) /usr/local/sbin/krb5-send-pr
%attr(0711, root, root) /usr/local/sbin/krb5kdc
%attr(0711, root, root) /usr/local/sbin/kadmind
%attr(0711, root, root) /usr/local/sbin/ktutil
/usr/local/man/man5/kdc.conf.5
/usr/local/man/man8/kadmin.8
/usr/local/man/man8/kadmin.local.8
/usr/local/man/man8/kdb5_util.8
/usr/local/man/man8/kerberos.8
/usr/local/man/man8/kprop.8
/usr/local/man/man8/kpropd.8
/usr/local/man/man8/krb5kdc.8
/usr/local/man/man8/kadmind.8
/usr/local/man/man8/ktutil.8
/usr/local/doc/admin/*
%files -n krb5-workstation
%defattr(-, root, root)
%attr(0711, root, root) /usr/local/bin/ftp
%attr(0711, root, root) /usr/local/bin/telnet
%attr(0711, root, root) /usr/local/bin/rsh
%attr(0711, root, root) /usr/local/bin/kdestroy
%attr(0711, root, root) /usr/local/bin/kinit
%attr(0711, root, root) /usr/local/bin/klist
%attr(4711, root, root) /usr/local/bin/ksu
%attr(0711, root, root) /usr/local/bin/kpasswd
%attr(0711, root, root) /usr/local/bin/rcp
%attr(0711, root, root) /usr/local/bin/rlogin
/usr/local/man/man1/ftp.1
/usr/local/man/man1/telnet.1
/usr/local/man/man1/rsh.1
/usr/local/man/man1/kdestroy.1
/usr/local/man/man1/kinit.1
/usr/local/man/man1/klist.1
/usr/local/man/man1/ksu.1
/usr/local/man/man1/kpasswd.1
/usr/local/man/man1/rcp.1
/usr/local/man/man1/rlogin.1
/usr/local/man/man5/.k5login.5
%attr(0711, root, root) /usr/local/sbin/ftpd
%attr(0711, root, root) /usr/local/sbin/klogind
%attr(0711, root, root) /usr/local/sbin/kshd
%attr(0711, root, root) /usr/local/sbin/telnetd
/usr/local/man/man8/ftpd.8
/usr/local/man/man8/klogind.8
/usr/local/man/man8/kshd.8
/usr/local/man/man8/telnetd.8
/usr/local/doc/user/*
%files -n krb5-lib
%defattr(-, root, root)
%config(noreplace) %verify(not size mtime md5) /etc/krb5.conf
/usr/local/man/man5/krb5.conf.5
/usr/local/lib/*
/usr/local/include/*
%attr(0711, root, root) /usr/local/sbin/login.krb5
/usr/local/man/man8/login.krb5.8
%changelog
* Sun Aug 09 1998 Gall Anonymous <gall w somwhere.gov>
[1.0.5-2d]
- translation modified for pl,
- moved %changelog at the end of spec,
- changed permissions of shared libraries to 755,
- removed simple-client and server,
- build without kerberos IV support (we don't need it),
- renamed to %version-d,
- changed permissions of all binaries to 711,
* Fri Jun 26 1998 Gall Anonymous <gall w somwhere.gov>
[1.0.5-1d]
- build against glibc-2.1 (PLD-1.0)
- build against glibc-2.0 (PLD-2.0)
Wojciech Slusarczyk (091)4494148
Technical University of Szczecin
PGP KeyServer pgpkeys.mit.edu
Więcej informacji o liście dyskusyjnej pld-devel-pl