network/krb5: Further refinement.

Thanks to Ryan for suggestion.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-01-19 04:27:50 +07:00
parent db65f40cac
commit 8eb42bb6e6
2 changed files with 4 additions and 9 deletions

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

@ -67,10 +67,10 @@ cd $PRGNAM-$VERSION/src
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr/ \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/kerberos/man \
--mandir=/usr/man \
--enable-dns-for-realm \
--with-ldap \
--build=$ARCH-slackware-linux
@ -86,8 +86,8 @@ 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
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/README $CWD/README.krb5 $CWD/EXPORT $PKG/usr/doc/$PRGNAM-$VERSION
@ -97,7 +97,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:-tgz}