Date: Thu, 1 Sep 2005 18:23:52 -0300 (BRT) From: Marcus Grando <marcus@corp.grupos.com.br> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/85591: Update port: mail/postfix-current remove last script file Message-ID: <200509012123.j81LNq7j000974@marcus.grupos.com.br> Resent-Message-ID: <200509012130.j81LUKwZ087687@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 85591 >Category: ports >Synopsis: Update port: mail/postfix-current remove last script file >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Thu Sep 01 21:30:19 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Marcus Grando >Release: FreeBSD 6.0-BETA3 i386 >Organization: Grupos Internet S/A >Environment: System: FreeBSD marcus.grupos.com.br 6.0-BETA3 FreeBSD 6.0-BETA3 #33: Wed Aug 31 12:46:26 BRT 2005 root@marcus.grupos.com.br:/usr/obj/usr/src/sys/MARCUS i386 >Description: - Now, postfix-current don't use script/* files Removed scripts/configure.postfix scripts/ * Add in ports/UPDATING $date: AFFECTS: users of mail/postfix-current AUTHOR: marcus@corp.grupos.com.br Now mail/postfix-current use OPTIONS menu instead of POSTFIX_OPTIONS batch. Please run "make config" and select your options in menu. >How-To-Repeat: >Fix: --- postfix-current.patch begins here --- diff -ruN postfix-current.orig/Makefile postfix-current/Makefile --- postfix-current.orig/Makefile Tue Aug 30 14:30:41 2005 +++ postfix-current/Makefile Thu Sep 1 17:12:14 2005 @@ -5,13 +5,6 @@ # $FreeBSD: ports/mail/postfix-current/Makefile,v 1.130 2005/08/30 17:30:41 garga Exp $ # -# To pre-select options in batch mode, run make like this: -# -# make -DBATCH POSTFIX_OPTIONS="DB3 TLS" -# -# the options are the same names as in the scripts/configure.postfix file. -# POSTFIX_OPTIONS can be set in /etc/make.conf also. - # NOTE: PCRE is enabled by default unless you specifically disable it. PORTNAME= postfix @@ -19,13 +12,10 @@ PORTEPOCH= 2 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/experimental/ \ - ftp://ftp.aet.tu-cottbus.de/pub/postfix_tls/%SUBDIR%/ \ + ftp://postfix.mirrors.pair.com/experimental/ \ ftp://ftp.tux.org/pub/net/postfix/experimental/ \ - ftp://ftp.utoronto.ca/mirror/packages/postfix/experimental/ \ - ftp://ftp.samurai.com/pub/postfix/experimental/ \ - http://people.FreeBSD.org/~seanc/ports/ \ - ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/mail/postfix/experimental/&,} -MASTER_SITE_SUBDIR= . old related/postfix + http://mirrors.rootservices.net/postfix/experimental/ \ + ftp://ftp.samurai.com/pub/postfix/experimental/ DISTNAME= postfix-${DISTVERSION} DIST_SUBDIR= ${PORTNAME} @@ -34,10 +24,29 @@ CONFLICTS= courier-0.* postfix-1.* postfix-2.0.* postfix-2.1.* postfix-2.2.* \ sendmail-8.* sendmail-*-8.* smail-3.* zmailer-2.* + NO_LATEST_LINK= yes USE_SUBMAKE= yes USE_REINPLACE= yes +OPTIONS= PCRE "Perl Compatible Regular Expressions" on \ + SASL "Cyrus SASLv1 (Simple Auth. and Sec. Layer)" off \ + SASL2 "Cyrus SASLv2 (Simple Auth. and Sec. Layer)" off \ + SASLKRB "If your SASL requires Kerberos select this option" off \ + SASLKRB5 "If your SASL requires Kerberos5 select this option" off \ + TLS "Enable SSL and TLS support" off \ + DB3 "Berkeley DB3 (required if SASL built with DB3)" off \ + DB40 "Berkeley DB4.0 (required if SASL built with DB4.0)" off \ + DB41 "Berkeley DB4.1 (required if SASL built with DB4.1)" off \ + DB42 "Berkeley DB4.2 (required if SASL built with DB4.2)" off \ + DB43 "Berkeley DB4.3 (required if SASL built with DB4.3)" off \ + MYSQL "MySQL maps (choose version with WITH_MYSQL_VER)" off \ + PGSQL "PostgreSQL maps (choose with DEFAULT_PGSQL_VER)" off \ + OPENLDAP "OpenLDAP maps (choose ver. with WITH_OPENLDAP_VER)" off \ + CDB "CDB maps lookups" off \ + NIS "NIS maps lookups" off \ + TEST "SMTP/LMTP test server and generator" off + MAN1= postalias.1 postcat.1 postconf.1 postdrop.1 postfix.1 postkick.1 \ postlock.1 postlog.1 postmap.1 postqueue.1 postsuper.1 sendmail.1 @@ -71,23 +80,188 @@ MKDIR="${MKDIR}" \ POSTFIX_OPTIONS="${POSTFIX_OPTIONS}" -pre-fetch: - @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.postfix +.include <bsd.port.pre.mk> -.if exists(${WRKDIRPREFIX}${.CURDIR}/Makefile.inc) -.include "${WRKDIRPREFIX}${.CURDIR}/Makefile.inc" +.if defined(WITH_PCRE) +LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre +POSTFIX_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include +POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lpcre +.else +POSTFIX_CCARGS+= -DNO_PCRE .endif -.if defined(WITHOUT_PCRE) -POSTFIX_CCARGS+= -DNO_PCRE +.if defined(WITH_SASL) +.if defined(WITH_SASL2) +BROKEN= "Select only one SASL version" +.endif +LIB_DEPENDS+= sasl.8:${PORTSDIR}/security/cyrus-sasl +POSTFIX_CCARGS+= -DUSE_SASL_AUTH -I${LOCALBASE}/include -I${LOCALBASE}/include/sasl1 +POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lsasl -lpam -lcrypt +.endif + +.if defined(WITH_SASL2) +.if defined(WITH_SASL) +BROKEN= "Select only one SASL version" +.endif +LIB_DEPENDS+= sasl2.2:${PORTSDIR}/security/cyrus-sasl2 +POSTFIX_CCARGS+= -DUSE_SASL_AUTH -I${LOCALBASE}/include -I${LOCALBASE}/include/sasl +POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lsasl2 -lpam -lcrypt +.endif + +.if defined(WITH_SASLKRB) +.if defined(WITH_SASLKRB5) +BROKEN= "Select only one SASL Kerberos option" +.endif +POSTFIX_AUXLIBS+= -lkrb -lcrypto -lcom_err +.endif + +.if defined(WITH_SASLKRB5) +.if defined(WITH_SASLKRB) +BROKEN= "Select only one SASL Kerberos option" +.endif +POSTFIX_AUXLIBS+= -lkrb5 -lcrypto -lcrypt -lcom_err -lasn1 -lroken +.endif + +.if defined(WITH_TLS) +.include "${PORTSDIR}/Mk/bsd.openssl.mk" +POSTFIX_CCARGS+= -DUSE_TLS -I${OPENSSLINC} +POSTFIX_AUXLIBS+= -L${OPENSSLLIB} -lssl -lcrypto +.endif + +.if defined(WITH_DB3) +.if defined(WITH_DB40) || defined(WITH_DB41) || defined(WITH_DB42) || defined(WITH_DB43) +BROKEN= "Select only one Berkeley DB version" +.endif +LIB_DEPENDS+= db3.3:${PORTSDIR}/databases/db3 +POSTFIX_CCARGS+= -I${LOCALBASE}/include/db3 +POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -ldb3 +.endif + +.if defined(WITH_DB40) +.if defined(WITH_DB3) || defined(WITH_DB41) || defined(WITH_DB42) || defined(WITH_DB43) +BROKEN= "Select only one Berkeley DB version" +.endif +LIB_DEPENDS+= db4.0:${PORTSDIR}/databases/db4 +POSTFIX_CCARGS+= -I${LOCALBASE}/include/db4 +POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -ldb4 +.endif + +.if defined(WITH_DB40) +.if defined(WITH_DB3) || defined(WITH_DB41) || defined(WITH_DB42) || defined(WITH_DB43) +BROKEN= "Select only one Berkeley DB version" +.endif +LIB_DEPENDS+= db4.0:${PORTSDIR}/databases/db4 +POSTFIX_CCARGS+= -I${LOCALBASE}/include/db4 +POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -ldb4 +.endif + +.if defined(WITH_DB41) +.if defined(WITH_DB3) || defined(WITH_DB40) || defined(WITH_DB42) || defined(WITH_DB43) +BROKEN= "Select only one Berkeley DB version" +.endif +LIB_DEPENDS+= db41.1:${PORTSDIR}/databases/db41 +POSTFIX_CCARGS+= -I${LOCALBASE}/include/db41 +POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -ldb41 +.endif + +.if defined(WITH_DB42) +.if defined(WITH_DB3) || defined(WITH_DB40) || defined(WITH_DB41) || defined(WITH_DB43) +BROKEN= "Select only one Berkeley DB version" +.endif +LIB_DEPENDS+= db-4.2.2:${PORTSDIR}/databases/db42 +POSTFIX_CCARGS+= -I${LOCALBASE}/include/db42 +POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib/db42/ -ldb +.endif + +.if defined(WITH_DB43) +.if defined(WITH_DB3) || defined(WITH_DB40) || defined(WITH_DB41) || defined(WITH_DB42) +BROKEN= "Select only one Berkeley DB version" +.endif +LIB_DEPENDS+= db-4.3.0:${PORTSDIR}/databases/db43 +POSTFIX_CCARGS+= -I${LOCALBASE}/include/db43 +POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib/db43/ -ldb +.endif + +.if defined(WITH_MYSQL) +USE_MYSQL=YES +POSTFIX_CCARGS+= -DHAS_MYSQL -I${LOCALBASE}/include/mysql +POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib/mysql -lmysqlclient -lz -lcrypt -lm +.endif + +.if defined(WITH_PGSQL) +USE_PGSQL=YES +POSTFIX_CCARGS+= -DHAS_PGSQL -I${LOCALBASE}/include -I${LOCALBASE}/pgsql/include +POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -L${LOCALBASE}/pgsql/lib -lpq -lcrypt +.endif + +.if defined(WITH_OPENLDAP) +USE_OPENLDAP=YES +POSTFIX_CCARGS+= -DHAS_LDAP -I${LOCALBASE}/include +POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lldap -llber +.endif + +.if defined(WITH_CDB) +BUILD_DEPENDS+= ${LOCALBASE}/lib/libcdb.a:${PORTSDIR}/databases/tinycdb +POSTFIX_CCARGS+= -DHAS_CDB -I${LOCALBASE}/include +POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lcdb +.endif + +.if defined(WITH_NIS) +POSTFIX_CCARGS+= -DHAS_NIS +.endif + +.if defined(WITH_TEST) +BINTEST= smtp-sink smtp-source qmqp-source +PLIST_SUB+= SUB_TEST="" .else -LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre -POSTFIX_CCARGS+= -DHAS_PCRE -I${LOCALBASE}/include -POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -lpcre +PLIST_SUB+= SUB_TEST="@comment " +.endif + +.if defined(NOPORTDOCS) +READMEDIR=no +.else +READMEDIR=${PREFIX}/share/doc/postfix .endif pre-patch: - @${ECHO} "<body>See <A HREF="header_checks.5.html">header_checks.5.html</A></BODY>" > ${WRKSRC}/html/body_checks.5.html +. if defined(POSTFIX_OPTIONS) + @${ECHO_MSG} + @${ECHO_MSG} + @${ECHO_MSG} + @${ECHO_MSG} "***** ALERT *****" + @${ECHO_MSG} "Now ${PORTNAME} use OPTIONS, consider use:" + @${ECHO_MSG} "# make config" + @${ECHO_MSG} + @${ECHO_MSG} + @${ECHO_MSG} + @sleep 10 +. endif + +. if defined(WITH_SASL) && !defined(WITH_MYSQL) && exists(${LOCALBASE}/lib/libsasl.a) + @if /usr/bin/nm ${LOCALBASE}/lib/libsasl.a | ${GREP} -wq "mysql_init"; then \ + ${ECHO_MSG}; \ + ${ECHO_MSG} "Your SASL library it's compiled with MYSQL"; \ + ${ECHO_MSG} "If you use MYSQL in ${PORTNAME} consider CTRL+C and"; \ + ${ECHO_MSG} "select MYSQL OPTION in config menu."; \ + ${ECHO_MSG} "# make clean config"; \ + ${ECHO_MSG}; \ + sleep 5; \ + fi +. endif +. if defined(WITH_SASL2) && !defined(WITH_MYSQL) && exists(${LOCALBASE}/lib/libsasl2.a) + @if /usr/bin/nm ${LOCALBASE}/lib/libsasl2.a | ${GREP} -wq "mysql_init"; then \ + ${ECHO_MSG}; \ + ${ECHO_MSG} "Your SASL2 library it's compiled with MYSQL"; \ + ${ECHO_MSG} "If you use MYSQL in ${PORTNAME} consider CTRL+C and"; \ + ${ECHO_MSG} "select MYSQL OPTION in config menu."; \ + ${ECHO_MSG} "# make clean config"; \ + ${ECHO_MSG}; \ + sleep 5; \ + fi +. endif + + @${ECHO} "<HTML><BODY>See <A HREF="header_checks.5.html">header_checks.5.html</A></BODY></HTML>" \ + > ${WRKSRC}/html/body_checks.5.html @for f in `${FIND} -P ${WRKSRC}/man -type f`; do \ ${REINPLACE_CMD} -e "s|/etc/postfix|${PREFIX}/etc/postfix|g" $${f}; \ done @@ -99,8 +273,11 @@ done post-patch: +# All files modified with ${FILESDIR}/patch-* to use !!PREFIX!! need REINPLACE. Put below. @${REINPLACE_CMD} -e "s,!!PREFIX!!,${PREFIX},g" \ ${WRKSRC}/conf/main.cf ${WRKSRC}/src/global/mail_params.h + +do-configure: (cd ${WRKSRC} && ${MAKE} -f Makefile.init makefiles ${MAKEFILEFLAGS} \ CCARGS="${POSTFIX_CCARGS}" AUXLIBS="${POSTFIX_AUXLIBS}" && \ ${ECHO} "all: default" >> Makefile) @@ -108,12 +285,6 @@ pre-install: @${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL -.if defined(NOPORTDOCS) -READMEDIR=no -.else -READMEDIR=${PREFIX}/share/doc/postfix -.endif - do-install: cd ${WRKSRC}; ${SH} postfix-install -non-interactive install_root=/ tempdir=/tmp \ config_directory=${PREFIX}/etc/postfix \ @@ -129,32 +300,26 @@ sample_directory=${PREFIX}/etc/postfix \ readme_directory=${READMEDIR} + @${INSTALL_SCRIPT} ${WRKSRC}/auxiliary/rmail/rmail ${PREFIX}/bin/rmail + +. for f in ${BINTEST} + @${INSTALL_PROGRAM} ${WRKSRC}/bin/${f} ${PREFIX}/sbin +. endfor + @${MKDIR} ${PREFIX}/etc/postfix/dist -.for f in ${CONF1} - ${INSTALL_DATA} ${WRKSRC}/conf/${f} ${PREFIX}/etc/postfix/dist -.endfor - - @${INSTALL_SCRIPT} \ - ${WRKSRC}/auxiliary/rmail/rmail \ - ${PREFIX}/bin/rmail - -# optional TEST binaries -.for f in ${BIN1} - @${INSTALL_PROGRAM} ${WRKSRC}/bin/${f} ${PREFIX}/sbin -.endfor - -.if !defined(NOPORTDOCS) - @${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} -m 555 ${DOCSDIR} - @cd ${WRKSRC}/html && ${INSTALL_DATA} *.html *.jpg *.png ${DOCSDIR} && \ - ${ECHO_MSG} "Installed HTML documentation in ${DOCSDIR}" -.endif +. for f in ${CONF1} + ${INSTALL_DATA} ${WRKSRC}/conf/${f} ${PREFIX}/etc/postfix/dist +. endfor + +. if !defined(NOPORTDOCS) + @${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} -m 555 ${DOCSDIR} + @cd ${WRKSRC}/html && ${INSTALL_DATA} *.html *.jpg *.png ${DOCSDIR} && \ + ${ECHO_MSG} "Installed HTML documentation in ${DOCSDIR}" +. endif post-install: @${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL -# need to fixup ${PREFIX}/etc/postfix/postfix-files to indicate compressed -# man pages, since the ports software compresses them after this step, and -# if we run etc/postfix/post-install again during package installation, -# it will complain about missing files. +# Fix compressed man pages @${REINPLACE_CMD} -E -e "s|(man[158]/.*.[158]):|\1.gz:|g" ${PREFIX}/etc/postfix/postfix-files @${RM} -f ${PREFIX}/etc/postfix/postfix-files.bak @${CAT} ${PKGMESSAGE} @@ -162,4 +327,4 @@ post-clean: @${RM} -f ${WRKDIRPREFIX}${.CURDIR}/Makefile.inc -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff -ruN postfix-current.orig/scripts/configure.postfix postfix-current/scripts/configure.postfix --- postfix-current.orig/scripts/configure.postfix Tue Aug 30 14:30:41 2005 +++ postfix-current/scripts/configure.postfix Wed Dec 31 21:00:00 1969 @@ -1,241 +0,0 @@ -#!/bin/sh -# $FreeBSD: ports/mail/postfix-current/scripts/configure.postfix,v 1.61 2005/08/30 17:30:41 garga Exp $ - -if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then - exit -fi - -tempfile=`/usr/bin/mktemp -t checklist` - -if [ "${POSTFIX_OPTIONS}" ]; then - set ${POSTFIX_OPTIONS} -fi - -for i; do - eval status_$i=ON -done - -if [ -z "${BATCH}" ]; then - /usr/bin/dialog --title "Postfix configuration options" --clear \ - --checklist "\n\ -Please select desired options:" -1 -1 16 \ -NOPCRE "DISABLE Perl Compatible Regular Expressions" "$status_NOPCRE" \ -SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ -SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ -SASLKRB "If your SASL requires Kerberos select this option" "$status_SASLKRB" \ -SASLKRB5 "If your SASL requires Kerberos5 select this option" "$status_SASLKRB5" \ -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" \ -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" \ -CDB "CDB map lookups" "$status_CDB" \ -NIS "NIS map lookups" "$status_NIS" \ -Test "SMTP/LMTP test server and generator" "$status_Test" \ -2> $tempfile - - retval=$? - - if [ -s $tempfile ]; then - set `sed 's/"//g' $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_TEST="@comment " - -while [ "$1" ]; do - case $1 in - NOPCRE) - echo "WITHOUT_PCRE= yes" - echo "NOPCRE_SUFFIX= +nopcre" - SUB_NOPCRE="" - ;; - SASL) - echo "LIB_DEPENDS+= sasl.8:\${PORTSDIR}/security/cyrus-sasl" - echo "POSTFIX_CCARGS+= -DUSE_SASL_AUTH -I\${LOCALBASE}/include -I\${LOCALBASE}/include/sasl1" - echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lsasl -lpam -lcrypt" - echo "SASL_SUFFIX= +sasl" - if [ -f ${LOCALBASE}/lib/libsasl.a ]; then - if /usr/bin/nm ${LOCALBASE}/lib/libsasl.a | grep -wq "mysql_init"; then - SASL_USE_MYSQL="YES" - fi - fi - ;; - SASL2) - echo "LIB_DEPENDS+= sasl2.2:\${PORTSDIR}/security/cyrus-sasl2" - echo "POSTFIX_CCARGS+= -DUSE_SASL_AUTH -I\${LOCALBASE}/include -I\${LOCALBASE}/include/sasl" - echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lsasl2 -lpam -lcrypt" - echo "SASL_SUFFIX= +sasl2" - if [ -f ${LOCALBASE}/lib/libsasl2.a ]; then - if /usr/bin/nm ${LOCALBASE}/lib/libsasl2.a | grep -wq "mysql_init"; then - SASL_USE_MYSQL="YES" - fi - fi - ;; - SASLKRB) - echo "POSTFIX_AUXLIBS+= -lkrb -lcrypto -lcom_err" - ;; - SASLKRB5) - echo "POSTFIX_AUXLIBS+= -lkrb5 -lcrypto -lcrypt -lcom_err -lasn1 -lroken" - ;; - TLS) - echo "USE_OPENSSL= yes" - echo "POSTFIX_CCARGS+= -DUSE_TLS -I\${OPENSSLINC}" - echo "POSTFIX_AUXLIBS+= -L\${OPENSSLLIB} -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" - ;; - MySQL) - echo "USE_MYSQL=YES" - echo "POSTFIX_CCARGS+= -DHAS_MYSQL -I\${LOCALBASE}/include/mysql" - echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz -lcrypt" - if [ -f ${LOCALBASE}/lib/mysql/libmysqlclient.a ]; then - if /usr/bin/nm ${LOCALBASE}/lib/mysql/libmysqlclient.a | grep -wq "SSL_new"; then - echo "USE_OPENSSL= yes" - echo "POSTFIX_CCARGS+= -I\${OPENSSLLIB}" - echo "POSTFIX_AUXLIBS+= -L\${OPENSSLLIB} -lssl -lcrypto" - fi - fi - echo "MYSQL_SUFFIX= +mysql" - MYSQL_SELECTED="YES" - ;; - PgSQL) - echo "USE_PGSQL=YES" - 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" - ;; - OpenLDAP) - echo "USE_OPENLDAP=YES" - echo "POSTFIX_CCARGS+= -DHAS_LDAP -I\${LOCALBASE}/include" - echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lldap -llber" - echo "OPENLDAP_SUFFIX= +openldap" - ;; - CDB) - echo "BUILD_DEPENDS+= \${LOCALBASE}/lib/libcdb.a:\${PORTSDIR}/databases/tinycdb" - echo "POSTFIX_CCARGS+= -DHAS_CDB -I\${LOCALBASE}/include" - echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lcdb" - echo "CDB_SUFFIX= +cdb" - ;; - NIS) - echo "POSTFIX_CCARGS+= -DHAS_NIS" - echo "NIS_SUFFIX= +nis" - ;; - Test) - echo "BIN1= smtp-sink smtp-source qmqp-source" -# echo "MAN1+= smtp-sink.1 smtp-source.1 qmqp-sink.1 qmqp-source.1" - SUB_TEST="" - ;; - *) - echo "Unknown option(s): $*" > /dev/stderr - rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc - exit 1 - ;; - esac - shift -done - -if [ -z "${BATCH}" ]; then - if [ "X$SASL_USE_MYSQL" != "X" ] && [ "$MYSQL_SELECTED" != "YES" ]; then - /usr/bin/dialog --yesno "Your lib SASL it is compiled with MySQL. It desires to use the MySQL?" 5 80 > /dev/stderr - if [ $? = 0 ]; then - echo "USE_MYSQL=YES" - echo "POSTFIX_CCARGS+= -DHAS_MYSQL -I\${LOCALBASE}/include/mysql" - echo "POSTFIX_AUXLIBS+= \${LOCALBASE}/lib/mysql/libmysqlclient.a -lm -lz -lcrypt" - if [ -f ${LOCALBASE}/lib/mysql/libmysqlclient.a ]; then - if /usr/bin/nm ${LOCALBASE}/lib/mysql/libmysqlclient.a | grep -wq "SSL_new"; then - echo "USE_OPENSSL= yes" - echo "POSTFIX_CCARGS+= -I\${OPENSSLLIB}" - echo "POSTFIX_AUXLIBS+= -L\${OPENSSLLIB} -lssl -lcrypto" - fi - fi - fi - fi -fi - -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=\${NOPCRE_SUFFIX}\${SASL_SUFFIX}\${DB_SUFFIX}\${MYSQL_SUFFIX}\${PGSQL_SUFFIX}\${OPENLDAP_SUFFIX}\${TLS_SUFFIX}\${TLS_SUFFIX}\${NIS_SUFFIX}" --- postfix-current.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509012123.j81LNq7j000974>