diff options
author | James E. Housley <jeh@FreeBSD.org> | 2000-10-24 02:03:09 +0000 |
---|---|---|
committer | James E. Housley <jeh@FreeBSD.org> | 2000-10-24 02:03:09 +0000 |
commit | 94124a586bc589c1fa0ff18159db9a7572aa41d0 (patch) | |
tree | b790880244fc7f3019b89b9e5bf1d4251466483a /security | |
parent | Mikhail Teterin <mi@aldan.algebra.com> in PR 22258 showed me a more (diff) |
autodetected DB3, but fails to find includes
PR: 21411
Submitted by: Scot W. Hetzel <hetzels@westbend.net> MAINTAINER
Diffstat (limited to 'security')
-rw-r--r-- | security/cyrus-sasl/Makefile | 16 | ||||
-rw-r--r-- | security/cyrus-sasl/files/patch-ab | 20 | ||||
-rw-r--r-- | security/cyrus-sasl/scripts/configure.sasl | 45 | ||||
-rw-r--r-- | security/cyrus-sasl2/Makefile | 16 | ||||
-rw-r--r-- | security/cyrus-sasl2/files/patch-ab | 20 | ||||
-rw-r--r-- | security/cyrus-sasl2/scripts/configure.sasl | 45 |
6 files changed, 138 insertions, 24 deletions
diff --git a/security/cyrus-sasl/Makefile b/security/cyrus-sasl/Makefile index 47a6cedd6e43..5ba8b55ad666 100644 --- a/security/cyrus-sasl/Makefile +++ b/security/cyrus-sasl/Makefile @@ -43,12 +43,18 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \ --enable-static \ --enable-login \ --with-pwcheck=/var/pwcheck \ + --with-dblib=ndbm \ --with-rc4=openssl SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ PREFIX="${PREFIX}" \ TOUCH="${TOUCH}" \ - MKDIR="${MKDIR}" + MKDIR="${MKDIR}" \ + ENABLE_DB3="${ENABLE_DB3}" \ + ENABLE_MYSQL="${ENABLE_MYSQL}" \ + ENABLE_LDAP="${ENABLE_LDAP}" + +# ENABLE_* variables can be used by depending ports to enable options. # JavaSASL needs someone to look at to get it to build #JAVADIR= jdk1.1.8 @@ -65,16 +71,16 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ #.endif .if defined(KRB5_HOME) && exists(${KRB5_HOME}) -CONFIGURE_ARGS+= --enable-gssapi=${KRB5_HOME} +CONFIGURE_ARGS+= --enable-gssapi=${KRB5_HOME} .else -CONFIGURE_ARGS+= --disable-gssapi +CONFIGURE_ARGS+= --disable-gssapi GSSAPI= "@comment " .endif .if exists(/usr/lib/libkrb.a) -CONFIGURE_ARGS+= --enable-krb4 +CONFIGURE_ARGS+= --enable-krb4 .else -CONFIGURE_ARGS+= --disable-krb4 +CONFIGURE_ARGS+= --disable-krb4 EBONES= "@comment " .endif diff --git a/security/cyrus-sasl/files/patch-ab b/security/cyrus-sasl/files/patch-ab index 1acd48d34144..00c61b875b68 100644 --- a/security/cyrus-sasl/files/patch-ab +++ b/security/cyrus-sasl/files/patch-ab @@ -1,5 +1,5 @@ --- configure.in.orig Thu Jul 20 21:35:01 2000 -+++ configure.in Sat Sep 16 13:58:02 2000 ++++ configure.in Tue Sep 19 21:51:11 2000 @@ -66,8 +66,9 @@ dnl check for -R, etc. switch CMU_GUESS_RUNPATH_SWITCH @@ -12,7 +12,21 @@ AM_DISABLE_STATIC -@@ -310,6 +311,88 @@ +@@ -232,6 +233,13 @@ + SASL_DB_BACKEND="db_${dblib}.lo" + AC_DEFINE(SASL_BERKELEYDB) + SASL_DB_LIB="-ldb" ++ for db3loc in ${prefix} /usr/local /usr ++ do ++ if test -d ${db3loc}/include/db3; then ++ CPPFLAGS="-I${db3loc}/include/db3 $CPPFLAGS" ++ break ++ fi ++ done + ;; + *) + AC_MSG_WARN([Disabling SASL authentication database support]) +@@ -310,6 +318,88 @@ fi AM_CONDITIONAL(PWCHECK, test "$with_pwcheck" != no) @@ -101,7 +115,7 @@ dnl CRAM-MD5 AC_ARG_ENABLE(cram, [ --enable-cram enable CRAM-MD5 authentication [yes] ], cram=$enableval, -@@ -434,11 +517,15 @@ +@@ -434,11 +524,15 @@ fi if test "$with_des" != no; then diff --git a/security/cyrus-sasl/scripts/configure.sasl b/security/cyrus-sasl/scripts/configure.sasl index 75c4258fa056..540ab1afa5e5 100644 --- a/security/cyrus-sasl/scripts/configure.sasl +++ b/security/cyrus-sasl/scripts/configure.sasl @@ -6,13 +6,43 @@ if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then fi if [ "${BATCH}" ]; then - exit + if [ "x${ENABLE_DB3}" = "xYES" ]; then + OPTIONS=\"DB3\" + fi + if [ "x${ENABLE_MYSQL}" = "xYES" ]; then + OPTIONS="${OPTIONS} \"MySQL\"" + fi + if [ "x${ENABLE_LDAP}" = "xYES" ]; then + OPTIONS="${OPTIONS} \"OpenLDAP\"" + fi + if [ "x${OPTIONS}" != "x" ]; then + set ${OPTIONS} + fi else - /usr/bin/dialog --title "Additional pwcheck methods" --clear \ + + if [ "x${ENABLE_DB3}" = "xYES" -o -f ${PREFIX}/lib/libdb3.so ] ; then + SET_DB3="ON" + else + SET_DB3="OFF" + fi + if [ "x${ENABLE_MYSQL}" = "xYES" -o -f ${PREFIX}/lib/libmysqlclient.so ] ; then + SET_MYSQL="ON" + else + SET_MYSQL="OFF" + fi + if [ "x${ENABLE_LDAP}" = "xYES" -o \ + -f ${PREFIX}/lib/libldap.so -a -f ${PREFIX}/lib/liblber.so ] ; then + SET_LDAP="ON" + else + SET_LDAP="OFF" + fi + + /usr/bin/dialog --title "Additional SASL options" --clear \ --checklist "\n\ Please select desired options:" -1 -1 16 \ -MySQL "MySQL password Authentication" OFF \ -OpenLDAP "OpenLDAP password Authentication" OFF \ +DB3 "Berkeley DB package, revision 3" ${SET_DB3} \ +MySQL "MySQL password Authentication" ${SET_MYSQL} \ +OpenLDAP "OpenLDAP password Authentication" ${SET_LDAP} \ 2> /tmp/checklist.tmp.$$ retval=$? @@ -40,6 +70,13 @@ echo "PREFIX= ${PREFIX}" while [ "$1" ]; do case $1 in + \"DB3\") + #Can't use LIB_DEPENDS - no libdb3.so.1 in db3 port + #echo "LIB_DEPENDS+= db3.1:\${PORTSDIR}/databases/db3" + echo "BUILD_DEPENDS+= \${LOCALBASE}/lib/libdb3.1.so:\${PORTSDIR}/databases/db3" + echo "RUN_DEPENDS+= \${LOCALBASE}/lib/libdb3.1.so:\${PORTSDIR}/databases/db3" + echo "CONFIGURE_ARGS+=--with-dblib=berkeley" + ;; \"MySQL\") echo "LIB_DEPENDS+= mysqlclient.6:\${PORTSDIR}/databases/mysql322-client" echo "CONFIGURE_ARGS+=--with-mysql=\${PREFIX}" diff --git a/security/cyrus-sasl2/Makefile b/security/cyrus-sasl2/Makefile index 47a6cedd6e43..5ba8b55ad666 100644 --- a/security/cyrus-sasl2/Makefile +++ b/security/cyrus-sasl2/Makefile @@ -43,12 +43,18 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \ --enable-static \ --enable-login \ --with-pwcheck=/var/pwcheck \ + --with-dblib=ndbm \ --with-rc4=openssl SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ PREFIX="${PREFIX}" \ TOUCH="${TOUCH}" \ - MKDIR="${MKDIR}" + MKDIR="${MKDIR}" \ + ENABLE_DB3="${ENABLE_DB3}" \ + ENABLE_MYSQL="${ENABLE_MYSQL}" \ + ENABLE_LDAP="${ENABLE_LDAP}" + +# ENABLE_* variables can be used by depending ports to enable options. # JavaSASL needs someone to look at to get it to build #JAVADIR= jdk1.1.8 @@ -65,16 +71,16 @@ SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ #.endif .if defined(KRB5_HOME) && exists(${KRB5_HOME}) -CONFIGURE_ARGS+= --enable-gssapi=${KRB5_HOME} +CONFIGURE_ARGS+= --enable-gssapi=${KRB5_HOME} .else -CONFIGURE_ARGS+= --disable-gssapi +CONFIGURE_ARGS+= --disable-gssapi GSSAPI= "@comment " .endif .if exists(/usr/lib/libkrb.a) -CONFIGURE_ARGS+= --enable-krb4 +CONFIGURE_ARGS+= --enable-krb4 .else -CONFIGURE_ARGS+= --disable-krb4 +CONFIGURE_ARGS+= --disable-krb4 EBONES= "@comment " .endif diff --git a/security/cyrus-sasl2/files/patch-ab b/security/cyrus-sasl2/files/patch-ab index 1acd48d34144..00c61b875b68 100644 --- a/security/cyrus-sasl2/files/patch-ab +++ b/security/cyrus-sasl2/files/patch-ab @@ -1,5 +1,5 @@ --- configure.in.orig Thu Jul 20 21:35:01 2000 -+++ configure.in Sat Sep 16 13:58:02 2000 ++++ configure.in Tue Sep 19 21:51:11 2000 @@ -66,8 +66,9 @@ dnl check for -R, etc. switch CMU_GUESS_RUNPATH_SWITCH @@ -12,7 +12,21 @@ AM_DISABLE_STATIC -@@ -310,6 +311,88 @@ +@@ -232,6 +233,13 @@ + SASL_DB_BACKEND="db_${dblib}.lo" + AC_DEFINE(SASL_BERKELEYDB) + SASL_DB_LIB="-ldb" ++ for db3loc in ${prefix} /usr/local /usr ++ do ++ if test -d ${db3loc}/include/db3; then ++ CPPFLAGS="-I${db3loc}/include/db3 $CPPFLAGS" ++ break ++ fi ++ done + ;; + *) + AC_MSG_WARN([Disabling SASL authentication database support]) +@@ -310,6 +318,88 @@ fi AM_CONDITIONAL(PWCHECK, test "$with_pwcheck" != no) @@ -101,7 +115,7 @@ dnl CRAM-MD5 AC_ARG_ENABLE(cram, [ --enable-cram enable CRAM-MD5 authentication [yes] ], cram=$enableval, -@@ -434,11 +517,15 @@ +@@ -434,11 +524,15 @@ fi if test "$with_des" != no; then diff --git a/security/cyrus-sasl2/scripts/configure.sasl b/security/cyrus-sasl2/scripts/configure.sasl index 75c4258fa056..540ab1afa5e5 100644 --- a/security/cyrus-sasl2/scripts/configure.sasl +++ b/security/cyrus-sasl2/scripts/configure.sasl @@ -6,13 +6,43 @@ if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then fi if [ "${BATCH}" ]; then - exit + if [ "x${ENABLE_DB3}" = "xYES" ]; then + OPTIONS=\"DB3\" + fi + if [ "x${ENABLE_MYSQL}" = "xYES" ]; then + OPTIONS="${OPTIONS} \"MySQL\"" + fi + if [ "x${ENABLE_LDAP}" = "xYES" ]; then + OPTIONS="${OPTIONS} \"OpenLDAP\"" + fi + if [ "x${OPTIONS}" != "x" ]; then + set ${OPTIONS} + fi else - /usr/bin/dialog --title "Additional pwcheck methods" --clear \ + + if [ "x${ENABLE_DB3}" = "xYES" -o -f ${PREFIX}/lib/libdb3.so ] ; then + SET_DB3="ON" + else + SET_DB3="OFF" + fi + if [ "x${ENABLE_MYSQL}" = "xYES" -o -f ${PREFIX}/lib/libmysqlclient.so ] ; then + SET_MYSQL="ON" + else + SET_MYSQL="OFF" + fi + if [ "x${ENABLE_LDAP}" = "xYES" -o \ + -f ${PREFIX}/lib/libldap.so -a -f ${PREFIX}/lib/liblber.so ] ; then + SET_LDAP="ON" + else + SET_LDAP="OFF" + fi + + /usr/bin/dialog --title "Additional SASL options" --clear \ --checklist "\n\ Please select desired options:" -1 -1 16 \ -MySQL "MySQL password Authentication" OFF \ -OpenLDAP "OpenLDAP password Authentication" OFF \ +DB3 "Berkeley DB package, revision 3" ${SET_DB3} \ +MySQL "MySQL password Authentication" ${SET_MYSQL} \ +OpenLDAP "OpenLDAP password Authentication" ${SET_LDAP} \ 2> /tmp/checklist.tmp.$$ retval=$? @@ -40,6 +70,13 @@ echo "PREFIX= ${PREFIX}" while [ "$1" ]; do case $1 in + \"DB3\") + #Can't use LIB_DEPENDS - no libdb3.so.1 in db3 port + #echo "LIB_DEPENDS+= db3.1:\${PORTSDIR}/databases/db3" + echo "BUILD_DEPENDS+= \${LOCALBASE}/lib/libdb3.1.so:\${PORTSDIR}/databases/db3" + echo "RUN_DEPENDS+= \${LOCALBASE}/lib/libdb3.1.so:\${PORTSDIR}/databases/db3" + echo "CONFIGURE_ARGS+=--with-dblib=berkeley" + ;; \"MySQL\") echo "LIB_DEPENDS+= mysqlclient.6:\${PORTSDIR}/databases/mysql322-client" echo "CONFIGURE_ARGS+=--with-mysql=\${PREFIX}" |