summaryrefslogtreecommitdiff
path: root/mail/postfix23/scripts/configure.postfix
diff options
context:
space:
mode:
Diffstat (limited to 'mail/postfix23/scripts/configure.postfix')
-rw-r--r--mail/postfix23/scripts/configure.postfix155
1 files changed, 0 insertions, 155 deletions
diff --git a/mail/postfix23/scripts/configure.postfix b/mail/postfix23/scripts/configure.postfix
deleted file mode 100644
index 1c23475dafe9..000000000000
--- a/mail/postfix23/scripts/configure.postfix
+++ /dev/null
@@ -1,155 +0,0 @@
-#!/bin/sh
-# $FreeBSD: /tmp/pcvs/ports/mail/postfix23/scripts/Attic/configure.postfix,v 1.22 2002-05-14 19:38:53 dwcjr Exp $
-
-if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then
- exit
-fi
-
-tempfile=`mktemp -t checklist`
-
-if [ "${BATCH}" = "yes" ]; then
- set \"PCRE\"
-else
- /usr/bin/dialog --title "Postfix configuration options" --clear \
- --checklist "\n\
-Please select desired options:" -1 -1 16 \
-PCRE "Perl Compatible Regular Expressions" OFF \
-SASL "Cyrus SASL (Simple Authentication and Security Layer)" OFF \
-DB3 "Berkeley DB3 (required if SASL also built with DB3)" OFF \
-MySQL "MySQL map lookups" OFF \
-PgSQL "PostgreSQL map lookups" OFF \
-OpenLDAP "OpenLDAP map lookups" OFF \
-Test "SMTP/LMTP test server and generator" OFF \
-TLS "Secure Sockets Layer and Transport Layer Security" OFF \
-IPv6 "IPv6 support (not KAME official)" OFF \
-2> $tempfile
-
- retval=$?
-
- if [ -s $tempfile ]; then
- set `cat $tempfile`
- fi
- rm -f $tempfile
-
- 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}"
-
-SUB_TLS="@comment "
-SUB_TEST="@comment "
-
-while [ "$1" ]; do
- case $1 in
- \"PCRE\")
- echo "LIB_DEPENDS+= pcre.0:\${PORTSDIR}/devel/pcre"
- echo "POSTFIX_CCARGS+= -DHAS_PCRE -I\${LOCALBASE}/include"
- echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lpcre"
- echo "PCRE_SUFFIX= +pcre"
- SUB_PCRE=""
- ;;
- \"SASL\")
- echo "LIB_DEPENDS+= sasl.8:\${PORTSDIR}/security/cyrus-sasl"
- echo "POSTFIX_CCARGS+= -DUSE_SASL_AUTH -I\${LOCALBASE}/include"
- echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lsasl -lpam -lcrypt"
- echo "SASL_SUFFIX= +sasl"
- if [ -f ${PREFIX}/lib/libsasl.a ]; then
- if nm ${PREFIX}/lib/libsasl.a | grep -wq "mysql_verify_password"; then
- echo "POSTFIX_CCARGS+= -DHAS_MYSQL -I\${LOCALBASE}/include/mysql"
- echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz"
- fi
- else
- echo "POSTFIX_CCARGS+= -DHAS_MYSQL -I\${LOCALBASE}/include/mysql"
- echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz"
- fi
- echo ".if exists(/usr/lib/libkrb.a)"
- echo "POSTFIX_AUXLIBS+= -lkrb -ldes -lcom_err"
- echo ".endif"
- SUB_SASL=""
- ;;
- \"TLS\")
- echo "MAN8+= tlsmgr.8"
- echo "POSTFIX_CCARGS+= -DHAS_SSL -I/usr/include/openssl"
- echo "POSTFIX_AUXLIBS+= -lssl -lcrypto"
- echo "DISTFILES+= \${DISTNAME}.tar.gz pfixtls-0.8.9-1.1.9-0.9.6d.tar.gz"
- echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.9-1.1.9-0.9.6d/pfixtls.diff"
- echo "PATCH_STRIP= -p1"
- echo "TLS_SUFFIX= +tls"
- SUB_TLS=""
- ;;
- \"DB3\")
- echo "LIB_DEPENDS+= db3.2:\${PORTSDIR}/databases/db3"
- echo "POSTFIX_CCARGS+= -I\${LOCALBASE}/include/db3"
- echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -ldb3"
- echo "DB3_SUFFIX= +db3"
- ;;
- \"MySQL\")
- echo "BUILD_DEPENDS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a:\${PORTSDIR}/databases/mysql323-client"
- echo "POSTFIX_CCARGS+= -DHAS_MYSQL -I\${LOCALBASE}/include/mysql"
- echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz"
- echo "MYSQL_SUFFIX= +mysql"
- ;;
- \"PgSQL\")
- echo "LIB_DEPENDS+= pq.2:\${PORTSDIR}/databases/postgresql7"
- echo "POSTFIX_CCARGS+= -DHAS_PGSQL -I\${LOCALBASE}/include -I\${LOCALBASE}/pgsql/include"
- echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -L\${LOCALBASE}/pgsql/lib -lpq -lcrypt"
- echo "PGSQL_SUFFIX= +pgsql"
- echo "PATCH_SITES+= http://mat.cc/postfix/"
- echo "PATCHFILES+= postfix-pg.postfix-1.1.8.patch"
- echo "PATCH_DIST_STRIP= -p1"
- ;;
- \"OpenLDAP\")
- echo "BUILD_DEPENDS+= \${LOCALBASE}/lib/libldap.a:\${PORTSDIR}/net/openldap"
- echo "POSTFIX_CCARGS+= -DHAS_LDAP -I\${LOCALBASE}/include"
- echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/libldap.a \${PREFIX}/lib/liblber.a"
- echo "OPENLDAP_SUFFIX= +openldap"
- ;;
- \"Test\")
- echo "BIN1= smtp-sink smtp-source"
- SUB_TEST=""
- ;;
- \"IPv6\")
- if [ `uname -m` != "i386" ]; then
- /usr/bin/dialog --msgbox "IPv6 patch currently only supported on i386!" 5 60 > /dev/stderr
- rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- exit 1
- fi
- if [ X$SUB_TLS = "X" ]; then
- /usr/bin/dialog --msgbox "IPv6 and TLS patch cannot be used simultaneously!" 5 60 > /dev/stderr
- rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- exit 1
- fi
- echo "PATCH_SITES+= http://www.cyber-magic.org/~taka/misc/"
- echo "PATCHFILES+= postfix-1.1.9+ipv6.patch.gz"
- echo "PATCH_DIST_STRIP= -p1"
- echo "IPv6_SUFFIX= +ipv6"
- echo ""
- ;;
- *)
- echo "Invalid option(s): $*" > /dev/stderr
- rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc
- exit 1
- ;;
- esac
- shift
-done
-
-echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\""
-echo "PLIST_SUB+= SUB_TEST=\"${SUB_TEST}\""
-
-# for some reason, if we alter the pkg name this way, the first build (where
-# we ask the configure questions) doesn't pick up the extensions, but
-# any subsequent build will. so "make; make install" will build twice.
-# don't do this for now.
-#echo "PKGNAMESUFFIX= \${PCRE_SUFFIX}\${SASL_SUFFIX}\${DB3_SUFFIX}\${MYSQL_SUFFIX}\${PGSQL_SUFFIX}\${OPENLDAP_SUFFIX}\${TLS_SUFFIX}\${IPv6_SUFFIX}"