diff --git a/security/cyrus-sasl/Makefile b/security/cyrus-sasl/Makefile index e819d4113457..e4563b769a3a 100644 --- a/security/cyrus-sasl/Makefile +++ b/security/cyrus-sasl/Makefile @@ -14,13 +14,12 @@ MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \ MAINTAINER= hetzels@westbend.net -BUILD_DEPENDS= openssl:${PORTSDIR}/security/openssl -LIB_DEPENDS= crypto.1:${PORTSDIR}/security/openssl +USE_OPENSSL= NORSA + +.include SASL_VER= 1.5.15 -RESTRICTED= "Contains cryptography" - Y2K= http://asg.web.cmu.edu/cyrus/imapd/y2k.html MAN3= sasl_client.3 sasl_server.3 @@ -43,6 +42,10 @@ CONFIGURE_ARGS= \ CONFIGURE_ARGS+= --enable-gssapi=${KRB5_HOME} .endif +CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} \ + OPENSSLINC=${OPENSSLINC} \ + OPENSSLLIB=${OPENSSLLIB} + DOCS= README README.Y2K TODO INSTALL ChangeLog NEWS DOC2= draft-newman-auth-scram-03.txt \ @@ -88,4 +91,4 @@ post-install: @${MV} ${WRKDIR}/tmp.plist ${TMPPLIST} .endif -.include +.include diff --git a/security/cyrus-sasl/files/patch-ab b/security/cyrus-sasl/files/patch-ab index 7818e6664158..646c62a2b086 100644 --- a/security/cyrus-sasl/files/patch-ab +++ b/security/cyrus-sasl/files/patch-ab @@ -1,6 +1,18 @@ ---- configure.in.orig Thu Jan 13 23:00:16 2000 -+++ configure.in Fri Jan 14 17:56:41 2000 -@@ -222,6 +222,7 @@ +--- configure.in.orig Fri Jan 14 00:00:16 2000 ++++ configure.in Mon Feb 7 15:14:50 2000 +@@ -49,8 +49,9 @@ + dnl check for -R, etc. switch + CMU_GUESS_RUNPATH_SWITCH + dnl let's just link against local. otherwise we never find anything useful. +-CPPFLAGS="-I/usr/local/include ${CPPFLAGS}" +-CMU_ADD_LIBPATH("/usr/local/lib") ++CPPFLAGS="-I${OPENSSLINC} ${CPPFLAGS}" ++CMU_ADD_LIBPATH("${LOCALBASE}/lib") ++CMU_ADD_LIBPATH("${OPENSSLLIB}") + + if test "$enable_java" = yes; then + AC_PATH_PROG(JAVAC, javac, no) +@@ -222,6 +223,7 @@ AC_CHECK_LIB(crypt, crypt, LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes, cmu_have_crypt=no)) diff --git a/security/cyrus-sasl2/Makefile b/security/cyrus-sasl2/Makefile index e819d4113457..e4563b769a3a 100644 --- a/security/cyrus-sasl2/Makefile +++ b/security/cyrus-sasl2/Makefile @@ -14,13 +14,12 @@ MASTER_SITES= ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/ \ MAINTAINER= hetzels@westbend.net -BUILD_DEPENDS= openssl:${PORTSDIR}/security/openssl -LIB_DEPENDS= crypto.1:${PORTSDIR}/security/openssl +USE_OPENSSL= NORSA + +.include SASL_VER= 1.5.15 -RESTRICTED= "Contains cryptography" - Y2K= http://asg.web.cmu.edu/cyrus/imapd/y2k.html MAN3= sasl_client.3 sasl_server.3 @@ -43,6 +42,10 @@ CONFIGURE_ARGS= \ CONFIGURE_ARGS+= --enable-gssapi=${KRB5_HOME} .endif +CONFIGURE_ENV+= LOCALBASE=${LOCALBASE} \ + OPENSSLINC=${OPENSSLINC} \ + OPENSSLLIB=${OPENSSLLIB} + DOCS= README README.Y2K TODO INSTALL ChangeLog NEWS DOC2= draft-newman-auth-scram-03.txt \ @@ -88,4 +91,4 @@ post-install: @${MV} ${WRKDIR}/tmp.plist ${TMPPLIST} .endif -.include +.include diff --git a/security/cyrus-sasl2/files/patch-ab b/security/cyrus-sasl2/files/patch-ab index 7818e6664158..646c62a2b086 100644 --- a/security/cyrus-sasl2/files/patch-ab +++ b/security/cyrus-sasl2/files/patch-ab @@ -1,6 +1,18 @@ ---- configure.in.orig Thu Jan 13 23:00:16 2000 -+++ configure.in Fri Jan 14 17:56:41 2000 -@@ -222,6 +222,7 @@ +--- configure.in.orig Fri Jan 14 00:00:16 2000 ++++ configure.in Mon Feb 7 15:14:50 2000 +@@ -49,8 +49,9 @@ + dnl check for -R, etc. switch + CMU_GUESS_RUNPATH_SWITCH + dnl let's just link against local. otherwise we never find anything useful. +-CPPFLAGS="-I/usr/local/include ${CPPFLAGS}" +-CMU_ADD_LIBPATH("/usr/local/lib") ++CPPFLAGS="-I${OPENSSLINC} ${CPPFLAGS}" ++CMU_ADD_LIBPATH("${LOCALBASE}/lib") ++CMU_ADD_LIBPATH("${OPENSSLLIB}") + + if test "$enable_java" = yes; then + AC_PATH_PROG(JAVAC, javac, no) +@@ -222,6 +223,7 @@ AC_CHECK_LIB(crypt, crypt, LIB_CRYPT="-lcrypt"; cmu_have_crypt=yes, cmu_have_crypt=no))