From 636d1ebd70fd6825fbd4d30b41abf865213aa9ab Mon Sep 17 00:00:00 2001 From: Ade Lovett Date: Tue, 19 Sep 2000 02:59:29 +0000 Subject: Cyrus-SASL 1.5.24 sources changed on Aug 15th -- changed a hard coded value to a variable. Kerberos IV detection fails due to double check on krb_mk_priv (with/without com_err), used cached value from first check for krb_mk_priv. Added addtional pwcheck methods (MySQL & LDAP Authentication). PR: 21383 Submitted by: maintainer --- security/cyrus-sasl2/scripts/configure.sasl | 59 +++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 security/cyrus-sasl2/scripts/configure.sasl (limited to 'security/cyrus-sasl2/scripts/configure.sasl') diff --git a/security/cyrus-sasl2/scripts/configure.sasl b/security/cyrus-sasl2/scripts/configure.sasl new file mode 100644 index 000000000000..75c4258fa056 --- /dev/null +++ b/security/cyrus-sasl2/scripts/configure.sasl @@ -0,0 +1,59 @@ +#!/bin/sh +# $FreeBSD$ + +if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then + exit +fi + +if [ "${BATCH}" ]; then + exit +else + /usr/bin/dialog --title "Additional pwcheck methods" --clear \ + --checklist "\n\ +Please select desired options:" -1 -1 16 \ +MySQL "MySQL password Authentication" OFF \ +OpenLDAP "OpenLDAP password Authentication" OFF \ +2> /tmp/checklist.tmp.$$ + + retval=$? + + if [ -s /tmp/checklist.tmp.$$ ]; then + set `cat /tmp/checklist.tmp.$$` + fi + rm -f /tmp/checklist.tmp.$$ + + case $retval in + 0) if [ -z "$*" ]; then + echo "Nothing selected" + fi + ;; + 1) echo "Cancel pressed." + exit 1 + ;; + esac +fi + +${MKDIR} ${WRKDIRPREFIX}${CURDIR} +exec > ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + +echo "PREFIX= ${PREFIX}" + +while [ "$1" ]; do + case $1 in + \"MySQL\") + echo "LIB_DEPENDS+= mysqlclient.6:\${PORTSDIR}/databases/mysql322-client" + echo "CONFIGURE_ARGS+=--with-mysql=\${PREFIX}" + ;; + \"OpenLDAP\") + echo "LIB_DEPENDS+= ldap.1:\${PORTSDIR}/net/openldap" + echo "LIB_DEPENDS+= lber.1:\${PORTSDIR}/net/openldap" + echo "CONFIGURE_ARGS+=--with-ldap=\${PREFIX}" + ;; + *) + echo "Invalid option(s): $*" > /dev/stderr + rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + exit 1 + ;; + esac + shift +done -- cgit v1.2.3