1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00

Detect if sasl is compiled with mysql

Compile mysql support static because it won't startup on boot if you don't

PR:		27597
Submitted by:	maintainer
This commit is contained in:
Ying-Chieh Liao 2001-05-29 13:36:22 +00:00
parent 57da95e32a
commit 41f2308785
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=43253
2 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= postfix
PORTVERSION= 20010502
PORTREVISION= 1
CATEGORIES= mail ipv6
MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/ \
ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \
@ -62,7 +63,8 @@ MAKEFILEFLAGS+= OPT="${CFLAGS}"
SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \
PREFIX="${PREFIX}" \
TOUCH="${TOUCH}" \
MKDIR="${MKDIR}"
MKDIR="${MKDIR}" \
PREFIX="${PREFIX}"
pre-fetch:
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postfix

View File

@ -68,6 +68,10 @@ 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
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"