aboutsummaryrefslogtreecommitdiff
path: root/security/cyrus-sasl2-saslauthd
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2013-01-06 16:56:55 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2013-01-06 16:56:55 +0000
commit4cbb088d05f08c8d323f215d288a1c01c0bfcc95 (patch)
treeaa9effeb5547e73dbba9769376cd2c8af41742a6 /security/cyrus-sasl2-saslauthd
parentd462b30cf9f9027caeb66303cf48e4067aac3ec1 (diff)
downloadports-4cbb088d05f08c8d323f215d288a1c01c0bfcc95.tar.gz
ports-4cbb088d05f08c8d323f215d288a1c01c0bfcc95.zip
If security/krb5 is installed and OPENLDAP option is enabled, it
failed to build unless KRB5_HOME is set properly. Now, only when KRB5_HOME is set properly, it build with security/krb5. Spotted by: David Gessel <gessel__at__blackrosetech.com>
Notes
Notes: svn path=/head/; revision=310002
Diffstat (limited to 'security/cyrus-sasl2-saslauthd')
-rw-r--r--security/cyrus-sasl2-saslauthd/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/security/cyrus-sasl2-saslauthd/Makefile b/security/cyrus-sasl2-saslauthd/Makefile
index ef7d30f204e9..6f99c296d454 100644
--- a/security/cyrus-sasl2-saslauthd/Makefile
+++ b/security/cyrus-sasl2-saslauthd/Makefile
@@ -27,6 +27,10 @@ DOCSDIR= ${PREFIX}/share/doc/cyrus-sasl2
MAKE_JOBS_SAFE= yes
+# This doesn't work due to absence of .al support in our libtool
+#USE_AUTOTOOLS= libtool
+#LIBTOOLFILES= ${CONFIGURE_SCRIPT} saslauthd/configure
+
MAN8= saslauthd.8
USE_RC_SUBR= saslauthd
@@ -44,6 +48,7 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
--with-rc4=openssl \
--with-saslauthd=${SASLAUTHD_RUNPATH} \
--disable-krb4
+CONFIGURE_ENV+= andrew_cv_runpath_switch=none
OPTIONS_DEFINE= BDB OPENLDAP HTTPFORM
OPENLDAP_DESC= Use OpenLDAP
@@ -76,11 +81,12 @@ CONFIGURE_ARGS+=--enable-httpform
.if !defined(WITHOUT_GSSAPI) && defined(KRB5_HOME) && exists(${KRB5_HOME}/lib/libgssapi_krb5.so)
CONFIGURE_ARGS+=--enable-gssapi=${KRB5_HOME} --with-gss_impl=mit
-LDFLAGS+= "-R${KRB5_HOME}/lib"
+LDFLAGS+= -R${KRB5_HOME}/lib
.elif !defined(WITHOUT_GSSAPI) && defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME}/lib/libgssapi.a)
CONFIGURE_ARGS+=--enable-gssapi=${HEIMDAL_HOME} --with-gss_impl=heimdal
.elif !defined(WITHOUT_GSSAPI) && exists(/usr/lib/libkrb5.a)
-CONFIGURE_ARGS+=--enable-gssapi
+CONFIGURE_ARGS+=--enable-gssapi=/usr
+CFLAGS+= -nostdinc -I/usr/include
.else
CONFIGURE_ARGS+=--disable-gssapi
.endif