aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2000-10-24 10:03:09 +0800
committerjeh <jeh@FreeBSD.org>2000-10-24 10:03:09 +0800
commitb973e7be46d263603d40dcc49b413a24bba44fad (patch)
tree35afaffb869060a7e685a2aa9821a1fd634d561c
parente68fac77ea4fe734afec2854c0262645c6ff2cc9 (diff)
downloadfreebsd-ports-gnome-b973e7be46d263603d40dcc49b413a24bba44fad.tar.gz
freebsd-ports-gnome-b973e7be46d263603d40dcc49b413a24bba44fad.tar.zst
freebsd-ports-gnome-b973e7be46d263603d40dcc49b413a24bba44fad.zip
autodetected DB3, but fails to find includes
PR: 21411 Submitted by: Scot W. Hetzel <hetzels@westbend.net> MAINTAINER
-rw-r--r--security/cyrus-sasl/Makefile16
-rw-r--r--security/cyrus-sasl/files/patch-ab20
-rw-r--r--security/cyrus-sasl/scripts/configure.sasl45
-rw-r--r--security/cyrus-sasl2/Makefile16
-rw-r--r--security/cyrus-sasl2/files/patch-ab20
-rw-r--r--security/cyrus-sasl2/scripts/configure.sasl45
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}"