aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix28
diff options
context:
space:
mode:
authormnag <mnag@FreeBSD.org>2006-04-22 22:04:52 +0800
committermnag <mnag@FreeBSD.org>2006-04-22 22:04:52 +0800
commit0d71064f274077f553118a41f9229312aed91d4b (patch)
tree1c4b12a22f9ee217f535324b998c7b0e106e34b9 /mail/postfix28
parentc5a9ca666b051f4e521e854a373a24a9172dfa23 (diff)
downloadfreebsd-ports-gnome-0d71064f274077f553118a41f9229312aed91d4b.tar.gz
freebsd-ports-gnome-0d71064f274077f553118a41f9229312aed91d4b.tar.zst
freebsd-ports-gnome-0d71064f274077f553118a41f9229312aed91d4b.zip
- Update to use USE_BDB flag
PR: 96048 Submitted by: maintainer
Diffstat (limited to 'mail/postfix28')
-rw-r--r--mail/postfix28/Makefile2
-rw-r--r--mail/postfix28/scripts/configure.postfix72
2 files changed, 8 insertions, 66 deletions
diff --git a/mail/postfix28/Makefile b/mail/postfix28/Makefile
index 329a371d45ac..7152cb281f74 100644
--- a/mail/postfix28/Makefile
+++ b/mail/postfix28/Makefile
@@ -7,7 +7,7 @@
# To pre-select options in batch mode, run make like this:
#
-# make -DBATCH POSTFIX_OPTIONS="DB43 TLS"
+# make -DBATCH POSTFIX_OPTIONS="BDB TLS"
#
# the options are the same names as in the scripts/configure.postfix file.
# POSTFIX_OPTIONS can be set in /etc/make.conf also.
diff --git a/mail/postfix28/scripts/configure.postfix b/mail/postfix28/scripts/configure.postfix
index 34ad37dfb61c..179e490e9230 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.74 2006-04-18 13:24:14 mnag Exp $
+# $FreeBSD: /tmp/pcvs/ports/mail/postfix28/scripts/Attic/configure.postfix,v 1.75 2006-04-22 14:04:52 mnag Exp $
if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
exit
@@ -27,11 +27,7 @@ SASLKRB5 "If your SASL requires Kerberos5 select this option" "$status_SASLKRB5"
SASLKRB5MIT "If your SASL requires MIT Kerberos5 select this option" "$status_SASLKRB5MIT" \
SPF "SPF support" "$status_SPF" \
TLS "SSL and TLS" "$status_TLS" \
-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" \
-DB43 "Berkeley DB4.3 (required if SASL also built with DB4.3)" "$status_DB43" \
+BDB "Berkeley DB (select version using WITH_BDB_VER variable)" "$status_BDB" \
MySQL "MySQL map lookups (choose version with WITH_MYSQL_VER)" "$status_MySQL" \
PgSQL "PostgreSQL map lookups (choose with DEFAULT_PGSQL_VER)" "$status_PgSQL" \
OpenLDAP "OpenLDAP map lookups (choose ver. with WITH_OPENLDAP_VER)" "$status_OpenLDAP" \
@@ -124,65 +120,11 @@ while [ "$1" ]; do
echo "POSTFIX_AUXLIBS+= -L\${OPENSSLLIB} \${LDFLAGS} -lssl -lcrypto"
echo "TLS_SUFFIX= +tls"
;;
- DB3)
- if [ "X$BDB_SELECTED" != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41, DB42 and DB43 options." 5 60 > /dev/stderr
- rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- exit 1
- fi
- echo "LIB_DEPENDS+= db3.3:\${PORTSDIR}/databases/db3"
- echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db3"
- echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
- echo "DB_SUFFIX= +db3"
- BDB_SELECTED="3"
- ;;
- DB40)
- if [ "X$BDB_SELECTED" != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41, DB42 and DB43 options." 5 60 > /dev/stderr
- rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- exit 1
- fi
- echo "LIB_DEPENDS+= db4.0:\${PORTSDIR}/databases/db4"
- echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db4"
- echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb4"
- echo "DB_SUFFIX= +db40"
- BDB_SELECTED="40"
- ;;
- DB41)
- if [ "X$BDB_SELECTED" != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41, DB42 and DB43 options." 5 60 > /dev/stderr
- rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- exit 1
- fi
- echo "LIB_DEPENDS+= db41.1:\${PORTSDIR}/databases/db41"
- echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db41"
- echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb41"
- echo "DB_SUFFIX= +db41"
- BDB_SELECTED="41"
- ;;
- DB42)
- if [ "X$BDB_SELECTED" != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41, DB42 and DB43 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"
- ;;
- DB43)
- if [ "X$BDB_SELECTED" != "X" ]; then
- /usr/bin/dialog --msgbox "Select exactly one of the DB3, DB40, DB41, DB42 and DB43 options." 5 60 > /dev/stderr
- rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- exit 1
- fi
- echo "LIB_DEPENDS+= db-4.3.0:\${PORTSDIR}/databases/db43"
- echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db43"
- echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib/db43/ -ldb"
- echo "DB_SUFFIX= +db43"
- BDB_SELECTED="43"
+ BDB)
+ echo "USE_BDB= yes"
+ echo "POSTFIX_CCARGS+= -I\${BDB_INCLUDE_DIR}"
+ echo "POSTFIX_AUXLIBS+= -L\${BDB_LIB_DIR} -l\${BDB_LIB_NAME}"
+ echo "DB_SUFFIX= +${BDB_LIB_NAME}"
;;
MySQL)
echo "USE_MYSQL=YES"