summaryrefslogtreecommitdiff
path: root/network/krb5
diff options
context:
space:
mode:
Diffstat (limited to 'network/krb5')
-rw-r--r--network/krb5/krb5-ldflags.patch13
-rw-r--r--network/krb5/krb5.SlackBuild11
2 files changed, 22 insertions, 2 deletions
diff --git a/network/krb5/krb5-ldflags.patch b/network/krb5/krb5-ldflags.patch
new file mode 100644
index 0000000000..bdc436e8f2
--- /dev/null
+++ b/network/krb5/krb5-ldflags.patch
@@ -0,0 +1,13 @@
+Bug #448778
+--- krb5-1.11/src/build-tools/krb5-config.in 2012-12-18 02:47:04.000000000 +0000
++++ krb5-1.11/src/build-tools/krb5-config.in 2012-12-28 07:13:16.582693363 +0000
+@@ -217,7 +217,7 @@
+ -e 's#\$(PROG_RPATH)#'$libdir'#' \
+ -e 's#\$(PROG_LIBPATH)#'$libdirarg'#' \
+ -e 's#\$(RPATH_FLAG)#'"$RPATH_FLAG"'#' \
+- -e 's#\$(LDFLAGS)#'"$LDFLAGS"'#' \
++ -e 's#\$(LDFLAGS)##' \
+ -e 's#\$(PTHREAD_CFLAGS)#'"$PTHREAD_CFLAGS"'#' \
+ -e 's#\$(CFLAGS)##'`
+
+
diff --git a/network/krb5/krb5.SlackBuild b/network/krb5/krb5.SlackBuild
index 616d788dea..031803e98b 100644
--- a/network/krb5/krb5.SlackBuild
+++ b/network/krb5/krb5.SlackBuild
@@ -25,7 +25,7 @@
PRGNAM=krb5
VERSION=${VERSION:-1.14.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -62,10 +62,15 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION/src
+cd $PRGNAM-$VERSION
+patch -p1 < $CWD/krb5-ldflags.patch
+sed -i "/KRB5ROOT=/s/\/local//" src/util/ac_check_krb5.m4
+
+cd src
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
+CPPFLAGS+=" -I/usr/include/et" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
@@ -74,6 +79,7 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--enable-dns-for-realm \
--with-ldap \
+ --with-system-et \
--build=$ARCH-slackware-linux
make
@@ -82,6 +88,7 @@ make install DESTDIR=$PKG
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
+rm -rf $PKG/usr/man/cat{1,5,8}
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