SOURCES: amanda-no-static-krb5.patch (NEW) - link to shared krb5 libs

baggins baggins at pld-linux.org
Fri Jun 22 15:50:28 CEST 2007


Author: baggins                      Date: Fri Jun 22 13:50:28 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- link to shared krb5 libs

---- Files affected:
SOURCES:
   amanda-no-static-krb5.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/amanda-no-static-krb5.patch
diff -u /dev/null SOURCES/amanda-no-static-krb5.patch:1.1
--- /dev/null	Fri Jun 22 15:50:28 2007
+++ SOURCES/amanda-no-static-krb5.patch	Fri Jun 22 15:50:23 2007
@@ -0,0 +1,72 @@
+--- amanda-2.5.2p1/configure.in~	2007-06-22 15:34:50.000000000 +0200
++++ amanda-2.5.2p1/configure.in	2007-06-22 15:38:46.000000000 +0200
+@@ -851,7 +851,7 @@
+ AC_MSG_CHECKING(for Kerberos and Amanda kerberos4 bits)
+ if test "x${KRB4_SECURITY}" = xyes -a -f  ${srcdir-.}/common-src/krb4-security.c ; then
+     for dir in $KRB4_SPOTS; do
+-	if test -f ${dir}/lib/libkrb.a -a -f ${dir}/lib/libdes.a ; then
++	if test -f ${dir}/lib/libkrb.so -a -f ${dir}/lib/libdes.so ; then
+ 	    #
+ 	    # This is the original Kerberos 4.
+ 	    #
+@@ -868,13 +868,13 @@
+ 	    fi
+ 	    KRB4LDFLAGS=-L$dir/lib
+ 	    KRB4LIBS="-lkrb -ldes"
+-	    if test -f ${dir}/lib/libcom_err.a; then
++	    if test -f ${dir}/lib/libcom_err.so; then
+ 		KRB4LIBS="$KRB4LIBS -lcom_err"
+ 	    fi
+ 	    break
+-	elif test -f ${dir}/lib/libkrb4.a &&
+-	     test -f ${dir}/lib/libcrypto.a &&
+-	     test -f ${dir}/lib/libdes425.a ; then
++	elif test -f ${dir}/lib/libkrb4.so &&
++	     test -f ${dir}/lib/libcrypto.so &&
++	     test -f ${dir}/lib/libdes425.so ; then
+ 	    #
+ 	    # This is Kerberos 5 with Kerberos 4 back-support.
+ 	    #
+@@ -883,8 +883,8 @@
+ 	    AC_DEFINE(KRB4_SECURITY, 1, [Enable Kerberos security. ])
+ 	    KRB4INCLUDES="-I$dir/include -I$dir/include/kerberosIV"
+ 	    KRB4LDFLAGS=-L$dir/lib
+-	    if test -f ${dir}/lib/libkrb5.a &&
+-               test -f ${dir}/lib/libcom_err.a; then
++	    if test -f ${dir}/lib/libkrb5.so &&
++               test -f ${dir}/lib/libcom_err.so; then
+ 		KRB4LIBS="-lkrb4 -lkrb5 -lcrypto -ldes425 -lcom_err"
+ 	    else
+ 		KRB4LIBS="-lkrb4 -lcrypto -ldes425"
+@@ -1135,15 +1135,15 @@
+ for dir in $KRB5_SPOTS; do
+   for lib in lib lib64; do
+     k5libdir=${dir}/${lib}
+-    if test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libgssapi_krb5.a -a -f ${k5libdir}/libcom_err.a; then
+-	if test -f ${k5libdir}/libk5crypto.a; then
++    if test -f ${k5libdir}/libkrb5.so -a -f ${k5libdir}/libgssapi_krb5.so -a -f ${k5libdir}/libcom_err.so; then
++	if test -f ${k5libdir}/libk5crypto.so; then
+ 	    K5CRYPTO=-lk5crypto
+-	elif test -f ${k5libdir}/libcrypto.a; then
++	elif test -f ${k5libdir}/libcrypto.so; then
+ 	    K5CRYPTO=-lcrypto
+ 	else
+ 	    K5CRYPTO=""
+ 	fi
+-	if test -f ${k5libdir}/libkrb5support.a; then
++	if test -f ${k5libdir}/libkrb5support.so; then
+ 	    K5SUPPORT=-lkrb5support
+ 	else
+ 	    K5SUPPORT=""
+@@ -1152,9 +1152,9 @@
+ 	KRB5LIBS="-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err"
+ 	KRB5CFLAGS=""
+ 	break
+-    elif test -f ${k5libdir}/libkrb5.a -a -f ${k5libdir}/libasn1.a -a -f ${k5libdir}/libgssapi.a; then
++    elif test -f ${k5libdir}/libkrb5.so -a -f ${k5libdir}/libasn1.so -a -f ${k5libdir}/libgssapi.so; then
+ 	KRB5_DIR_FOUND=$dir
+-	KRB5LIBS="-lgssapi.a -lkrb5.a -lasn1.a"
++	KRB5LIBS="-lgssapi -lkrb5 -lasn1"
+ 	KRB5_CFLAGS="-DKRB5_HEIMDAL_INCLUDES"
+ 	break
+     fi
================================================================


More information about the pld-cvs-commit mailing list