aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-03-30 00:13:44 +0800
committerpav <pav@FreeBSD.org>2004-03-30 00:13:44 +0800
commit2e408faef476b6694161f38477b33e654d5d8672 (patch)
tree62524e93c24eadeab85884176840c99a4eb01b98 /mail
parent83e46ff7a13f6863ded211d95625a7a1a03d0f77 (diff)
downloadfreebsd-ports-graphics-2e408faef476b6694161f38477b33e654d5d8672.tar.gz
freebsd-ports-graphics-2e408faef476b6694161f38477b33e654d5d8672.tar.zst
freebsd-ports-graphics-2e408faef476b6694161f38477b33e654d5d8672.zip
- Add support for db42
PR: ports/64801 Submitted by: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net> Approved by: maintainer
Diffstat (limited to 'mail')
-rw-r--r--mail/postfix/scripts/configure.postfix33
-rw-r--r--mail/postfix20/scripts/configure.postfix33
-rw-r--r--mail/postfix21/scripts/configure.postfix33
-rw-r--r--mail/postfix22/scripts/configure.postfix33
-rw-r--r--mail/postfix23/scripts/configure.postfix33
-rw-r--r--mail/postfix24/scripts/configure.postfix33
-rw-r--r--mail/postfix25/scripts/configure.postfix33
-rw-r--r--mail/postfix26/scripts/configure.postfix33
-rw-r--r--mail/postfix27/scripts/configure.postfix33
-rw-r--r--mail/postfix28/scripts/configure.postfix33
10 files changed, 230 insertions, 100 deletions
diff --git a/mail/postfix/scripts/configure.postfix b/mail/postfix/scripts/configure.postfix
index c54651caf2d..69b354a6a63 100644
--- a/mail/postfix/scripts/configure.postfix
+++ b/mail/postfix/scripts/configure.postfix
@@ -1,5 +1,5 @@
#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix/scripts/Attic/configure.postfix,v 1.45 2004-03-11 08:23:06 ale Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix/scripts/Attic/configure.postfix,v 1.46 2004-03-29 16:13:44 pav Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@@ -29,6 +29,7 @@ IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \
DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \
DB40 "Berkeley DB4.0 (required if SASL also built with DB4.0)" "$status_DB40" \
DB41 "Berkeley DB4.1 (required if SASL also built with DB4.1)" "$status_DB41" \
+DB42 "Berkeley DB4.2 (required if SASL also built with DB4.2)" "$status_DB42" \
MySQL "MySQL map lookups (choose version with WITH_MYSQL_VER)" "$status_MySQL" \
PgSQL "PostgreSQL v7.4 map lookups" "$status_PgSQL" \
PgSQL73 "PostgreSQL v7.3 map lookups" "$status_PgSQL73" \
@@ -114,8 +115,8 @@ while [ "$1" ]; do
SUB_TLS=""
;;
DB3)
- if [ X$DB40_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -123,11 +124,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db3"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
echo "DB_SUFFIX= +db3"
- DB3_SELECTED="YES"
+ BDB_SELECTED="3"
;;
DB40)
- if [ X$DB3_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -135,11 +136,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db4"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb4"
echo "DB_SUFFIX= +db40"
- DB40_SELECTED="YES"
+ BDB_SELECTED="40"
;;
DB41)
- if [ X$DB3_SELECTED != "X" -o X$DB40_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -147,7 +148,19 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db41"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb41"
echo "DB_SUFFIX= +db41"
- DB41_SELECTED="YES"
+ BDB_SELECTED="41"
+ ;;
+ DB42)
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
+ rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ exit 1
+ fi
+ echo "LIB_DEPENDS+= db-4.2.2:\${PORTSDIR}/databases/db42"
+ echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db42"
+ echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib/db42/ -ldb"
+ echo "DB_SUFFIX= +db42"
+ BDB_SELECTED="42"
;;
MySQL)
echo "USE_MYSQL=YES"
diff --git a/mail/postfix20/scripts/configure.postfix b/mail/postfix20/scripts/configure.postfix
index 0a08dcd1671..446871c60f7 100644
--- a/mail/postfix20/scripts/configure.postfix
+++ b/mail/postfix20/scripts/configure.postfix
@@ -1,5 +1,5 @@
#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix20/scripts/Attic/configure.postfix,v 1.45 2004-03-11 08:23:06 ale Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix20/scripts/Attic/configure.postfix,v 1.46 2004-03-29 16:13:44 pav Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@@ -29,6 +29,7 @@ IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \
DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \
DB40 "Berkeley DB4.0 (required if SASL also built with DB4.0)" "$status_DB40" \
DB41 "Berkeley DB4.1 (required if SASL also built with DB4.1)" "$status_DB41" \
+DB42 "Berkeley DB4.2 (required if SASL also built with DB4.2)" "$status_DB42" \
MySQL "MySQL map lookups (choose version with WITH_MYSQL_VER)" "$status_MySQL" \
PgSQL "PostgreSQL v7.4 map lookups" "$status_PgSQL" \
PgSQL73 "PostgreSQL v7.3 map lookups" "$status_PgSQL73" \
@@ -114,8 +115,8 @@ while [ "$1" ]; do
SUB_TLS=""
;;
DB3)
- if [ X$DB40_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -123,11 +124,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db3"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
echo "DB_SUFFIX= +db3"
- DB3_SELECTED="YES"
+ BDB_SELECTED="3"
;;
DB40)
- if [ X$DB3_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -135,11 +136,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db4"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb4"
echo "DB_SUFFIX= +db40"
- DB40_SELECTED="YES"
+ BDB_SELECTED="40"
;;
DB41)
- if [ X$DB3_SELECTED != "X" -o X$DB40_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -147,7 +148,19 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db41"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb41"
echo "DB_SUFFIX= +db41"
- DB41_SELECTED="YES"
+ BDB_SELECTED="41"
+ ;;
+ DB42)
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
+ rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ exit 1
+ fi
+ echo "LIB_DEPENDS+= db-4.2.2:\${PORTSDIR}/databases/db42"
+ echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db42"
+ echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib/db42/ -ldb"
+ echo "DB_SUFFIX= +db42"
+ BDB_SELECTED="42"
;;
MySQL)
echo "USE_MYSQL=YES"
diff --git a/mail/postfix21/scripts/configure.postfix b/mail/postfix21/scripts/configure.postfix
index c98a491e7bf..ae533d83b8e 100644
--- a/mail/postfix21/scripts/configure.postfix
+++ b/mail/postfix21/scripts/configure.postfix
@@ -1,5 +1,5 @@
#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix21/scripts/Attic/configure.postfix,v 1.45 2004-03-11 08:23:06 ale Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix21/scripts/Attic/configure.postfix,v 1.46 2004-03-29 16:13:44 pav Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@@ -29,6 +29,7 @@ IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \
DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \
DB40 "Berkeley DB4.0 (required if SASL also built with DB4.0)" "$status_DB40" \
DB41 "Berkeley DB4.1 (required if SASL also built with DB4.1)" "$status_DB41" \
+DB42 "Berkeley DB4.2 (required if SASL also built with DB4.2)" "$status_DB42" \
MySQL "MySQL map lookups (choose version with WITH_MYSQL_VER)" "$status_MySQL" \
PgSQL "PostgreSQL v7.4 map lookups" "$status_PgSQL" \
PgSQL73 "PostgreSQL v7.3 map lookups" "$status_PgSQL73" \
@@ -114,8 +115,8 @@ while [ "$1" ]; do
SUB_TLS=""
;;
DB3)
- if [ X$DB40_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -123,11 +124,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db3"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
echo "DB_SUFFIX= +db3"
- DB3_SELECTED="YES"
+ BDB_SELECTED="3"
;;
DB40)
- if [ X$DB3_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -135,11 +136,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db4"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb4"
echo "DB_SUFFIX= +db40"
- DB40_SELECTED="YES"
+ BDB_SELECTED="40"
;;
DB41)
- if [ X$DB3_SELECTED != "X" -o X$DB40_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -147,7 +148,19 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db41"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb41"
echo "DB_SUFFIX= +db41"
- DB41_SELECTED="YES"
+ BDB_SELECTED="41"
+ ;;
+ DB42)
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
+ rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ exit 1
+ fi
+ echo "LIB_DEPENDS+= db-4.2.2:\${PORTSDIR}/databases/db42"
+ echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db42"
+ echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib/db42/ -ldb"
+ echo "DB_SUFFIX= +db42"
+ BDB_SELECTED="42"
;;
MySQL)
echo "USE_MYSQL=YES"
diff --git a/mail/postfix22/scripts/configure.postfix b/mail/postfix22/scripts/configure.postfix
index d2fe2a86c19..e8bcbb8e6c8 100644
--- a/mail/postfix22/scripts/configure.postfix
+++ b/mail/postfix22/scripts/configure.postfix
@@ -1,5 +1,5 @@
#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix22/scripts/Attic/configure.postfix,v 1.45 2004-03-11 08:23:06 ale Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix22/scripts/Attic/configure.postfix,v 1.46 2004-03-29 16:13:44 pav Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@@ -29,6 +29,7 @@ IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \
DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \
DB40 "Berkeley DB4.0 (required if SASL also built with DB4.0)" "$status_DB40" \
DB41 "Berkeley DB4.1 (required if SASL also built with DB4.1)" "$status_DB41" \
+DB42 "Berkeley DB4.2 (required if SASL also built with DB4.2)" "$status_DB42" \
MySQL "MySQL map lookups (choose version with WITH_MYSQL_VER)" "$status_MySQL" \
PgSQL "PostgreSQL v7.4 map lookups" "$status_PgSQL" \
PgSQL73 "PostgreSQL v7.3 map lookups" "$status_PgSQL73" \
@@ -114,8 +115,8 @@ while [ "$1" ]; do
SUB_TLS=""
;;
DB3)
- if [ X$DB40_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -123,11 +124,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db3"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
echo "DB_SUFFIX= +db3"
- DB3_SELECTED="YES"
+ BDB_SELECTED="3"
;;
DB40)
- if [ X$DB3_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -135,11 +136,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db4"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb4"
echo "DB_SUFFIX= +db40"
- DB40_SELECTED="YES"
+ BDB_SELECTED="40"
;;
DB41)
- if [ X$DB3_SELECTED != "X" -o X$DB40_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -147,7 +148,19 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db41"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb41"
echo "DB_SUFFIX= +db41"
- DB41_SELECTED="YES"
+ BDB_SELECTED="41"
+ ;;
+ DB42)
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
+ rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ exit 1
+ fi
+ echo "LIB_DEPENDS+= db-4.2.2:\${PORTSDIR}/databases/db42"
+ echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db42"
+ echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib/db42/ -ldb"
+ echo "DB_SUFFIX= +db42"
+ BDB_SELECTED="42"
;;
MySQL)
echo "USE_MYSQL=YES"
diff --git a/mail/postfix23/scripts/configure.postfix b/mail/postfix23/scripts/configure.postfix
index c00e995b0f0..7b74b45cefa 100644
--- a/mail/postfix23/scripts/configure.postfix
+++ b/mail/postfix23/scripts/configure.postfix
@@ -1,5 +1,5 @@
#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix23/scripts/Attic/configure.postfix,v 1.45 2004-03-11 08:23:06 ale Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix23/scripts/Attic/configure.postfix,v 1.46 2004-03-29 16:13:44 pav Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@@ -29,6 +29,7 @@ IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \
DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \
DB40 "Berkeley DB4.0 (required if SASL also built with DB4.0)" "$status_DB40" \
DB41 "Berkeley DB4.1 (required if SASL also built with DB4.1)" "$status_DB41" \
+DB42 "Berkeley DB4.2 (required if SASL also built with DB4.2)" "$status_DB42" \
MySQL "MySQL map lookups (choose version with WITH_MYSQL_VER)" "$status_MySQL" \
PgSQL "PostgreSQL v7.4 map lookups" "$status_PgSQL" \
PgSQL73 "PostgreSQL v7.3 map lookups" "$status_PgSQL73" \
@@ -114,8 +115,8 @@ while [ "$1" ]; do
SUB_TLS=""
;;
DB3)
- if [ X$DB40_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -123,11 +124,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db3"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
echo "DB_SUFFIX= +db3"
- DB3_SELECTED="YES"
+ BDB_SELECTED="3"
;;
DB40)
- if [ X$DB3_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -135,11 +136,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db4"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb4"
echo "DB_SUFFIX= +db40"
- DB40_SELECTED="YES"
+ BDB_SELECTED="40"
;;
DB41)
- if [ X$DB3_SELECTED != "X" -o X$DB40_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -147,7 +148,19 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db41"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb41"
echo "DB_SUFFIX= +db41"
- DB41_SELECTED="YES"
+ BDB_SELECTED="41"
+ ;;
+ DB42)
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
+ rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ exit 1
+ fi
+ echo "LIB_DEPENDS+= db-4.2.2:\${PORTSDIR}/databases/db42"
+ echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db42"
+ echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib/db42/ -ldb"
+ echo "DB_SUFFIX= +db42"
+ BDB_SELECTED="42"
;;
MySQL)
echo "USE_MYSQL=YES"
diff --git a/mail/postfix24/scripts/configure.postfix b/mail/postfix24/scripts/configure.postfix
index 033d47cad48..5871cdd294d 100644
--- a/mail/postfix24/scripts/configure.postfix
+++ b/mail/postfix24/scripts/configure.postfix
@@ -1,5 +1,5 @@
#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix24/scripts/Attic/configure.postfix,v 1.45 2004-03-11 08:23:06 ale Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix24/scripts/Attic/configure.postfix,v 1.46 2004-03-29 16:13:44 pav Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@@ -29,6 +29,7 @@ IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \
DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \
DB40 "Berkeley DB4.0 (required if SASL also built with DB4.0)" "$status_DB40" \
DB41 "Berkeley DB4.1 (required if SASL also built with DB4.1)" "$status_DB41" \
+DB42 "Berkeley DB4.2 (required if SASL also built with DB4.2)" "$status_DB42" \
MySQL "MySQL map lookups (choose version with WITH_MYSQL_VER)" "$status_MySQL" \
PgSQL "PostgreSQL v7.4 map lookups" "$status_PgSQL" \
PgSQL73 "PostgreSQL v7.3 map lookups" "$status_PgSQL73" \
@@ -114,8 +115,8 @@ while [ "$1" ]; do
SUB_TLS=""
;;
DB3)
- if [ X$DB40_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -123,11 +124,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db3"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
echo "DB_SUFFIX= +db3"
- DB3_SELECTED="YES"
+ BDB_SELECTED="3"
;;
DB40)
- if [ X$DB3_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -135,11 +136,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db4"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb4"
echo "DB_SUFFIX= +db40"
- DB40_SELECTED="YES"
+ BDB_SELECTED="40"
;;
DB41)
- if [ X$DB3_SELECTED != "X" -o X$DB40_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -147,7 +148,19 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db41"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb41"
echo "DB_SUFFIX= +db41"
- DB41_SELECTED="YES"
+ BDB_SELECTED="41"
+ ;;
+ DB42)
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
+ rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ exit 1
+ fi
+ echo "LIB_DEPENDS+= db-4.2.2:\${PORTSDIR}/databases/db42"
+ echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db42"
+ echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib/db42/ -ldb"
+ echo "DB_SUFFIX= +db42"
+ BDB_SELECTED="42"
;;
MySQL)
echo "USE_MYSQL=YES"
diff --git a/mail/postfix25/scripts/configure.postfix b/mail/postfix25/scripts/configure.postfix
index f8f3bddfe20..af8097c9059 100644
--- a/mail/postfix25/scripts/configure.postfix
+++ b/mail/postfix25/scripts/configure.postfix
@@ -1,5 +1,5 @@
#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix25/scripts/Attic/configure.postfix,v 1.45 2004-03-11 08:23:06 ale Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix25/scripts/Attic/configure.postfix,v 1.46 2004-03-29 16:13:44 pav Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@@ -29,6 +29,7 @@ IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \
DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \
DB40 "Berkeley DB4.0 (required if SASL also built with DB4.0)" "$status_DB40" \
DB41 "Berkeley DB4.1 (required if SASL also built with DB4.1)" "$status_DB41" \
+DB42 "Berkeley DB4.2 (required if SASL also built with DB4.2)" "$status_DB42" \
MySQL "MySQL map lookups (choose version with WITH_MYSQL_VER)" "$status_MySQL" \
PgSQL "PostgreSQL v7.4 map lookups" "$status_PgSQL" \
PgSQL73 "PostgreSQL v7.3 map lookups" "$status_PgSQL73" \
@@ -114,8 +115,8 @@ while [ "$1" ]; do
SUB_TLS=""
;;
DB3)
- if [ X$DB40_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -123,11 +124,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db3"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
echo "DB_SUFFIX= +db3"
- DB3_SELECTED="YES"
+ BDB_SELECTED="3"
;;
DB40)
- if [ X$DB3_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -135,11 +136,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db4"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb4"
echo "DB_SUFFIX= +db40"
- DB40_SELECTED="YES"
+ BDB_SELECTED="40"
;;
DB41)
- if [ X$DB3_SELECTED != "X" -o X$DB40_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -147,7 +148,19 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db41"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb41"
echo "DB_SUFFIX= +db41"
- DB41_SELECTED="YES"
+ BDB_SELECTED="41"
+ ;;
+ DB42)
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
+ rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ exit 1
+ fi
+ echo "LIB_DEPENDS+= db-4.2.2:\${PORTSDIR}/databases/db42"
+ echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db42"
+ echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib/db42/ -ldb"
+ echo "DB_SUFFIX= +db42"
+ BDB_SELECTED="42"
;;
MySQL)
echo "USE_MYSQL=YES"
diff --git a/mail/postfix26/scripts/configure.postfix b/mail/postfix26/scripts/configure.postfix
index 5448ac34bed..7eb910f9e93 100644
--- a/mail/postfix26/scripts/configure.postfix
+++ b/mail/postfix26/scripts/configure.postfix
@@ -1,5 +1,5 @@
#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix26/scripts/Attic/configure.postfix,v 1.45 2004-03-11 08:23:06 ale Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix26/scripts/Attic/configure.postfix,v 1.46 2004-03-29 16:13:44 pav Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@@ -29,6 +29,7 @@ IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \
DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \
DB40 "Berkeley DB4.0 (required if SASL also built with DB4.0)" "$status_DB40" \
DB41 "Berkeley DB4.1 (required if SASL also built with DB4.1)" "$status_DB41" \
+DB42 "Berkeley DB4.2 (required if SASL also built with DB4.2)" "$status_DB42" \
MySQL "MySQL map lookups (choose version with WITH_MYSQL_VER)" "$status_MySQL" \
PgSQL "PostgreSQL v7.4 map lookups" "$status_PgSQL" \
PgSQL73 "PostgreSQL v7.3 map lookups" "$status_PgSQL73" \
@@ -114,8 +115,8 @@ while [ "$1" ]; do
SUB_TLS=""
;;
DB3)
- if [ X$DB40_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -123,11 +124,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db3"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
echo "DB_SUFFIX= +db3"
- DB3_SELECTED="YES"
+ BDB_SELECTED="3"
;;
DB40)
- if [ X$DB3_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -135,11 +136,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db4"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb4"
echo "DB_SUFFIX= +db40"
- DB40_SELECTED="YES"
+ BDB_SELECTED="40"
;;
DB41)
- if [ X$DB3_SELECTED != "X" -o X$DB40_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -147,7 +148,19 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db41"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb41"
echo "DB_SUFFIX= +db41"
- DB41_SELECTED="YES"
+ BDB_SELECTED="41"
+ ;;
+ DB42)
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
+ rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ exit 1
+ fi
+ echo "LIB_DEPENDS+= db-4.2.2:\${PORTSDIR}/databases/db42"
+ echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db42"
+ echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib/db42/ -ldb"
+ echo "DB_SUFFIX= +db42"
+ BDB_SELECTED="42"
;;
MySQL)
echo "USE_MYSQL=YES"
diff --git a/mail/postfix27/scripts/configure.postfix b/mail/postfix27/scripts/configure.postfix
index e7c4015aac4..0f85d1516db 100644
--- a/mail/postfix27/scripts/configure.postfix
+++ b/mail/postfix27/scripts/configure.postfix
@@ -1,5 +1,5 @@
#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix27/scripts/Attic/configure.postfix,v 1.45 2004-03-11 08:23:06 ale Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix27/scripts/Attic/configure.postfix,v 1.46 2004-03-29 16:13:44 pav Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@@ -29,6 +29,7 @@ IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \
DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \
DB40 "Berkeley DB4.0 (required if SASL also built with DB4.0)" "$status_DB40" \
DB41 "Berkeley DB4.1 (required if SASL also built with DB4.1)" "$status_DB41" \
+DB42 "Berkeley DB4.2 (required if SASL also built with DB4.2)" "$status_DB42" \
MySQL "MySQL map lookups (choose version with WITH_MYSQL_VER)" "$status_MySQL" \
PgSQL "PostgreSQL v7.4 map lookups" "$status_PgSQL" \
PgSQL73 "PostgreSQL v7.3 map lookups" "$status_PgSQL73" \
@@ -114,8 +115,8 @@ while [ "$1" ]; do
SUB_TLS=""
;;
DB3)
- if [ X$DB40_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -123,11 +124,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db3"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
echo "DB_SUFFIX= +db3"
- DB3_SELECTED="YES"
+ BDB_SELECTED="3"
;;
DB40)
- if [ X$DB3_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -135,11 +136,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db4"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb4"
echo "DB_SUFFIX= +db40"
- DB40_SELECTED="YES"
+ BDB_SELECTED="40"
;;
DB41)
- if [ X$DB3_SELECTED != "X" -o X$DB40_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -147,7 +148,19 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db41"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb41"
echo "DB_SUFFIX= +db41"
- DB41_SELECTED="YES"
+ BDB_SELECTED="41"
+ ;;
+ DB42)
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
+ rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ exit 1
+ fi
+ echo "LIB_DEPENDS+= db-4.2.2:\${PORTSDIR}/databases/db42"
+ echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db42"
+ echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib/db42/ -ldb"
+ echo "DB_SUFFIX= +db42"
+ BDB_SELECTED="42"
;;
MySQL)
echo "USE_MYSQL=YES"
diff --git a/mail/postfix28/scripts/configure.postfix b/mail/postfix28/scripts/configure.postfix
index 71afdb317dc..28ea4544074 100644
--- a/mail/postfix28/scripts/configure.postfix
+++ b/mail/postfix28/scripts/configure.postfix
@@ -1,5 +1,5 @@
#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix28/scripts/Attic/configure.postfix,v 1.45 2004-03-11 08:23:06 ale Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix28/scripts/Attic/configure.postfix,v 1.46 2004-03-29 16:13:44 pav Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@@ -29,6 +29,7 @@ IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \
DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \
DB40 "Berkeley DB4.0 (required if SASL also built with DB4.0)" "$status_DB40" \
DB41 "Berkeley DB4.1 (required if SASL also built with DB4.1)" "$status_DB41" \
+DB42 "Berkeley DB4.2 (required if SASL also built with DB4.2)" "$status_DB42" \
MySQL "MySQL map lookups (choose version with WITH_MYSQL_VER)" "$status_MySQL" \
PgSQL "PostgreSQL v7.4 map lookups" "$status_PgSQL" \
PgSQL73 "PostgreSQL v7.3 map lookups" "$status_PgSQL73" \
@@ -114,8 +115,8 @@ while [ "$1" ]; do
SUB_TLS=""
;;
DB3)
- if [ X$DB40_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -123,11 +124,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db3"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
echo "DB_SUFFIX= +db3"
- DB3_SELECTED="YES"
+ BDB_SELECTED="3"
;;
DB40)
- if [ X$DB3_SELECTED != "X" -o X$DB41_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -135,11 +136,11 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db4"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb4"
echo "DB_SUFFIX= +db40"
- DB40_SELECTED="YES"
+ BDB_SELECTED="40"
;;
DB41)
- if [ X$DB3_SELECTED != "X" -o X$DB40_SELECTED != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40 and DB41 options." 5 60 > /dev/stderr
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
exit 1
fi
@@ -147,7 +148,19 @@ while [ "$1" ]; do
echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db41"
echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb41"
echo "DB_SUFFIX= +db41"
- DB41_SELECTED="YES"
+ BDB_SELECTED="41"
+ ;;
+ DB42)
+ if [ "X$BDB_SELECTED" != "X" ]; then
+ /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41 and DB42 options." 5 60 > /dev/stderr
+ rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
+ exit 1
+ fi
+ echo "LIB_DEPENDS+= db-4.2.2:\${PORTSDIR}/databases/db42"
+ echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db42"
+ echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib/db42/ -ldb"
+ echo "DB_SUFFIX= +db42"
+ BDB_SELECTED="42"
;;
MySQL)
echo "USE_MYSQL=YES"