aboutsummaryrefslogtreecommitdiff
path: root/mail/postfix-current
diff options
context:
space:
mode:
authorDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2001-06-17 21:54:01 +0000
committerDavid W. Chapman Jr. <dwcjr@FreeBSD.org>2001-06-17 21:54:01 +0000
commitffa13a3a6b201f4398c74c4aa1bc7f8d3c7e2eb5 (patch)
tree913d70755e1b59b830f05bb558e29ecdecb1696f /mail/postfix-current
parentbc7ca8c4041116efeaad17fe103a0d0a3cef236a (diff)
downloadports-ffa13a3a6b201f4398c74c4aa1bc7f8d3c7e2eb5.tar.gz
ports-ffa13a3a6b201f4398c74c4aa1bc7f8d3c7e2eb5.zip
Notes
Diffstat (limited to 'mail/postfix-current')
-rw-r--r--mail/postfix-current/scripts/configure.postfix7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/postfix-current/scripts/configure.postfix b/mail/postfix-current/scripts/configure.postfix
index 91d132027325..7f31ece6d5f6 100644
--- a/mail/postfix-current/scripts/configure.postfix
+++ b/mail/postfix-current/scripts/configure.postfix
@@ -68,7 +68,12 @@ while [ "$1" ]; do
echo "BUILD_DEPENDS+= \${LOCALBASE}/lib/libsasl.a:\${PORTSDIR}/security/cyrus-sasl"
echo "POSTFIX_CCARGS+= -DUSE_SASL_AUTH -I\${LOCALBASE}/include"
echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/libsasl.a -lpam -lcrypt"
- if [ `strings ${PREFIX}/lib/libsasl.a | grep mysql_verify_password` = "mysql_verify_password" ]; then
+ 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