krb5: Upgraded to 1.14.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-01-24 09:12:46 +07:00
parent 05f65d75dd
commit 31a58e352e
4 changed files with 8 additions and 34 deletions

View file

@ -1,6 +0,0 @@
#!/bin/csh
setenv PATH ${PATH}:/usr/kerberos/bin
setenv MANPATH ${MANPATH}:/usr/kerberosman/
if ( "$uid" == "0") then
setenv PATH ${PATH}:/usr/kerberos/sbin
endif

View file

@ -1,4 +0,0 @@
#!/bin/sh
PATH="$PATH:/usr/kerberos/bin"
MANPATH="$MANPATH:/usr/kerberos/man"
[ "$(id -u)" = "0" ] && PATH="$PATH:/usr/kerberos/sbin"

View file

@ -1,4 +0,0 @@
# Add kerberos libs to the library search path
if ! grep -q '^/usr/kerberos/lib$' etc/ld.so.conf ; then
echo "/usr/kerberos/lib" >> etc/ld.so.conf
fi

View file

@ -3,6 +3,7 @@
# Slackware build script for krb5
# Copyright (c) 2009, Tom Canich, State College, Pennsylvania, USA
# Copyright 2015-2016 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@ -30,10 +31,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# Modified by Willy Sudiarto Raharjo for CSB Project
PRGNAM=krb5
VERSION=${VERSION:-1.13.2}
VERSION=${VERSION:-1.14}
BUILD=${BUILD:-1}
TAG=${TAG:-_csb}
@ -45,7 +44,7 @@ if [ -z "$ARCH" ]; then
esac
fi
wget -c http://web.mit.edu/kerberos/dist/krb5/1.13/$PRGNAM-$VERSION-signed.tar
wget -c http://web.mit.edu/kerberos/dist/krb5/1.14/krb5-1.14.tar.gz
CWD=$(pwd)
TMP=${TMP:-/tmp/csb}
@ -72,18 +71,16 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
rm -f $TMP/$PRGNAM-$VERSION.tar.gz{,.asc}
tar xvf $CWD/$PRGNAM-$VERSION-signed.tar -C $TMP
tar xvf $TMP/$PRGNAM-$VERSION.tar.gz
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION/src
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr/kerberos \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/kerberos/man \
--mandir=/usr/man \
--enable-dns-for-realm \
--with-ldap \
--build=$ARCH-slackware-linux
@ -91,19 +88,11 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
mkdir -p $PKG/etc/profile.d/
cat $CWD/config/kerberos.sh > $PKG/etc/profile.d/kerberos.sh
cat $CWD/config/kerberos.csh > $PKG/etc/profile.d/kerberos.csh
chmod 0755 $PKG/etc/profile.d/*
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/kerberos/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/kerberos/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/bin
ln -s $PKG/usr/kerberos/bin/krb5-config $PKG/usr/bin/krb5-config
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $CWD/EXPORT $PKG/usr/doc/$PRGNAM-$VERSION
@ -113,7 +102,6 @@ find $PKG/usr/doc -type f -exec chmod 0644 {} \;
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-txz}