diff options
author | petef <petef@FreeBSD.org> | 2003-01-09 13:10:39 +0800 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2003-01-09 13:10:39 +0800 |
commit | 84184b00021ffd7c0bd80c122716e6b65cf8a2c2 (patch) | |
tree | aca7d94e805dec18284dd4a2f2a60a4e579ca18a /mail | |
parent | 0b609db1303a64f68a2683f1bac45317c0803d41 (diff) | |
download | freebsd-ports-graphics-84184b00021ffd7c0bd80c122716e6b65cf8a2c2.tar.gz freebsd-ports-graphics-84184b00021ffd7c0bd80c122716e6b65cf8a2c2.tar.zst freebsd-ports-graphics-84184b00021ffd7c0bd80c122716e6b65cf8a2c2.zip |
Update to 2.0.0.2.
PR: 46691
Submitted by: maintainer
Diffstat (limited to 'mail')
187 files changed, 2288 insertions, 1265 deletions
diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile index 6adf63b1ee8..f75e2d5770b 100644 --- a/mail/postfix/Makefile +++ b/mail/postfix/Makefile @@ -9,10 +9,11 @@ # # make -DBATCH POSTFIX_OPTIONS="DB3 PCRE" # -# the options are the same names as in the scripts/configure.postfix file +# the options are the same names as in the scripts/configure.postfix file. +# POSTFIX_OPTIONS can be set in /etc/make.conf also. PORTNAME= postfix -PORTVERSION= 1.1.12 +PORTVERSION= 2.0.0.2 PORTEPOCH= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ @@ -45,6 +46,8 @@ MAN8= bounce.8 cleanup.8 defer.8 error.8 flush.8 lmtp.8 local.8 \ # patch it. MAN8base=$(MAN8:S/tlsmgr.8//) +NO_LATEST_LINK= yes + CONF1= main.cf master.cf access aliases canonical pcre_table regexp_table \ relocated transport virtual diff --git a/mail/postfix/distinfo b/mail/postfix/distinfo index 832388cccb9..9ed106bfeb1 100644 --- a/mail/postfix/distinfo +++ b/mail/postfix/distinfo @@ -1,4 +1,4 @@ -MD5 (postfix/postfix-1.1.12.tar.gz) = d1d0f9792ec6ea063ccca59184e54212 -MD5 (postfix/pfixtls-0.8.11a-1.1.11-0.9.6g.tar.gz) = 11d82e9a3482f64af9d228f7a4319566 -MD5 (postfix/postfix-1.1.12+ipv6.patch.gz) = add4396ce50ca61b5d9b67454fb51258 +MD5 (postfix/postfix-2.0.0.2.tar.gz) = 1e51a2290d33ee498f9abe91dbb27dc2 +MD5 (postfix/pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz) = 1111b97c77e71b2f7edd9ab6d36fb550 MD5 (postfix/postfix-pg.postfix-1.1.8.patch) = e0f4d910a6d6648d9b48e2244f2764ba +MD5 (postfix/tls+ipv6-1.10-pf-2.0.0.1.patch.gz) = ed18c6933fa81961bcbd1e3a28493487 diff --git a/mail/postfix/files/patch-bd b/mail/postfix/files/patch-bd deleted file mode 100644 index ce79695f134..00000000000 --- a/mail/postfix/files/patch-bd +++ /dev/null @@ -1,11 +0,0 @@ -*** ./html/local.8.html.orig Thu Feb 3 21:15:02 2000 ---- ./html/local.8.html Thu Jun 1 22:22:30 2000 -*************** -*** 99,101 **** - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i> or <b>/var/spool/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> ---- 99,101 ---- - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> diff --git a/mail/postfix/files/patch-ck b/mail/postfix/files/patch-ck deleted file mode 100644 index 6e1ddce3c8f..00000000000 --- a/mail/postfix/files/patch-ck +++ /dev/null @@ -1,11 +0,0 @@ -*** ./man/man8/local.8.orig Thu Feb 3 21:14:53 2000 ---- ./man/man8/local.8 Thu Jun 1 22:42:43 2000 -*************** -*** 96,98 **** - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR or \fB/var/spool/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR ---- 96,98 ---- - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR diff --git a/mail/postfix/files/patch-ea b/mail/postfix/files/patch-ea new file mode 100644 index 00000000000..6c3f98d2af4 --- /dev/null +++ b/mail/postfix/files/patch-ea @@ -0,0 +1,13 @@ +*** ./src/cleanup/cleanup.c.orig Sun May 28 18:33:41 2000 +--- ./src/cleanup/cleanup.c Thu Jun 1 21:52:22 2000 +*************** +*** 118,121 **** + /* FILES +! /* /etc/postfix/canonical*, canonical mapping table +! /* /etc/postfix/virtual*, virtual mapping table + /* LICENSE +--- 118,121 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/canonical*, canonical mapping table +! /* !!PREFIX!!/etc/postfix/virtual*, virtual mapping table + /* LICENSE diff --git a/mail/postfix/files/patch-eb b/mail/postfix/files/patch-eb new file mode 100644 index 00000000000..e67680963d2 --- /dev/null +++ b/mail/postfix/files/patch-eb @@ -0,0 +1,11 @@ +*** ./src/global/mail_conf.c.orig Sun May 7 18:51:16 2000 +--- ./src/global/mail_conf.c Thu Jun 1 22:16:29 2000 +*************** +*** 53,55 **** + /* FILES +! /* /etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT +--- 53,55 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT diff --git a/mail/postfix/files/patch-ee b/mail/postfix/files/patch-ee new file mode 100644 index 00000000000..ef44eac24b7 --- /dev/null +++ b/mail/postfix/files/patch-ee @@ -0,0 +1,13 @@ +*** ./src/master/master.c.orig Tue Mar 7 10:25:07 2000 +--- ./src/master/master.c Thu Jun 1 22:43:50 2000 +*************** +*** 104,107 **** + /* FILES +! /* /etc/postfix/main.cf: global configuration file. +! /* /etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. +--- 104,107 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/main.cf: global configuration file. +! /* !!PREFIX!!/etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. diff --git a/mail/postfix/files/patch-ef b/mail/postfix/files/patch-ef new file mode 100644 index 00000000000..586b304a103 --- /dev/null +++ b/mail/postfix/files/patch-ef @@ -0,0 +1,11 @@ +*** ./src/postdrop/postdrop.c.orig Sun Apr 25 18:05:43 1999 +--- ./src/postdrop/postdrop.c Thu Jun 1 22:44:22 2000 +*************** +*** 39,41 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 39,41 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix/files/patch-eg b/mail/postfix/files/patch-eg new file mode 100644 index 00000000000..2983bbfd86e --- /dev/null +++ b/mail/postfix/files/patch-eg @@ -0,0 +1,20 @@ +*** ./src/sendmail/sendmail.c.orig Tue Mar 14 10:42:06 2000 +--- ./src/sendmail/sendmail.c Thu Jun 1 22:47:24 2000 +*************** +*** 57,59 **** + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +--- 57,59 ---- + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB!!PREFIX!!/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +*************** +*** 159,161 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 159,161 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix/files/patch-eh b/mail/postfix/files/patch-eh new file mode 100644 index 00000000000..c104c3680d2 --- /dev/null +++ b/mail/postfix/files/patch-eh @@ -0,0 +1,11 @@ +*** ./src/trivial-rewrite/transport.c.orig Tue Nov 16 19:15:41 1999 +--- ./src/trivial-rewrite/transport.c Thu Jun 1 22:47:49 2000 +*************** +*** 32,34 **** + /* FILES +! /* /etc/postfix/transport* + /* CONFIGURATION PARAMETERS +--- 32,34 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/transport* + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix/files/patch-ei b/mail/postfix/files/patch-ei deleted file mode 100644 index 8f03b69ccc5..00000000000 --- a/mail/postfix/files/patch-ei +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtpd/smtpd.h.orig Thu Sep 14 10:17:23 2000 ---- ./src/smtpd/smtpd.h Thu Sep 14 10:17:38 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix/files/patch-ej b/mail/postfix/files/patch-ej deleted file mode 100644 index 329d7bb1cf9..00000000000 --- a/mail/postfix/files/patch-ej +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtp/smtp.h.orig Thu Sep 14 13:04:43 2000 ---- ./src/smtp/smtp.h Thu Sep 14 13:04:53 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix/files/patch-lmtp.h b/mail/postfix/files/patch-lmtp.h deleted file mode 100644 index 86d5975b2b4..00000000000 --- a/mail/postfix/files/patch-lmtp.h +++ /dev/null @@ -1,13 +0,0 @@ ---- ./src/lmtp/lmtp.h.orig Fri Jan 19 15:43:06 2001 -+++ ./src/lmtp/lmtp.h Sat Feb 3 14:01:09 2001 -@@ -12,8 +12,8 @@ - * SASL library. - */ - #ifdef USE_SASL_AUTH --#include <sasl.h> --#include <saslutil.h> -+#include <sasl1/sasl.h> -+#include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix/files/patch-main.cf b/mail/postfix/files/patch-main.cf new file mode 100644 index 00000000000..95fb2feaca0 --- /dev/null +++ b/mail/postfix/files/patch-main.cf @@ -0,0 +1,58 @@ +--- ./conf/main.cf Wed Jan 8 22:11:52 2003 ++++ ./conf/main.cf Wed Jan 8 22:11:53 2003 +@@ -31,13 +31,13 @@ + # The command_directory parameter specifies the location of all + # postXXX commands. + # +-command_directory = /usr/sbin ++command_directory = /usr/local/sbin + + # The daemon_directory parameter specifies the location of all Postfix + # daemon programs (i.e. programs listed in the master.cf file). This + # directory must be owned by root. + # +-daemon_directory = /usr/libexec/postfix ++daemon_directory = /usr/local/libexec/postfix + + # QUEUE AND PROCESS OWNERSHIP + # +@@ -590,32 +590,32 @@ + # sendmail_path: The full pathname of the Postfix sendmail command. + # This is the Sendmail-compatible mail posting interface. + # +-sendmail_path = ++sendmail_path = /usr/local/sbin/sendmail + + # newaliases_path: The full pathname of the Postfix newaliases command. + # This is the Sendmail-compatible command to build alias databases. + # +-newaliases_path = ++newaliases_path = /usr/local/bin/newaliases + + # mailq_path: The full pathname of the Postfix mailq command. This + # is the Sendmail-compatible mail queue listing command. + # +-mailq_path = ++mailq_path = /usr/local/bin/mailq + + # setgid_group: The group for mail submission and queue management + # commands. This must be a group name with a numerical group ID that + # is not shared with other accounts, not even with the Postfix account. + # +-setgid_group = ++setgid_group = maildrop + + # manpage_directory: The location of the Postfix on-line manual pages. + # +-manpage_directory = ++manpage_directory = /usr/local/man + + # sample_directory: The location of the Postfix sample configuration files. + # +-sample_directory = ++sample_directory = /usr/local/etc/postfix + + # readme_directory: The location of the Postfix README files. + # +-readme_directory = ++readme_directory = no diff --git a/mail/postfix/pkg-message b/mail/postfix/pkg-message index 7fb3a804599..a7ae2b17e2a 100644 --- a/mail/postfix/pkg-message +++ b/mail/postfix/pkg-message @@ -8,21 +8,10 @@ sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" - **OR** +This will disable Sendmail completely. -sendmail_enable="NONE" -then type this command as root: - -ln -s /usr/local/sbin/postfix /usr/local/etc/rc.d/postfix.sh - -Either of these will disable Sendmail completely. The latter form is useful -if you need to wait until other local package initialization (such as ldconfig -for Postgres or MySQL) is done. The former method will start postfix very -early on in the boot process. - - -Also, you will want to disable some Sendmail-specific daily maintenance +Also, you may wish to disable some Sendmail-specific daily maintenance routines in your /etc/periodic.conf file: daily_status_mail_rejects_enable="NO" diff --git a/mail/postfix/pkg-plist b/mail/postfix/pkg-plist index 5b6c3c55d5b..6d882a8666a 100644 --- a/mail/postfix/pkg-plist +++ b/mail/postfix/pkg-plist @@ -32,6 +32,7 @@ etc/postfix/sample-lmtp.cf etc/postfix/sample-local.cf etc/postfix/sample-main.cf etc/postfix/sample-master.cf +etc/postfix/sample-mime.cf etc/postfix/sample-misc.cf etc/postfix/sample-pcre-access.cf etc/postfix/sample-pcre-body.cf @@ -86,6 +87,7 @@ bin/newaliases bin/mailq %%SUB_TEST%%sbin/smtp-sink %%SUB_TEST%%sbin/smtp-source +%%PORTDOCS%%share/doc/postfix/ADDRESS_CLASS_README %%PORTDOCS%%share/doc/postfix/DB_README %%PORTDOCS%%share/doc/postfix/DEBUG_README %%PORTDOCS%%share/doc/postfix/ETRN_README @@ -93,13 +95,16 @@ bin/mailq %%PORTDOCS%%share/doc/postfix/INSTALL %%PORTDOCS%%share/doc/postfix/LDAP_README %%PORTDOCS%%share/doc/postfix/LINUX_README +%%PORTDOCS%%share/doc/postfix/LOCAL_RECIPIENT_README %%PORTDOCS%%share/doc/postfix/LMTP_README %%PORTDOCS%%share/doc/postfix/MACOSX_README +%%PORTDOCS%%share/doc/postfix/MAILDROP_README %%PORTDOCS%%share/doc/postfix/MYSQL_README %%PORTDOCS%%share/doc/postfix/NFS_README %%PORTDOCS%%share/doc/postfix/PACKAGE_README %%PORTDOCS%%share/doc/postfix/PCRE_README %%PORTDOCS%%share/doc/postfix/QMQP_README +%%PORTDOCS%%share/doc/postfix/RELEASE_NOTES %%PORTDOCS%%share/doc/postfix/RESTRICTION_CLASS_README %%PORTDOCS%%share/doc/postfix/SASL_README %%PORTDOCS%%share/doc/postfix/ULTRIX_README diff --git a/mail/postfix/scripts/configure.postfix b/mail/postfix/scripts/configure.postfix index 46981470b89..71f7a1c5b90 100644 --- a/mail/postfix/scripts/configure.postfix +++ b/mail/postfix/scripts/configure.postfix @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/mail/postfix/scripts/Attic/configure.postfix,v 1.25 2003-01-04 16:17:26 seanc Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/postfix/scripts/Attic/configure.postfix,v 1.26 2003-01-09 05:10:39 petef Exp $ if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then exit @@ -22,14 +22,16 @@ if [ -z "${BATCH}" ]; then --checklist "\n\ Please select desired options:" -1 -1 16 \ PCRE "Perl Compatible Regular Expressions" "$status_PCRE" \ -SASL "Cyrus SASL (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \ MySQL "MySQL map lookups" "$status_MySQL" \ PgSQL "PostgreSQL map lookups" "$status_PgSQL" \ OpenLDAP "OpenLDAP map lookups" "$status_OpenLDAP" \ Test "SMTP/LMTP test server and generator" "$status_Test" \ -TLS "Secure Sockets Layer and Transport Layer Security" "$status_TLS" \ -IPv6 "IPv6 support (not KAME official)" "$status_IPv6" \ +TLS "SSL and TLS" "$status_TLS" \ +IPv6 "IPv6 support (currently broken)" "$status_IPv6" \ +IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \ 2> $tempfile retval=$? @@ -58,8 +60,8 @@ echo "PREFIX= ${PREFIX}" SUB_TLS="@comment " SUB_TEST="@comment " -for i; do - case $i in +while [ "$1" ]; do + case $1 in PCRE) echo "LIB_DEPENDS+= pcre.0:\${PORTSDIR}/devel/pcre" echo "POSTFIX_CCARGS+= -DHAS_PCRE -I\${LOCALBASE}/include" @@ -67,13 +69,32 @@ for i; do 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 + 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 ${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="" + ;; + 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 ${PREFIX}/lib/libsasl2.a ]; then + if nm ${PREFIX}/lib/libsasl2.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 @@ -90,8 +111,8 @@ for i; do 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.11a-1.1.11-0.9.6g.tar.gz" - echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.11a-1.1.11-0.9.6g/pfixtls.diff" + echo "DISTFILES+= \${DISTNAME}.tar.gz pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz" + echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.12-2.0.0.1-0.9.6h/pfixtls.diff" echo "PATCH_STRIP= -p1" echo "TLS_SUFFIX= +tls" SUB_TLS="" @@ -132,10 +153,10 @@ for i; do 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 + exit 1 fi - if [ -z $SUB_TLS ]; then - /usr/bin/dialog --msgbox "IPv6 and TLS patch cannot be used simultaneously!" 5 60 > /dev/stderr + if [ X$SUB_TLS = "X" ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 fi @@ -144,15 +165,30 @@ for i; do echo "PATCH_DIST_STRIP= -p1" echo "IPv6_SUFFIX= +ipv6" echo "" + IPv6SELECTED=YES ;; - "") + IPv6TLS) + if [ X$SUB_TLS = "X" -o X$IPv6SELECTED != X ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr + rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + exit 1 + fi + echo "MAN8+= tlsmgr.8" + echo "POSTFIX_CCARGS+= -DHAS_SSL -I/usr/include/openssl" + echo "POSTFIX_AUXLIBS+= -lssl -lcrypto" + echo "PATCH_SITES+= ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.10/" + echo "PATCHFILES+= tls+ipv6-1.10-pf-2.0.0.1.patch.gz" + echo "PATCH_DIST_STRIP= -p1" + echo "TLS_SUFFIX= +ipv6+tls" + SUB_TLS="" ;; *) - echo "Invalid option(s): $*" > /dev/stderr + echo "Unknown option(s): $*" > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 ;; esac + shift done echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\"" diff --git a/mail/postfix1/Makefile b/mail/postfix1/Makefile index 6adf63b1ee8..f75e2d5770b 100644 --- a/mail/postfix1/Makefile +++ b/mail/postfix1/Makefile @@ -9,10 +9,11 @@ # # make -DBATCH POSTFIX_OPTIONS="DB3 PCRE" # -# the options are the same names as in the scripts/configure.postfix file +# the options are the same names as in the scripts/configure.postfix file. +# POSTFIX_OPTIONS can be set in /etc/make.conf also. PORTNAME= postfix -PORTVERSION= 1.1.12 +PORTVERSION= 2.0.0.2 PORTEPOCH= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ @@ -45,6 +46,8 @@ MAN8= bounce.8 cleanup.8 defer.8 error.8 flush.8 lmtp.8 local.8 \ # patch it. MAN8base=$(MAN8:S/tlsmgr.8//) +NO_LATEST_LINK= yes + CONF1= main.cf master.cf access aliases canonical pcre_table regexp_table \ relocated transport virtual diff --git a/mail/postfix1/distinfo b/mail/postfix1/distinfo index 832388cccb9..9ed106bfeb1 100644 --- a/mail/postfix1/distinfo +++ b/mail/postfix1/distinfo @@ -1,4 +1,4 @@ -MD5 (postfix/postfix-1.1.12.tar.gz) = d1d0f9792ec6ea063ccca59184e54212 -MD5 (postfix/pfixtls-0.8.11a-1.1.11-0.9.6g.tar.gz) = 11d82e9a3482f64af9d228f7a4319566 -MD5 (postfix/postfix-1.1.12+ipv6.patch.gz) = add4396ce50ca61b5d9b67454fb51258 +MD5 (postfix/postfix-2.0.0.2.tar.gz) = 1e51a2290d33ee498f9abe91dbb27dc2 +MD5 (postfix/pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz) = 1111b97c77e71b2f7edd9ab6d36fb550 MD5 (postfix/postfix-pg.postfix-1.1.8.patch) = e0f4d910a6d6648d9b48e2244f2764ba +MD5 (postfix/tls+ipv6-1.10-pf-2.0.0.1.patch.gz) = ed18c6933fa81961bcbd1e3a28493487 diff --git a/mail/postfix1/files/patch-bd b/mail/postfix1/files/patch-bd deleted file mode 100644 index ce79695f134..00000000000 --- a/mail/postfix1/files/patch-bd +++ /dev/null @@ -1,11 +0,0 @@ -*** ./html/local.8.html.orig Thu Feb 3 21:15:02 2000 ---- ./html/local.8.html Thu Jun 1 22:22:30 2000 -*************** -*** 99,101 **** - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i> or <b>/var/spool/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> ---- 99,101 ---- - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> diff --git a/mail/postfix1/files/patch-ck b/mail/postfix1/files/patch-ck deleted file mode 100644 index 6e1ddce3c8f..00000000000 --- a/mail/postfix1/files/patch-ck +++ /dev/null @@ -1,11 +0,0 @@ -*** ./man/man8/local.8.orig Thu Feb 3 21:14:53 2000 ---- ./man/man8/local.8 Thu Jun 1 22:42:43 2000 -*************** -*** 96,98 **** - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR or \fB/var/spool/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR ---- 96,98 ---- - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR diff --git a/mail/postfix1/files/patch-ea b/mail/postfix1/files/patch-ea new file mode 100644 index 00000000000..6c3f98d2af4 --- /dev/null +++ b/mail/postfix1/files/patch-ea @@ -0,0 +1,13 @@ +*** ./src/cleanup/cleanup.c.orig Sun May 28 18:33:41 2000 +--- ./src/cleanup/cleanup.c Thu Jun 1 21:52:22 2000 +*************** +*** 118,121 **** + /* FILES +! /* /etc/postfix/canonical*, canonical mapping table +! /* /etc/postfix/virtual*, virtual mapping table + /* LICENSE +--- 118,121 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/canonical*, canonical mapping table +! /* !!PREFIX!!/etc/postfix/virtual*, virtual mapping table + /* LICENSE diff --git a/mail/postfix1/files/patch-eb b/mail/postfix1/files/patch-eb new file mode 100644 index 00000000000..e67680963d2 --- /dev/null +++ b/mail/postfix1/files/patch-eb @@ -0,0 +1,11 @@ +*** ./src/global/mail_conf.c.orig Sun May 7 18:51:16 2000 +--- ./src/global/mail_conf.c Thu Jun 1 22:16:29 2000 +*************** +*** 53,55 **** + /* FILES +! /* /etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT +--- 53,55 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT diff --git a/mail/postfix1/files/patch-ee b/mail/postfix1/files/patch-ee new file mode 100644 index 00000000000..ef44eac24b7 --- /dev/null +++ b/mail/postfix1/files/patch-ee @@ -0,0 +1,13 @@ +*** ./src/master/master.c.orig Tue Mar 7 10:25:07 2000 +--- ./src/master/master.c Thu Jun 1 22:43:50 2000 +*************** +*** 104,107 **** + /* FILES +! /* /etc/postfix/main.cf: global configuration file. +! /* /etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. +--- 104,107 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/main.cf: global configuration file. +! /* !!PREFIX!!/etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. diff --git a/mail/postfix1/files/patch-ef b/mail/postfix1/files/patch-ef new file mode 100644 index 00000000000..586b304a103 --- /dev/null +++ b/mail/postfix1/files/patch-ef @@ -0,0 +1,11 @@ +*** ./src/postdrop/postdrop.c.orig Sun Apr 25 18:05:43 1999 +--- ./src/postdrop/postdrop.c Thu Jun 1 22:44:22 2000 +*************** +*** 39,41 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 39,41 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix1/files/patch-eg b/mail/postfix1/files/patch-eg new file mode 100644 index 00000000000..2983bbfd86e --- /dev/null +++ b/mail/postfix1/files/patch-eg @@ -0,0 +1,20 @@ +*** ./src/sendmail/sendmail.c.orig Tue Mar 14 10:42:06 2000 +--- ./src/sendmail/sendmail.c Thu Jun 1 22:47:24 2000 +*************** +*** 57,59 **** + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +--- 57,59 ---- + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB!!PREFIX!!/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +*************** +*** 159,161 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 159,161 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix1/files/patch-eh b/mail/postfix1/files/patch-eh new file mode 100644 index 00000000000..c104c3680d2 --- /dev/null +++ b/mail/postfix1/files/patch-eh @@ -0,0 +1,11 @@ +*** ./src/trivial-rewrite/transport.c.orig Tue Nov 16 19:15:41 1999 +--- ./src/trivial-rewrite/transport.c Thu Jun 1 22:47:49 2000 +*************** +*** 32,34 **** + /* FILES +! /* /etc/postfix/transport* + /* CONFIGURATION PARAMETERS +--- 32,34 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/transport* + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix1/files/patch-ei b/mail/postfix1/files/patch-ei deleted file mode 100644 index 8f03b69ccc5..00000000000 --- a/mail/postfix1/files/patch-ei +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtpd/smtpd.h.orig Thu Sep 14 10:17:23 2000 ---- ./src/smtpd/smtpd.h Thu Sep 14 10:17:38 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix1/files/patch-ej b/mail/postfix1/files/patch-ej deleted file mode 100644 index 329d7bb1cf9..00000000000 --- a/mail/postfix1/files/patch-ej +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtp/smtp.h.orig Thu Sep 14 13:04:43 2000 ---- ./src/smtp/smtp.h Thu Sep 14 13:04:53 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix1/files/patch-lmtp.h b/mail/postfix1/files/patch-lmtp.h deleted file mode 100644 index 86d5975b2b4..00000000000 --- a/mail/postfix1/files/patch-lmtp.h +++ /dev/null @@ -1,13 +0,0 @@ ---- ./src/lmtp/lmtp.h.orig Fri Jan 19 15:43:06 2001 -+++ ./src/lmtp/lmtp.h Sat Feb 3 14:01:09 2001 -@@ -12,8 +12,8 @@ - * SASL library. - */ - #ifdef USE_SASL_AUTH --#include <sasl.h> --#include <saslutil.h> -+#include <sasl1/sasl.h> -+#include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix1/files/patch-main.cf b/mail/postfix1/files/patch-main.cf new file mode 100644 index 00000000000..95fb2feaca0 --- /dev/null +++ b/mail/postfix1/files/patch-main.cf @@ -0,0 +1,58 @@ +--- ./conf/main.cf Wed Jan 8 22:11:52 2003 ++++ ./conf/main.cf Wed Jan 8 22:11:53 2003 +@@ -31,13 +31,13 @@ + # The command_directory parameter specifies the location of all + # postXXX commands. + # +-command_directory = /usr/sbin ++command_directory = /usr/local/sbin + + # The daemon_directory parameter specifies the location of all Postfix + # daemon programs (i.e. programs listed in the master.cf file). This + # directory must be owned by root. + # +-daemon_directory = /usr/libexec/postfix ++daemon_directory = /usr/local/libexec/postfix + + # QUEUE AND PROCESS OWNERSHIP + # +@@ -590,32 +590,32 @@ + # sendmail_path: The full pathname of the Postfix sendmail command. + # This is the Sendmail-compatible mail posting interface. + # +-sendmail_path = ++sendmail_path = /usr/local/sbin/sendmail + + # newaliases_path: The full pathname of the Postfix newaliases command. + # This is the Sendmail-compatible command to build alias databases. + # +-newaliases_path = ++newaliases_path = /usr/local/bin/newaliases + + # mailq_path: The full pathname of the Postfix mailq command. This + # is the Sendmail-compatible mail queue listing command. + # +-mailq_path = ++mailq_path = /usr/local/bin/mailq + + # setgid_group: The group for mail submission and queue management + # commands. This must be a group name with a numerical group ID that + # is not shared with other accounts, not even with the Postfix account. + # +-setgid_group = ++setgid_group = maildrop + + # manpage_directory: The location of the Postfix on-line manual pages. + # +-manpage_directory = ++manpage_directory = /usr/local/man + + # sample_directory: The location of the Postfix sample configuration files. + # +-sample_directory = ++sample_directory = /usr/local/etc/postfix + + # readme_directory: The location of the Postfix README files. + # +-readme_directory = ++readme_directory = no diff --git a/mail/postfix1/pkg-message b/mail/postfix1/pkg-message index 7fb3a804599..a7ae2b17e2a 100644 --- a/mail/postfix1/pkg-message +++ b/mail/postfix1/pkg-message @@ -8,21 +8,10 @@ sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" - **OR** +This will disable Sendmail completely. -sendmail_enable="NONE" -then type this command as root: - -ln -s /usr/local/sbin/postfix /usr/local/etc/rc.d/postfix.sh - -Either of these will disable Sendmail completely. The latter form is useful -if you need to wait until other local package initialization (such as ldconfig -for Postgres or MySQL) is done. The former method will start postfix very -early on in the boot process. - - -Also, you will want to disable some Sendmail-specific daily maintenance +Also, you may wish to disable some Sendmail-specific daily maintenance routines in your /etc/periodic.conf file: daily_status_mail_rejects_enable="NO" diff --git a/mail/postfix1/pkg-plist b/mail/postfix1/pkg-plist index 5b6c3c55d5b..6d882a8666a 100644 --- a/mail/postfix1/pkg-plist +++ b/mail/postfix1/pkg-plist @@ -32,6 +32,7 @@ etc/postfix/sample-lmtp.cf etc/postfix/sample-local.cf etc/postfix/sample-main.cf etc/postfix/sample-master.cf +etc/postfix/sample-mime.cf etc/postfix/sample-misc.cf etc/postfix/sample-pcre-access.cf etc/postfix/sample-pcre-body.cf @@ -86,6 +87,7 @@ bin/newaliases bin/mailq %%SUB_TEST%%sbin/smtp-sink %%SUB_TEST%%sbin/smtp-source +%%PORTDOCS%%share/doc/postfix/ADDRESS_CLASS_README %%PORTDOCS%%share/doc/postfix/DB_README %%PORTDOCS%%share/doc/postfix/DEBUG_README %%PORTDOCS%%share/doc/postfix/ETRN_README @@ -93,13 +95,16 @@ bin/mailq %%PORTDOCS%%share/doc/postfix/INSTALL %%PORTDOCS%%share/doc/postfix/LDAP_README %%PORTDOCS%%share/doc/postfix/LINUX_README +%%PORTDOCS%%share/doc/postfix/LOCAL_RECIPIENT_README %%PORTDOCS%%share/doc/postfix/LMTP_README %%PORTDOCS%%share/doc/postfix/MACOSX_README +%%PORTDOCS%%share/doc/postfix/MAILDROP_README %%PORTDOCS%%share/doc/postfix/MYSQL_README %%PORTDOCS%%share/doc/postfix/NFS_README %%PORTDOCS%%share/doc/postfix/PACKAGE_README %%PORTDOCS%%share/doc/postfix/PCRE_README %%PORTDOCS%%share/doc/postfix/QMQP_README +%%PORTDOCS%%share/doc/postfix/RELEASE_NOTES %%PORTDOCS%%share/doc/postfix/RESTRICTION_CLASS_README %%PORTDOCS%%share/doc/postfix/SASL_README %%PORTDOCS%%share/doc/postfix/ULTRIX_README diff --git a/mail/postfix1/scripts/configure.postfix b/mail/postfix1/scripts/configure.postfix index 2dfc2526294..9748cf72952 100644 --- a/mail/postfix1/scripts/configure.postfix +++ b/mail/postfix1/scripts/configure.postfix @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/mail/postfix1/scripts/Attic/configure.postfix,v 1.25 2003-01-04 16:17:26 seanc Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/postfix1/scripts/Attic/configure.postfix,v 1.26 2003-01-09 05:10:39 petef Exp $ if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then exit @@ -22,14 +22,16 @@ if [ -z "${BATCH}" ]; then --checklist "\n\ Please select desired options:" -1 -1 16 \ PCRE "Perl Compatible Regular Expressions" "$status_PCRE" \ -SASL "Cyrus SASL (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \ MySQL "MySQL map lookups" "$status_MySQL" \ PgSQL "PostgreSQL map lookups" "$status_PgSQL" \ OpenLDAP "OpenLDAP map lookups" "$status_OpenLDAP" \ Test "SMTP/LMTP test server and generator" "$status_Test" \ -TLS "Secure Sockets Layer and Transport Layer Security" "$status_TLS" \ -IPv6 "IPv6 support (not KAME official)" "$status_IPv6" \ +TLS "SSL and TLS" "$status_TLS" \ +IPv6 "IPv6 support (currently broken)" "$status_IPv6" \ +IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \ 2> $tempfile retval=$? @@ -58,8 +60,8 @@ echo "PREFIX= ${PREFIX}" SUB_TLS="@comment " SUB_TEST="@comment " -for i; do - case $i in +while [ "$1" ]; do + case $1 in PCRE) echo "LIB_DEPENDS+= pcre.0:\${PORTSDIR}/devel/pcre" echo "POSTFIX_CCARGS+= -DHAS_PCRE -I\${LOCALBASE}/include" @@ -67,13 +69,32 @@ for i; do 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 + 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 ${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="" + ;; + 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 ${PREFIX}/lib/libsasl2.a ]; then + if nm ${PREFIX}/lib/libsasl2.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 @@ -90,8 +111,8 @@ for i; do 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.11a-1.1.11-0.9.6g.tar.gz" - echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.11a-1.1.11-0.9.6g/pfixtls.diff" + echo "DISTFILES+= \${DISTNAME}.tar.gz pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz" + echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.12-2.0.0.1-0.9.6h/pfixtls.diff" echo "PATCH_STRIP= -p1" echo "TLS_SUFFIX= +tls" SUB_TLS="" @@ -132,10 +153,10 @@ for i; do 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 + exit 1 fi - if [ -z $SUB_TLS ]; then - /usr/bin/dialog --msgbox "IPv6 and TLS patch cannot be used simultaneously!" 5 60 > /dev/stderr + if [ X$SUB_TLS = "X" ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 fi @@ -144,15 +165,30 @@ for i; do echo "PATCH_DIST_STRIP= -p1" echo "IPv6_SUFFIX= +ipv6" echo "" + IPv6SELECTED=YES ;; - "") + IPv6TLS) + if [ X$SUB_TLS = "X" -o X$IPv6SELECTED != X ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr + rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + exit 1 + fi + echo "MAN8+= tlsmgr.8" + echo "POSTFIX_CCARGS+= -DHAS_SSL -I/usr/include/openssl" + echo "POSTFIX_AUXLIBS+= -lssl -lcrypto" + echo "PATCH_SITES+= ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.10/" + echo "PATCHFILES+= tls+ipv6-1.10-pf-2.0.0.1.patch.gz" + echo "PATCH_DIST_STRIP= -p1" + echo "TLS_SUFFIX= +ipv6+tls" + SUB_TLS="" ;; *) - echo "Invalid option(s): $*" > /dev/stderr + echo "Unknown option(s): $*" > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 ;; esac + shift done echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\"" diff --git a/mail/postfix20/Makefile b/mail/postfix20/Makefile index 6adf63b1ee8..f75e2d5770b 100644 --- a/mail/postfix20/Makefile +++ b/mail/postfix20/Makefile @@ -9,10 +9,11 @@ # # make -DBATCH POSTFIX_OPTIONS="DB3 PCRE" # -# the options are the same names as in the scripts/configure.postfix file +# the options are the same names as in the scripts/configure.postfix file. +# POSTFIX_OPTIONS can be set in /etc/make.conf also. PORTNAME= postfix -PORTVERSION= 1.1.12 +PORTVERSION= 2.0.0.2 PORTEPOCH= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ @@ -45,6 +46,8 @@ MAN8= bounce.8 cleanup.8 defer.8 error.8 flush.8 lmtp.8 local.8 \ # patch it. MAN8base=$(MAN8:S/tlsmgr.8//) +NO_LATEST_LINK= yes + CONF1= main.cf master.cf access aliases canonical pcre_table regexp_table \ relocated transport virtual diff --git a/mail/postfix20/distinfo b/mail/postfix20/distinfo index 832388cccb9..9ed106bfeb1 100644 --- a/mail/postfix20/distinfo +++ b/mail/postfix20/distinfo @@ -1,4 +1,4 @@ -MD5 (postfix/postfix-1.1.12.tar.gz) = d1d0f9792ec6ea063ccca59184e54212 -MD5 (postfix/pfixtls-0.8.11a-1.1.11-0.9.6g.tar.gz) = 11d82e9a3482f64af9d228f7a4319566 -MD5 (postfix/postfix-1.1.12+ipv6.patch.gz) = add4396ce50ca61b5d9b67454fb51258 +MD5 (postfix/postfix-2.0.0.2.tar.gz) = 1e51a2290d33ee498f9abe91dbb27dc2 +MD5 (postfix/pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz) = 1111b97c77e71b2f7edd9ab6d36fb550 MD5 (postfix/postfix-pg.postfix-1.1.8.patch) = e0f4d910a6d6648d9b48e2244f2764ba +MD5 (postfix/tls+ipv6-1.10-pf-2.0.0.1.patch.gz) = ed18c6933fa81961bcbd1e3a28493487 diff --git a/mail/postfix20/files/patch-bd b/mail/postfix20/files/patch-bd deleted file mode 100644 index ce79695f134..00000000000 --- a/mail/postfix20/files/patch-bd +++ /dev/null @@ -1,11 +0,0 @@ -*** ./html/local.8.html.orig Thu Feb 3 21:15:02 2000 ---- ./html/local.8.html Thu Jun 1 22:22:30 2000 -*************** -*** 99,101 **** - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i> or <b>/var/spool/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> ---- 99,101 ---- - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> diff --git a/mail/postfix20/files/patch-ck b/mail/postfix20/files/patch-ck deleted file mode 100644 index 6e1ddce3c8f..00000000000 --- a/mail/postfix20/files/patch-ck +++ /dev/null @@ -1,11 +0,0 @@ -*** ./man/man8/local.8.orig Thu Feb 3 21:14:53 2000 ---- ./man/man8/local.8 Thu Jun 1 22:42:43 2000 -*************** -*** 96,98 **** - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR or \fB/var/spool/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR ---- 96,98 ---- - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR diff --git a/mail/postfix20/files/patch-ea b/mail/postfix20/files/patch-ea new file mode 100644 index 00000000000..6c3f98d2af4 --- /dev/null +++ b/mail/postfix20/files/patch-ea @@ -0,0 +1,13 @@ +*** ./src/cleanup/cleanup.c.orig Sun May 28 18:33:41 2000 +--- ./src/cleanup/cleanup.c Thu Jun 1 21:52:22 2000 +*************** +*** 118,121 **** + /* FILES +! /* /etc/postfix/canonical*, canonical mapping table +! /* /etc/postfix/virtual*, virtual mapping table + /* LICENSE +--- 118,121 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/canonical*, canonical mapping table +! /* !!PREFIX!!/etc/postfix/virtual*, virtual mapping table + /* LICENSE diff --git a/mail/postfix20/files/patch-eb b/mail/postfix20/files/patch-eb new file mode 100644 index 00000000000..e67680963d2 --- /dev/null +++ b/mail/postfix20/files/patch-eb @@ -0,0 +1,11 @@ +*** ./src/global/mail_conf.c.orig Sun May 7 18:51:16 2000 +--- ./src/global/mail_conf.c Thu Jun 1 22:16:29 2000 +*************** +*** 53,55 **** + /* FILES +! /* /etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT +--- 53,55 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT diff --git a/mail/postfix20/files/patch-ee b/mail/postfix20/files/patch-ee new file mode 100644 index 00000000000..ef44eac24b7 --- /dev/null +++ b/mail/postfix20/files/patch-ee @@ -0,0 +1,13 @@ +*** ./src/master/master.c.orig Tue Mar 7 10:25:07 2000 +--- ./src/master/master.c Thu Jun 1 22:43:50 2000 +*************** +*** 104,107 **** + /* FILES +! /* /etc/postfix/main.cf: global configuration file. +! /* /etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. +--- 104,107 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/main.cf: global configuration file. +! /* !!PREFIX!!/etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. diff --git a/mail/postfix20/files/patch-ef b/mail/postfix20/files/patch-ef new file mode 100644 index 00000000000..586b304a103 --- /dev/null +++ b/mail/postfix20/files/patch-ef @@ -0,0 +1,11 @@ +*** ./src/postdrop/postdrop.c.orig Sun Apr 25 18:05:43 1999 +--- ./src/postdrop/postdrop.c Thu Jun 1 22:44:22 2000 +*************** +*** 39,41 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 39,41 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix20/files/patch-eg b/mail/postfix20/files/patch-eg new file mode 100644 index 00000000000..2983bbfd86e --- /dev/null +++ b/mail/postfix20/files/patch-eg @@ -0,0 +1,20 @@ +*** ./src/sendmail/sendmail.c.orig Tue Mar 14 10:42:06 2000 +--- ./src/sendmail/sendmail.c Thu Jun 1 22:47:24 2000 +*************** +*** 57,59 **** + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +--- 57,59 ---- + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB!!PREFIX!!/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +*************** +*** 159,161 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 159,161 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix20/files/patch-eh b/mail/postfix20/files/patch-eh new file mode 100644 index 00000000000..c104c3680d2 --- /dev/null +++ b/mail/postfix20/files/patch-eh @@ -0,0 +1,11 @@ +*** ./src/trivial-rewrite/transport.c.orig Tue Nov 16 19:15:41 1999 +--- ./src/trivial-rewrite/transport.c Thu Jun 1 22:47:49 2000 +*************** +*** 32,34 **** + /* FILES +! /* /etc/postfix/transport* + /* CONFIGURATION PARAMETERS +--- 32,34 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/transport* + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix20/files/patch-ei b/mail/postfix20/files/patch-ei deleted file mode 100644 index 8f03b69ccc5..00000000000 --- a/mail/postfix20/files/patch-ei +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtpd/smtpd.h.orig Thu Sep 14 10:17:23 2000 ---- ./src/smtpd/smtpd.h Thu Sep 14 10:17:38 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix20/files/patch-ej b/mail/postfix20/files/patch-ej deleted file mode 100644 index 329d7bb1cf9..00000000000 --- a/mail/postfix20/files/patch-ej +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtp/smtp.h.orig Thu Sep 14 13:04:43 2000 ---- ./src/smtp/smtp.h Thu Sep 14 13:04:53 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix20/files/patch-lmtp.h b/mail/postfix20/files/patch-lmtp.h deleted file mode 100644 index 86d5975b2b4..00000000000 --- a/mail/postfix20/files/patch-lmtp.h +++ /dev/null @@ -1,13 +0,0 @@ ---- ./src/lmtp/lmtp.h.orig Fri Jan 19 15:43:06 2001 -+++ ./src/lmtp/lmtp.h Sat Feb 3 14:01:09 2001 -@@ -12,8 +12,8 @@ - * SASL library. - */ - #ifdef USE_SASL_AUTH --#include <sasl.h> --#include <saslutil.h> -+#include <sasl1/sasl.h> -+#include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix20/files/patch-main.cf b/mail/postfix20/files/patch-main.cf new file mode 100644 index 00000000000..95fb2feaca0 --- /dev/null +++ b/mail/postfix20/files/patch-main.cf @@ -0,0 +1,58 @@ +--- ./conf/main.cf Wed Jan 8 22:11:52 2003 ++++ ./conf/main.cf Wed Jan 8 22:11:53 2003 +@@ -31,13 +31,13 @@ + # The command_directory parameter specifies the location of all + # postXXX commands. + # +-command_directory = /usr/sbin ++command_directory = /usr/local/sbin + + # The daemon_directory parameter specifies the location of all Postfix + # daemon programs (i.e. programs listed in the master.cf file). This + # directory must be owned by root. + # +-daemon_directory = /usr/libexec/postfix ++daemon_directory = /usr/local/libexec/postfix + + # QUEUE AND PROCESS OWNERSHIP + # +@@ -590,32 +590,32 @@ + # sendmail_path: The full pathname of the Postfix sendmail command. + # This is the Sendmail-compatible mail posting interface. + # +-sendmail_path = ++sendmail_path = /usr/local/sbin/sendmail + + # newaliases_path: The full pathname of the Postfix newaliases command. + # This is the Sendmail-compatible command to build alias databases. + # +-newaliases_path = ++newaliases_path = /usr/local/bin/newaliases + + # mailq_path: The full pathname of the Postfix mailq command. This + # is the Sendmail-compatible mail queue listing command. + # +-mailq_path = ++mailq_path = /usr/local/bin/mailq + + # setgid_group: The group for mail submission and queue management + # commands. This must be a group name with a numerical group ID that + # is not shared with other accounts, not even with the Postfix account. + # +-setgid_group = ++setgid_group = maildrop + + # manpage_directory: The location of the Postfix on-line manual pages. + # +-manpage_directory = ++manpage_directory = /usr/local/man + + # sample_directory: The location of the Postfix sample configuration files. + # +-sample_directory = ++sample_directory = /usr/local/etc/postfix + + # readme_directory: The location of the Postfix README files. + # +-readme_directory = ++readme_directory = no diff --git a/mail/postfix20/pkg-message b/mail/postfix20/pkg-message index 7fb3a804599..a7ae2b17e2a 100644 --- a/mail/postfix20/pkg-message +++ b/mail/postfix20/pkg-message @@ -8,21 +8,10 @@ sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" - **OR** +This will disable Sendmail completely. -sendmail_enable="NONE" -then type this command as root: - -ln -s /usr/local/sbin/postfix /usr/local/etc/rc.d/postfix.sh - -Either of these will disable Sendmail completely. The latter form is useful -if you need to wait until other local package initialization (such as ldconfig -for Postgres or MySQL) is done. The former method will start postfix very -early on in the boot process. - - -Also, you will want to disable some Sendmail-specific daily maintenance +Also, you may wish to disable some Sendmail-specific daily maintenance routines in your /etc/periodic.conf file: daily_status_mail_rejects_enable="NO" diff --git a/mail/postfix20/pkg-plist b/mail/postfix20/pkg-plist index 5b6c3c55d5b..6d882a8666a 100644 --- a/mail/postfix20/pkg-plist +++ b/mail/postfix20/pkg-plist @@ -32,6 +32,7 @@ etc/postfix/sample-lmtp.cf etc/postfix/sample-local.cf etc/postfix/sample-main.cf etc/postfix/sample-master.cf +etc/postfix/sample-mime.cf etc/postfix/sample-misc.cf etc/postfix/sample-pcre-access.cf etc/postfix/sample-pcre-body.cf @@ -86,6 +87,7 @@ bin/newaliases bin/mailq %%SUB_TEST%%sbin/smtp-sink %%SUB_TEST%%sbin/smtp-source +%%PORTDOCS%%share/doc/postfix/ADDRESS_CLASS_README %%PORTDOCS%%share/doc/postfix/DB_README %%PORTDOCS%%share/doc/postfix/DEBUG_README %%PORTDOCS%%share/doc/postfix/ETRN_README @@ -93,13 +95,16 @@ bin/mailq %%PORTDOCS%%share/doc/postfix/INSTALL %%PORTDOCS%%share/doc/postfix/LDAP_README %%PORTDOCS%%share/doc/postfix/LINUX_README +%%PORTDOCS%%share/doc/postfix/LOCAL_RECIPIENT_README %%PORTDOCS%%share/doc/postfix/LMTP_README %%PORTDOCS%%share/doc/postfix/MACOSX_README +%%PORTDOCS%%share/doc/postfix/MAILDROP_README %%PORTDOCS%%share/doc/postfix/MYSQL_README %%PORTDOCS%%share/doc/postfix/NFS_README %%PORTDOCS%%share/doc/postfix/PACKAGE_README %%PORTDOCS%%share/doc/postfix/PCRE_README %%PORTDOCS%%share/doc/postfix/QMQP_README +%%PORTDOCS%%share/doc/postfix/RELEASE_NOTES %%PORTDOCS%%share/doc/postfix/RESTRICTION_CLASS_README %%PORTDOCS%%share/doc/postfix/SASL_README %%PORTDOCS%%share/doc/postfix/ULTRIX_README diff --git a/mail/postfix20/scripts/configure.postfix b/mail/postfix20/scripts/configure.postfix index 99a9a97232d..2cdc1a0eaa3 100644 --- a/mail/postfix20/scripts/configure.postfix +++ b/mail/postfix20/scripts/configure.postfix @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/mail/postfix20/scripts/Attic/configure.postfix,v 1.25 2003-01-04 16:17:26 seanc Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/postfix20/scripts/Attic/configure.postfix,v 1.26 2003-01-09 05:10:39 petef Exp $ if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then exit @@ -22,14 +22,16 @@ if [ -z "${BATCH}" ]; then --checklist "\n\ Please select desired options:" -1 -1 16 \ PCRE "Perl Compatible Regular Expressions" "$status_PCRE" \ -SASL "Cyrus SASL (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \ MySQL "MySQL map lookups" "$status_MySQL" \ PgSQL "PostgreSQL map lookups" "$status_PgSQL" \ OpenLDAP "OpenLDAP map lookups" "$status_OpenLDAP" \ Test "SMTP/LMTP test server and generator" "$status_Test" \ -TLS "Secure Sockets Layer and Transport Layer Security" "$status_TLS" \ -IPv6 "IPv6 support (not KAME official)" "$status_IPv6" \ +TLS "SSL and TLS" "$status_TLS" \ +IPv6 "IPv6 support (currently broken)" "$status_IPv6" \ +IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \ 2> $tempfile retval=$? @@ -58,8 +60,8 @@ echo "PREFIX= ${PREFIX}" SUB_TLS="@comment " SUB_TEST="@comment " -for i; do - case $i in +while [ "$1" ]; do + case $1 in PCRE) echo "LIB_DEPENDS+= pcre.0:\${PORTSDIR}/devel/pcre" echo "POSTFIX_CCARGS+= -DHAS_PCRE -I\${LOCALBASE}/include" @@ -67,13 +69,32 @@ for i; do 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 + 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 ${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="" + ;; + 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 ${PREFIX}/lib/libsasl2.a ]; then + if nm ${PREFIX}/lib/libsasl2.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 @@ -90,8 +111,8 @@ for i; do 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.11a-1.1.11-0.9.6g.tar.gz" - echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.11a-1.1.11-0.9.6g/pfixtls.diff" + echo "DISTFILES+= \${DISTNAME}.tar.gz pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz" + echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.12-2.0.0.1-0.9.6h/pfixtls.diff" echo "PATCH_STRIP= -p1" echo "TLS_SUFFIX= +tls" SUB_TLS="" @@ -132,10 +153,10 @@ for i; do 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 + exit 1 fi - if [ -z $SUB_TLS ]; then - /usr/bin/dialog --msgbox "IPv6 and TLS patch cannot be used simultaneously!" 5 60 > /dev/stderr + if [ X$SUB_TLS = "X" ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 fi @@ -144,15 +165,30 @@ for i; do echo "PATCH_DIST_STRIP= -p1" echo "IPv6_SUFFIX= +ipv6" echo "" + IPv6SELECTED=YES ;; - "") + IPv6TLS) + if [ X$SUB_TLS = "X" -o X$IPv6SELECTED != X ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr + rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + exit 1 + fi + echo "MAN8+= tlsmgr.8" + echo "POSTFIX_CCARGS+= -DHAS_SSL -I/usr/include/openssl" + echo "POSTFIX_AUXLIBS+= -lssl -lcrypto" + echo "PATCH_SITES+= ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.10/" + echo "PATCHFILES+= tls+ipv6-1.10-pf-2.0.0.1.patch.gz" + echo "PATCH_DIST_STRIP= -p1" + echo "TLS_SUFFIX= +ipv6+tls" + SUB_TLS="" ;; *) - echo "Invalid option(s): $*" > /dev/stderr + echo "Unknown option(s): $*" > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 ;; esac + shift done echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\"" diff --git a/mail/postfix21/Makefile b/mail/postfix21/Makefile index 6adf63b1ee8..f75e2d5770b 100644 --- a/mail/postfix21/Makefile +++ b/mail/postfix21/Makefile @@ -9,10 +9,11 @@ # # make -DBATCH POSTFIX_OPTIONS="DB3 PCRE" # -# the options are the same names as in the scripts/configure.postfix file +# the options are the same names as in the scripts/configure.postfix file. +# POSTFIX_OPTIONS can be set in /etc/make.conf also. PORTNAME= postfix -PORTVERSION= 1.1.12 +PORTVERSION= 2.0.0.2 PORTEPOCH= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ @@ -45,6 +46,8 @@ MAN8= bounce.8 cleanup.8 defer.8 error.8 flush.8 lmtp.8 local.8 \ # patch it. MAN8base=$(MAN8:S/tlsmgr.8//) +NO_LATEST_LINK= yes + CONF1= main.cf master.cf access aliases canonical pcre_table regexp_table \ relocated transport virtual diff --git a/mail/postfix21/distinfo b/mail/postfix21/distinfo index 832388cccb9..9ed106bfeb1 100644 --- a/mail/postfix21/distinfo +++ b/mail/postfix21/distinfo @@ -1,4 +1,4 @@ -MD5 (postfix/postfix-1.1.12.tar.gz) = d1d0f9792ec6ea063ccca59184e54212 -MD5 (postfix/pfixtls-0.8.11a-1.1.11-0.9.6g.tar.gz) = 11d82e9a3482f64af9d228f7a4319566 -MD5 (postfix/postfix-1.1.12+ipv6.patch.gz) = add4396ce50ca61b5d9b67454fb51258 +MD5 (postfix/postfix-2.0.0.2.tar.gz) = 1e51a2290d33ee498f9abe91dbb27dc2 +MD5 (postfix/pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz) = 1111b97c77e71b2f7edd9ab6d36fb550 MD5 (postfix/postfix-pg.postfix-1.1.8.patch) = e0f4d910a6d6648d9b48e2244f2764ba +MD5 (postfix/tls+ipv6-1.10-pf-2.0.0.1.patch.gz) = ed18c6933fa81961bcbd1e3a28493487 diff --git a/mail/postfix21/files/patch-bd b/mail/postfix21/files/patch-bd deleted file mode 100644 index ce79695f134..00000000000 --- a/mail/postfix21/files/patch-bd +++ /dev/null @@ -1,11 +0,0 @@ -*** ./html/local.8.html.orig Thu Feb 3 21:15:02 2000 ---- ./html/local.8.html Thu Jun 1 22:22:30 2000 -*************** -*** 99,101 **** - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i> or <b>/var/spool/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> ---- 99,101 ---- - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> diff --git a/mail/postfix21/files/patch-ck b/mail/postfix21/files/patch-ck deleted file mode 100644 index 6e1ddce3c8f..00000000000 --- a/mail/postfix21/files/patch-ck +++ /dev/null @@ -1,11 +0,0 @@ -*** ./man/man8/local.8.orig Thu Feb 3 21:14:53 2000 ---- ./man/man8/local.8 Thu Jun 1 22:42:43 2000 -*************** -*** 96,98 **** - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR or \fB/var/spool/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR ---- 96,98 ---- - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR diff --git a/mail/postfix21/files/patch-ea b/mail/postfix21/files/patch-ea new file mode 100644 index 00000000000..6c3f98d2af4 --- /dev/null +++ b/mail/postfix21/files/patch-ea @@ -0,0 +1,13 @@ +*** ./src/cleanup/cleanup.c.orig Sun May 28 18:33:41 2000 +--- ./src/cleanup/cleanup.c Thu Jun 1 21:52:22 2000 +*************** +*** 118,121 **** + /* FILES +! /* /etc/postfix/canonical*, canonical mapping table +! /* /etc/postfix/virtual*, virtual mapping table + /* LICENSE +--- 118,121 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/canonical*, canonical mapping table +! /* !!PREFIX!!/etc/postfix/virtual*, virtual mapping table + /* LICENSE diff --git a/mail/postfix21/files/patch-eb b/mail/postfix21/files/patch-eb new file mode 100644 index 00000000000..e67680963d2 --- /dev/null +++ b/mail/postfix21/files/patch-eb @@ -0,0 +1,11 @@ +*** ./src/global/mail_conf.c.orig Sun May 7 18:51:16 2000 +--- ./src/global/mail_conf.c Thu Jun 1 22:16:29 2000 +*************** +*** 53,55 **** + /* FILES +! /* /etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT +--- 53,55 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT diff --git a/mail/postfix21/files/patch-ee b/mail/postfix21/files/patch-ee new file mode 100644 index 00000000000..ef44eac24b7 --- /dev/null +++ b/mail/postfix21/files/patch-ee @@ -0,0 +1,13 @@ +*** ./src/master/master.c.orig Tue Mar 7 10:25:07 2000 +--- ./src/master/master.c Thu Jun 1 22:43:50 2000 +*************** +*** 104,107 **** + /* FILES +! /* /etc/postfix/main.cf: global configuration file. +! /* /etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. +--- 104,107 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/main.cf: global configuration file. +! /* !!PREFIX!!/etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. diff --git a/mail/postfix21/files/patch-ef b/mail/postfix21/files/patch-ef new file mode 100644 index 00000000000..586b304a103 --- /dev/null +++ b/mail/postfix21/files/patch-ef @@ -0,0 +1,11 @@ +*** ./src/postdrop/postdrop.c.orig Sun Apr 25 18:05:43 1999 +--- ./src/postdrop/postdrop.c Thu Jun 1 22:44:22 2000 +*************** +*** 39,41 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 39,41 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix21/files/patch-eg b/mail/postfix21/files/patch-eg new file mode 100644 index 00000000000..2983bbfd86e --- /dev/null +++ b/mail/postfix21/files/patch-eg @@ -0,0 +1,20 @@ +*** ./src/sendmail/sendmail.c.orig Tue Mar 14 10:42:06 2000 +--- ./src/sendmail/sendmail.c Thu Jun 1 22:47:24 2000 +*************** +*** 57,59 **** + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +--- 57,59 ---- + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB!!PREFIX!!/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +*************** +*** 159,161 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 159,161 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix21/files/patch-eh b/mail/postfix21/files/patch-eh new file mode 100644 index 00000000000..c104c3680d2 --- /dev/null +++ b/mail/postfix21/files/patch-eh @@ -0,0 +1,11 @@ +*** ./src/trivial-rewrite/transport.c.orig Tue Nov 16 19:15:41 1999 +--- ./src/trivial-rewrite/transport.c Thu Jun 1 22:47:49 2000 +*************** +*** 32,34 **** + /* FILES +! /* /etc/postfix/transport* + /* CONFIGURATION PARAMETERS +--- 32,34 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/transport* + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix21/files/patch-ei b/mail/postfix21/files/patch-ei deleted file mode 100644 index 8f03b69ccc5..00000000000 --- a/mail/postfix21/files/patch-ei +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtpd/smtpd.h.orig Thu Sep 14 10:17:23 2000 ---- ./src/smtpd/smtpd.h Thu Sep 14 10:17:38 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix21/files/patch-ej b/mail/postfix21/files/patch-ej deleted file mode 100644 index 329d7bb1cf9..00000000000 --- a/mail/postfix21/files/patch-ej +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtp/smtp.h.orig Thu Sep 14 13:04:43 2000 ---- ./src/smtp/smtp.h Thu Sep 14 13:04:53 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix21/files/patch-lmtp.h b/mail/postfix21/files/patch-lmtp.h deleted file mode 100644 index 86d5975b2b4..00000000000 --- a/mail/postfix21/files/patch-lmtp.h +++ /dev/null @@ -1,13 +0,0 @@ ---- ./src/lmtp/lmtp.h.orig Fri Jan 19 15:43:06 2001 -+++ ./src/lmtp/lmtp.h Sat Feb 3 14:01:09 2001 -@@ -12,8 +12,8 @@ - * SASL library. - */ - #ifdef USE_SASL_AUTH --#include <sasl.h> --#include <saslutil.h> -+#include <sasl1/sasl.h> -+#include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix21/files/patch-main.cf b/mail/postfix21/files/patch-main.cf new file mode 100644 index 00000000000..95fb2feaca0 --- /dev/null +++ b/mail/postfix21/files/patch-main.cf @@ -0,0 +1,58 @@ +--- ./conf/main.cf Wed Jan 8 22:11:52 2003 ++++ ./conf/main.cf Wed Jan 8 22:11:53 2003 +@@ -31,13 +31,13 @@ + # The command_directory parameter specifies the location of all + # postXXX commands. + # +-command_directory = /usr/sbin ++command_directory = /usr/local/sbin + + # The daemon_directory parameter specifies the location of all Postfix + # daemon programs (i.e. programs listed in the master.cf file). This + # directory must be owned by root. + # +-daemon_directory = /usr/libexec/postfix ++daemon_directory = /usr/local/libexec/postfix + + # QUEUE AND PROCESS OWNERSHIP + # +@@ -590,32 +590,32 @@ + # sendmail_path: The full pathname of the Postfix sendmail command. + # This is the Sendmail-compatible mail posting interface. + # +-sendmail_path = ++sendmail_path = /usr/local/sbin/sendmail + + # newaliases_path: The full pathname of the Postfix newaliases command. + # This is the Sendmail-compatible command to build alias databases. + # +-newaliases_path = ++newaliases_path = /usr/local/bin/newaliases + + # mailq_path: The full pathname of the Postfix mailq command. This + # is the Sendmail-compatible mail queue listing command. + # +-mailq_path = ++mailq_path = /usr/local/bin/mailq + + # setgid_group: The group for mail submission and queue management + # commands. This must be a group name with a numerical group ID that + # is not shared with other accounts, not even with the Postfix account. + # +-setgid_group = ++setgid_group = maildrop + + # manpage_directory: The location of the Postfix on-line manual pages. + # +-manpage_directory = ++manpage_directory = /usr/local/man + + # sample_directory: The location of the Postfix sample configuration files. + # +-sample_directory = ++sample_directory = /usr/local/etc/postfix + + # readme_directory: The location of the Postfix README files. + # +-readme_directory = ++readme_directory = no diff --git a/mail/postfix21/pkg-message b/mail/postfix21/pkg-message index 7fb3a804599..a7ae2b17e2a 100644 --- a/mail/postfix21/pkg-message +++ b/mail/postfix21/pkg-message @@ -8,21 +8,10 @@ sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" - **OR** +This will disable Sendmail completely. -sendmail_enable="NONE" -then type this command as root: - -ln -s /usr/local/sbin/postfix /usr/local/etc/rc.d/postfix.sh - -Either of these will disable Sendmail completely. The latter form is useful -if you need to wait until other local package initialization (such as ldconfig -for Postgres or MySQL) is done. The former method will start postfix very -early on in the boot process. - - -Also, you will want to disable some Sendmail-specific daily maintenance +Also, you may wish to disable some Sendmail-specific daily maintenance routines in your /etc/periodic.conf file: daily_status_mail_rejects_enable="NO" diff --git a/mail/postfix21/pkg-plist b/mail/postfix21/pkg-plist index 5b6c3c55d5b..6d882a8666a 100644 --- a/mail/postfix21/pkg-plist +++ b/mail/postfix21/pkg-plist @@ -32,6 +32,7 @@ etc/postfix/sample-lmtp.cf etc/postfix/sample-local.cf etc/postfix/sample-main.cf etc/postfix/sample-master.cf +etc/postfix/sample-mime.cf etc/postfix/sample-misc.cf etc/postfix/sample-pcre-access.cf etc/postfix/sample-pcre-body.cf @@ -86,6 +87,7 @@ bin/newaliases bin/mailq %%SUB_TEST%%sbin/smtp-sink %%SUB_TEST%%sbin/smtp-source +%%PORTDOCS%%share/doc/postfix/ADDRESS_CLASS_README %%PORTDOCS%%share/doc/postfix/DB_README %%PORTDOCS%%share/doc/postfix/DEBUG_README %%PORTDOCS%%share/doc/postfix/ETRN_README @@ -93,13 +95,16 @@ bin/mailq %%PORTDOCS%%share/doc/postfix/INSTALL %%PORTDOCS%%share/doc/postfix/LDAP_README %%PORTDOCS%%share/doc/postfix/LINUX_README +%%PORTDOCS%%share/doc/postfix/LOCAL_RECIPIENT_README %%PORTDOCS%%share/doc/postfix/LMTP_README %%PORTDOCS%%share/doc/postfix/MACOSX_README +%%PORTDOCS%%share/doc/postfix/MAILDROP_README %%PORTDOCS%%share/doc/postfix/MYSQL_README %%PORTDOCS%%share/doc/postfix/NFS_README %%PORTDOCS%%share/doc/postfix/PACKAGE_README %%PORTDOCS%%share/doc/postfix/PCRE_README %%PORTDOCS%%share/doc/postfix/QMQP_README +%%PORTDOCS%%share/doc/postfix/RELEASE_NOTES %%PORTDOCS%%share/doc/postfix/RESTRICTION_CLASS_README %%PORTDOCS%%share/doc/postfix/SASL_README %%PORTDOCS%%share/doc/postfix/ULTRIX_README diff --git a/mail/postfix21/scripts/configure.postfix b/mail/postfix21/scripts/configure.postfix index 79469aa9db6..75467d8d9ba 100644 --- a/mail/postfix21/scripts/configure.postfix +++ b/mail/postfix21/scripts/configure.postfix @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/mail/postfix21/scripts/Attic/configure.postfix,v 1.25 2003-01-04 16:17:26 seanc Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/postfix21/scripts/Attic/configure.postfix,v 1.26 2003-01-09 05:10:39 petef Exp $ if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then exit @@ -22,14 +22,16 @@ if [ -z "${BATCH}" ]; then --checklist "\n\ Please select desired options:" -1 -1 16 \ PCRE "Perl Compatible Regular Expressions" "$status_PCRE" \ -SASL "Cyrus SASL (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \ MySQL "MySQL map lookups" "$status_MySQL" \ PgSQL "PostgreSQL map lookups" "$status_PgSQL" \ OpenLDAP "OpenLDAP map lookups" "$status_OpenLDAP" \ Test "SMTP/LMTP test server and generator" "$status_Test" \ -TLS "Secure Sockets Layer and Transport Layer Security" "$status_TLS" \ -IPv6 "IPv6 support (not KAME official)" "$status_IPv6" \ +TLS "SSL and TLS" "$status_TLS" \ +IPv6 "IPv6 support (currently broken)" "$status_IPv6" \ +IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \ 2> $tempfile retval=$? @@ -58,8 +60,8 @@ echo "PREFIX= ${PREFIX}" SUB_TLS="@comment " SUB_TEST="@comment " -for i; do - case $i in +while [ "$1" ]; do + case $1 in PCRE) echo "LIB_DEPENDS+= pcre.0:\${PORTSDIR}/devel/pcre" echo "POSTFIX_CCARGS+= -DHAS_PCRE -I\${LOCALBASE}/include" @@ -67,13 +69,32 @@ for i; do 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 + 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 ${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="" + ;; + 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 ${PREFIX}/lib/libsasl2.a ]; then + if nm ${PREFIX}/lib/libsasl2.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 @@ -90,8 +111,8 @@ for i; do 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.11a-1.1.11-0.9.6g.tar.gz" - echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.11a-1.1.11-0.9.6g/pfixtls.diff" + echo "DISTFILES+= \${DISTNAME}.tar.gz pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz" + echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.12-2.0.0.1-0.9.6h/pfixtls.diff" echo "PATCH_STRIP= -p1" echo "TLS_SUFFIX= +tls" SUB_TLS="" @@ -132,10 +153,10 @@ for i; do 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 + exit 1 fi - if [ -z $SUB_TLS ]; then - /usr/bin/dialog --msgbox "IPv6 and TLS patch cannot be used simultaneously!" 5 60 > /dev/stderr + if [ X$SUB_TLS = "X" ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 fi @@ -144,15 +165,30 @@ for i; do echo "PATCH_DIST_STRIP= -p1" echo "IPv6_SUFFIX= +ipv6" echo "" + IPv6SELECTED=YES ;; - "") + IPv6TLS) + if [ X$SUB_TLS = "X" -o X$IPv6SELECTED != X ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr + rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + exit 1 + fi + echo "MAN8+= tlsmgr.8" + echo "POSTFIX_CCARGS+= -DHAS_SSL -I/usr/include/openssl" + echo "POSTFIX_AUXLIBS+= -lssl -lcrypto" + echo "PATCH_SITES+= ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.10/" + echo "PATCHFILES+= tls+ipv6-1.10-pf-2.0.0.1.patch.gz" + echo "PATCH_DIST_STRIP= -p1" + echo "TLS_SUFFIX= +ipv6+tls" + SUB_TLS="" ;; *) - echo "Invalid option(s): $*" > /dev/stderr + echo "Unknown option(s): $*" > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 ;; esac + shift done echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\"" diff --git a/mail/postfix22/Makefile b/mail/postfix22/Makefile index 6adf63b1ee8..f75e2d5770b 100644 --- a/mail/postfix22/Makefile +++ b/mail/postfix22/Makefile @@ -9,10 +9,11 @@ # # make -DBATCH POSTFIX_OPTIONS="DB3 PCRE" # -# the options are the same names as in the scripts/configure.postfix file +# the options are the same names as in the scripts/configure.postfix file. +# POSTFIX_OPTIONS can be set in /etc/make.conf also. PORTNAME= postfix -PORTVERSION= 1.1.12 +PORTVERSION= 2.0.0.2 PORTEPOCH= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ @@ -45,6 +46,8 @@ MAN8= bounce.8 cleanup.8 defer.8 error.8 flush.8 lmtp.8 local.8 \ # patch it. MAN8base=$(MAN8:S/tlsmgr.8//) +NO_LATEST_LINK= yes + CONF1= main.cf master.cf access aliases canonical pcre_table regexp_table \ relocated transport virtual diff --git a/mail/postfix22/distinfo b/mail/postfix22/distinfo index 832388cccb9..9ed106bfeb1 100644 --- a/mail/postfix22/distinfo +++ b/mail/postfix22/distinfo @@ -1,4 +1,4 @@ -MD5 (postfix/postfix-1.1.12.tar.gz) = d1d0f9792ec6ea063ccca59184e54212 -MD5 (postfix/pfixtls-0.8.11a-1.1.11-0.9.6g.tar.gz) = 11d82e9a3482f64af9d228f7a4319566 -MD5 (postfix/postfix-1.1.12+ipv6.patch.gz) = add4396ce50ca61b5d9b67454fb51258 +MD5 (postfix/postfix-2.0.0.2.tar.gz) = 1e51a2290d33ee498f9abe91dbb27dc2 +MD5 (postfix/pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz) = 1111b97c77e71b2f7edd9ab6d36fb550 MD5 (postfix/postfix-pg.postfix-1.1.8.patch) = e0f4d910a6d6648d9b48e2244f2764ba +MD5 (postfix/tls+ipv6-1.10-pf-2.0.0.1.patch.gz) = ed18c6933fa81961bcbd1e3a28493487 diff --git a/mail/postfix22/files/patch-bd b/mail/postfix22/files/patch-bd deleted file mode 100644 index ce79695f134..00000000000 --- a/mail/postfix22/files/patch-bd +++ /dev/null @@ -1,11 +0,0 @@ -*** ./html/local.8.html.orig Thu Feb 3 21:15:02 2000 ---- ./html/local.8.html Thu Jun 1 22:22:30 2000 -*************** -*** 99,101 **** - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i> or <b>/var/spool/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> ---- 99,101 ---- - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> diff --git a/mail/postfix22/files/patch-ck b/mail/postfix22/files/patch-ck deleted file mode 100644 index 6e1ddce3c8f..00000000000 --- a/mail/postfix22/files/patch-ck +++ /dev/null @@ -1,11 +0,0 @@ -*** ./man/man8/local.8.orig Thu Feb 3 21:14:53 2000 ---- ./man/man8/local.8 Thu Jun 1 22:42:43 2000 -*************** -*** 96,98 **** - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR or \fB/var/spool/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR ---- 96,98 ---- - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR diff --git a/mail/postfix22/files/patch-ea b/mail/postfix22/files/patch-ea new file mode 100644 index 00000000000..6c3f98d2af4 --- /dev/null +++ b/mail/postfix22/files/patch-ea @@ -0,0 +1,13 @@ +*** ./src/cleanup/cleanup.c.orig Sun May 28 18:33:41 2000 +--- ./src/cleanup/cleanup.c Thu Jun 1 21:52:22 2000 +*************** +*** 118,121 **** + /* FILES +! /* /etc/postfix/canonical*, canonical mapping table +! /* /etc/postfix/virtual*, virtual mapping table + /* LICENSE +--- 118,121 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/canonical*, canonical mapping table +! /* !!PREFIX!!/etc/postfix/virtual*, virtual mapping table + /* LICENSE diff --git a/mail/postfix22/files/patch-eb b/mail/postfix22/files/patch-eb new file mode 100644 index 00000000000..e67680963d2 --- /dev/null +++ b/mail/postfix22/files/patch-eb @@ -0,0 +1,11 @@ +*** ./src/global/mail_conf.c.orig Sun May 7 18:51:16 2000 +--- ./src/global/mail_conf.c Thu Jun 1 22:16:29 2000 +*************** +*** 53,55 **** + /* FILES +! /* /etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT +--- 53,55 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT diff --git a/mail/postfix22/files/patch-ee b/mail/postfix22/files/patch-ee new file mode 100644 index 00000000000..ef44eac24b7 --- /dev/null +++ b/mail/postfix22/files/patch-ee @@ -0,0 +1,13 @@ +*** ./src/master/master.c.orig Tue Mar 7 10:25:07 2000 +--- ./src/master/master.c Thu Jun 1 22:43:50 2000 +*************** +*** 104,107 **** + /* FILES +! /* /etc/postfix/main.cf: global configuration file. +! /* /etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. +--- 104,107 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/main.cf: global configuration file. +! /* !!PREFIX!!/etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. diff --git a/mail/postfix22/files/patch-ef b/mail/postfix22/files/patch-ef new file mode 100644 index 00000000000..586b304a103 --- /dev/null +++ b/mail/postfix22/files/patch-ef @@ -0,0 +1,11 @@ +*** ./src/postdrop/postdrop.c.orig Sun Apr 25 18:05:43 1999 +--- ./src/postdrop/postdrop.c Thu Jun 1 22:44:22 2000 +*************** +*** 39,41 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 39,41 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix22/files/patch-eg b/mail/postfix22/files/patch-eg new file mode 100644 index 00000000000..2983bbfd86e --- /dev/null +++ b/mail/postfix22/files/patch-eg @@ -0,0 +1,20 @@ +*** ./src/sendmail/sendmail.c.orig Tue Mar 14 10:42:06 2000 +--- ./src/sendmail/sendmail.c Thu Jun 1 22:47:24 2000 +*************** +*** 57,59 **** + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +--- 57,59 ---- + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB!!PREFIX!!/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +*************** +*** 159,161 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 159,161 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix22/files/patch-eh b/mail/postfix22/files/patch-eh new file mode 100644 index 00000000000..c104c3680d2 --- /dev/null +++ b/mail/postfix22/files/patch-eh @@ -0,0 +1,11 @@ +*** ./src/trivial-rewrite/transport.c.orig Tue Nov 16 19:15:41 1999 +--- ./src/trivial-rewrite/transport.c Thu Jun 1 22:47:49 2000 +*************** +*** 32,34 **** + /* FILES +! /* /etc/postfix/transport* + /* CONFIGURATION PARAMETERS +--- 32,34 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/transport* + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix22/files/patch-ei b/mail/postfix22/files/patch-ei deleted file mode 100644 index 8f03b69ccc5..00000000000 --- a/mail/postfix22/files/patch-ei +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtpd/smtpd.h.orig Thu Sep 14 10:17:23 2000 ---- ./src/smtpd/smtpd.h Thu Sep 14 10:17:38 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix22/files/patch-ej b/mail/postfix22/files/patch-ej deleted file mode 100644 index 329d7bb1cf9..00000000000 --- a/mail/postfix22/files/patch-ej +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtp/smtp.h.orig Thu Sep 14 13:04:43 2000 ---- ./src/smtp/smtp.h Thu Sep 14 13:04:53 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix22/files/patch-lmtp.h b/mail/postfix22/files/patch-lmtp.h deleted file mode 100644 index 86d5975b2b4..00000000000 --- a/mail/postfix22/files/patch-lmtp.h +++ /dev/null @@ -1,13 +0,0 @@ ---- ./src/lmtp/lmtp.h.orig Fri Jan 19 15:43:06 2001 -+++ ./src/lmtp/lmtp.h Sat Feb 3 14:01:09 2001 -@@ -12,8 +12,8 @@ - * SASL library. - */ - #ifdef USE_SASL_AUTH --#include <sasl.h> --#include <saslutil.h> -+#include <sasl1/sasl.h> -+#include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix22/files/patch-main.cf b/mail/postfix22/files/patch-main.cf new file mode 100644 index 00000000000..95fb2feaca0 --- /dev/null +++ b/mail/postfix22/files/patch-main.cf @@ -0,0 +1,58 @@ +--- ./conf/main.cf Wed Jan 8 22:11:52 2003 ++++ ./conf/main.cf Wed Jan 8 22:11:53 2003 +@@ -31,13 +31,13 @@ + # The command_directory parameter specifies the location of all + # postXXX commands. + # +-command_directory = /usr/sbin ++command_directory = /usr/local/sbin + + # The daemon_directory parameter specifies the location of all Postfix + # daemon programs (i.e. programs listed in the master.cf file). This + # directory must be owned by root. + # +-daemon_directory = /usr/libexec/postfix ++daemon_directory = /usr/local/libexec/postfix + + # QUEUE AND PROCESS OWNERSHIP + # +@@ -590,32 +590,32 @@ + # sendmail_path: The full pathname of the Postfix sendmail command. + # This is the Sendmail-compatible mail posting interface. + # +-sendmail_path = ++sendmail_path = /usr/local/sbin/sendmail + + # newaliases_path: The full pathname of the Postfix newaliases command. + # This is the Sendmail-compatible command to build alias databases. + # +-newaliases_path = ++newaliases_path = /usr/local/bin/newaliases + + # mailq_path: The full pathname of the Postfix mailq command. This + # is the Sendmail-compatible mail queue listing command. + # +-mailq_path = ++mailq_path = /usr/local/bin/mailq + + # setgid_group: The group for mail submission and queue management + # commands. This must be a group name with a numerical group ID that + # is not shared with other accounts, not even with the Postfix account. + # +-setgid_group = ++setgid_group = maildrop + + # manpage_directory: The location of the Postfix on-line manual pages. + # +-manpage_directory = ++manpage_directory = /usr/local/man + + # sample_directory: The location of the Postfix sample configuration files. + # +-sample_directory = ++sample_directory = /usr/local/etc/postfix + + # readme_directory: The location of the Postfix README files. + # +-readme_directory = ++readme_directory = no diff --git a/mail/postfix22/pkg-message b/mail/postfix22/pkg-message index 7fb3a804599..a7ae2b17e2a 100644 --- a/mail/postfix22/pkg-message +++ b/mail/postfix22/pkg-message @@ -8,21 +8,10 @@ sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" - **OR** +This will disable Sendmail completely. -sendmail_enable="NONE" -then type this command as root: - -ln -s /usr/local/sbin/postfix /usr/local/etc/rc.d/postfix.sh - -Either of these will disable Sendmail completely. The latter form is useful -if you need to wait until other local package initialization (such as ldconfig -for Postgres or MySQL) is done. The former method will start postfix very -early on in the boot process. - - -Also, you will want to disable some Sendmail-specific daily maintenance +Also, you may wish to disable some Sendmail-specific daily maintenance routines in your /etc/periodic.conf file: daily_status_mail_rejects_enable="NO" diff --git a/mail/postfix22/pkg-plist b/mail/postfix22/pkg-plist index 5b6c3c55d5b..6d882a8666a 100644 --- a/mail/postfix22/pkg-plist +++ b/mail/postfix22/pkg-plist @@ -32,6 +32,7 @@ etc/postfix/sample-lmtp.cf etc/postfix/sample-local.cf etc/postfix/sample-main.cf etc/postfix/sample-master.cf +etc/postfix/sample-mime.cf etc/postfix/sample-misc.cf etc/postfix/sample-pcre-access.cf etc/postfix/sample-pcre-body.cf @@ -86,6 +87,7 @@ bin/newaliases bin/mailq %%SUB_TEST%%sbin/smtp-sink %%SUB_TEST%%sbin/smtp-source +%%PORTDOCS%%share/doc/postfix/ADDRESS_CLASS_README %%PORTDOCS%%share/doc/postfix/DB_README %%PORTDOCS%%share/doc/postfix/DEBUG_README %%PORTDOCS%%share/doc/postfix/ETRN_README @@ -93,13 +95,16 @@ bin/mailq %%PORTDOCS%%share/doc/postfix/INSTALL %%PORTDOCS%%share/doc/postfix/LDAP_README %%PORTDOCS%%share/doc/postfix/LINUX_README +%%PORTDOCS%%share/doc/postfix/LOCAL_RECIPIENT_README %%PORTDOCS%%share/doc/postfix/LMTP_README %%PORTDOCS%%share/doc/postfix/MACOSX_README +%%PORTDOCS%%share/doc/postfix/MAILDROP_README %%PORTDOCS%%share/doc/postfix/MYSQL_README %%PORTDOCS%%share/doc/postfix/NFS_README %%PORTDOCS%%share/doc/postfix/PACKAGE_README %%PORTDOCS%%share/doc/postfix/PCRE_README %%PORTDOCS%%share/doc/postfix/QMQP_README +%%PORTDOCS%%share/doc/postfix/RELEASE_NOTES %%PORTDOCS%%share/doc/postfix/RESTRICTION_CLASS_README %%PORTDOCS%%share/doc/postfix/SASL_README %%PORTDOCS%%share/doc/postfix/ULTRIX_README diff --git a/mail/postfix22/scripts/configure.postfix b/mail/postfix22/scripts/configure.postfix index 79715fb882b..c761c5e8de0 100644 --- a/mail/postfix22/scripts/configure.postfix +++ b/mail/postfix22/scripts/configure.postfix @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/mail/postfix22/scripts/Attic/configure.postfix,v 1.25 2003-01-04 16:17:26 seanc Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/postfix22/scripts/Attic/configure.postfix,v 1.26 2003-01-09 05:10:39 petef Exp $ if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then exit @@ -22,14 +22,16 @@ if [ -z "${BATCH}" ]; then --checklist "\n\ Please select desired options:" -1 -1 16 \ PCRE "Perl Compatible Regular Expressions" "$status_PCRE" \ -SASL "Cyrus SASL (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \ MySQL "MySQL map lookups" "$status_MySQL" \ PgSQL "PostgreSQL map lookups" "$status_PgSQL" \ OpenLDAP "OpenLDAP map lookups" "$status_OpenLDAP" \ Test "SMTP/LMTP test server and generator" "$status_Test" \ -TLS "Secure Sockets Layer and Transport Layer Security" "$status_TLS" \ -IPv6 "IPv6 support (not KAME official)" "$status_IPv6" \ +TLS "SSL and TLS" "$status_TLS" \ +IPv6 "IPv6 support (currently broken)" "$status_IPv6" \ +IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \ 2> $tempfile retval=$? @@ -58,8 +60,8 @@ echo "PREFIX= ${PREFIX}" SUB_TLS="@comment " SUB_TEST="@comment " -for i; do - case $i in +while [ "$1" ]; do + case $1 in PCRE) echo "LIB_DEPENDS+= pcre.0:\${PORTSDIR}/devel/pcre" echo "POSTFIX_CCARGS+= -DHAS_PCRE -I\${LOCALBASE}/include" @@ -67,13 +69,32 @@ for i; do 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 + 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 ${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="" + ;; + 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 ${PREFIX}/lib/libsasl2.a ]; then + if nm ${PREFIX}/lib/libsasl2.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 @@ -90,8 +111,8 @@ for i; do 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.11a-1.1.11-0.9.6g.tar.gz" - echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.11a-1.1.11-0.9.6g/pfixtls.diff" + echo "DISTFILES+= \${DISTNAME}.tar.gz pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz" + echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.12-2.0.0.1-0.9.6h/pfixtls.diff" echo "PATCH_STRIP= -p1" echo "TLS_SUFFIX= +tls" SUB_TLS="" @@ -132,10 +153,10 @@ for i; do 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 + exit 1 fi - if [ -z $SUB_TLS ]; then - /usr/bin/dialog --msgbox "IPv6 and TLS patch cannot be used simultaneously!" 5 60 > /dev/stderr + if [ X$SUB_TLS = "X" ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 fi @@ -144,15 +165,30 @@ for i; do echo "PATCH_DIST_STRIP= -p1" echo "IPv6_SUFFIX= +ipv6" echo "" + IPv6SELECTED=YES ;; - "") + IPv6TLS) + if [ X$SUB_TLS = "X" -o X$IPv6SELECTED != X ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr + rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + exit 1 + fi + echo "MAN8+= tlsmgr.8" + echo "POSTFIX_CCARGS+= -DHAS_SSL -I/usr/include/openssl" + echo "POSTFIX_AUXLIBS+= -lssl -lcrypto" + echo "PATCH_SITES+= ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.10/" + echo "PATCHFILES+= tls+ipv6-1.10-pf-2.0.0.1.patch.gz" + echo "PATCH_DIST_STRIP= -p1" + echo "TLS_SUFFIX= +ipv6+tls" + SUB_TLS="" ;; *) - echo "Invalid option(s): $*" > /dev/stderr + echo "Unknown option(s): $*" > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 ;; esac + shift done echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\"" diff --git a/mail/postfix23/Makefile b/mail/postfix23/Makefile index 6adf63b1ee8..f75e2d5770b 100644 --- a/mail/postfix23/Makefile +++ b/mail/postfix23/Makefile @@ -9,10 +9,11 @@ # # make -DBATCH POSTFIX_OPTIONS="DB3 PCRE" # -# the options are the same names as in the scripts/configure.postfix file +# the options are the same names as in the scripts/configure.postfix file. +# POSTFIX_OPTIONS can be set in /etc/make.conf also. PORTNAME= postfix -PORTVERSION= 1.1.12 +PORTVERSION= 2.0.0.2 PORTEPOCH= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ @@ -45,6 +46,8 @@ MAN8= bounce.8 cleanup.8 defer.8 error.8 flush.8 lmtp.8 local.8 \ # patch it. MAN8base=$(MAN8:S/tlsmgr.8//) +NO_LATEST_LINK= yes + CONF1= main.cf master.cf access aliases canonical pcre_table regexp_table \ relocated transport virtual diff --git a/mail/postfix23/distinfo b/mail/postfix23/distinfo index 832388cccb9..9ed106bfeb1 100644 --- a/mail/postfix23/distinfo +++ b/mail/postfix23/distinfo @@ -1,4 +1,4 @@ -MD5 (postfix/postfix-1.1.12.tar.gz) = d1d0f9792ec6ea063ccca59184e54212 -MD5 (postfix/pfixtls-0.8.11a-1.1.11-0.9.6g.tar.gz) = 11d82e9a3482f64af9d228f7a4319566 -MD5 (postfix/postfix-1.1.12+ipv6.patch.gz) = add4396ce50ca61b5d9b67454fb51258 +MD5 (postfix/postfix-2.0.0.2.tar.gz) = 1e51a2290d33ee498f9abe91dbb27dc2 +MD5 (postfix/pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz) = 1111b97c77e71b2f7edd9ab6d36fb550 MD5 (postfix/postfix-pg.postfix-1.1.8.patch) = e0f4d910a6d6648d9b48e2244f2764ba +MD5 (postfix/tls+ipv6-1.10-pf-2.0.0.1.patch.gz) = ed18c6933fa81961bcbd1e3a28493487 diff --git a/mail/postfix23/files/patch-bd b/mail/postfix23/files/patch-bd deleted file mode 100644 index ce79695f134..00000000000 --- a/mail/postfix23/files/patch-bd +++ /dev/null @@ -1,11 +0,0 @@ -*** ./html/local.8.html.orig Thu Feb 3 21:15:02 2000 ---- ./html/local.8.html Thu Jun 1 22:22:30 2000 -*************** -*** 99,101 **** - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i> or <b>/var/spool/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> ---- 99,101 ---- - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> diff --git a/mail/postfix23/files/patch-ck b/mail/postfix23/files/patch-ck deleted file mode 100644 index 6e1ddce3c8f..00000000000 --- a/mail/postfix23/files/patch-ck +++ /dev/null @@ -1,11 +0,0 @@ -*** ./man/man8/local.8.orig Thu Feb 3 21:14:53 2000 ---- ./man/man8/local.8 Thu Jun 1 22:42:43 2000 -*************** -*** 96,98 **** - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR or \fB/var/spool/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR ---- 96,98 ---- - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR diff --git a/mail/postfix23/files/patch-ea b/mail/postfix23/files/patch-ea new file mode 100644 index 00000000000..6c3f98d2af4 --- /dev/null +++ b/mail/postfix23/files/patch-ea @@ -0,0 +1,13 @@ +*** ./src/cleanup/cleanup.c.orig Sun May 28 18:33:41 2000 +--- ./src/cleanup/cleanup.c Thu Jun 1 21:52:22 2000 +*************** +*** 118,121 **** + /* FILES +! /* /etc/postfix/canonical*, canonical mapping table +! /* /etc/postfix/virtual*, virtual mapping table + /* LICENSE +--- 118,121 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/canonical*, canonical mapping table +! /* !!PREFIX!!/etc/postfix/virtual*, virtual mapping table + /* LICENSE diff --git a/mail/postfix23/files/patch-eb b/mail/postfix23/files/patch-eb new file mode 100644 index 00000000000..e67680963d2 --- /dev/null +++ b/mail/postfix23/files/patch-eb @@ -0,0 +1,11 @@ +*** ./src/global/mail_conf.c.orig Sun May 7 18:51:16 2000 +--- ./src/global/mail_conf.c Thu Jun 1 22:16:29 2000 +*************** +*** 53,55 **** + /* FILES +! /* /etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT +--- 53,55 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT diff --git a/mail/postfix23/files/patch-ee b/mail/postfix23/files/patch-ee new file mode 100644 index 00000000000..ef44eac24b7 --- /dev/null +++ b/mail/postfix23/files/patch-ee @@ -0,0 +1,13 @@ +*** ./src/master/master.c.orig Tue Mar 7 10:25:07 2000 +--- ./src/master/master.c Thu Jun 1 22:43:50 2000 +*************** +*** 104,107 **** + /* FILES +! /* /etc/postfix/main.cf: global configuration file. +! /* /etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. +--- 104,107 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/main.cf: global configuration file. +! /* !!PREFIX!!/etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. diff --git a/mail/postfix23/files/patch-ef b/mail/postfix23/files/patch-ef new file mode 100644 index 00000000000..586b304a103 --- /dev/null +++ b/mail/postfix23/files/patch-ef @@ -0,0 +1,11 @@ +*** ./src/postdrop/postdrop.c.orig Sun Apr 25 18:05:43 1999 +--- ./src/postdrop/postdrop.c Thu Jun 1 22:44:22 2000 +*************** +*** 39,41 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 39,41 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix23/files/patch-eg b/mail/postfix23/files/patch-eg new file mode 100644 index 00000000000..2983bbfd86e --- /dev/null +++ b/mail/postfix23/files/patch-eg @@ -0,0 +1,20 @@ +*** ./src/sendmail/sendmail.c.orig Tue Mar 14 10:42:06 2000 +--- ./src/sendmail/sendmail.c Thu Jun 1 22:47:24 2000 +*************** +*** 57,59 **** + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +--- 57,59 ---- + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB!!PREFIX!!/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +*************** +*** 159,161 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 159,161 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix23/files/patch-eh b/mail/postfix23/files/patch-eh new file mode 100644 index 00000000000..c104c3680d2 --- /dev/null +++ b/mail/postfix23/files/patch-eh @@ -0,0 +1,11 @@ +*** ./src/trivial-rewrite/transport.c.orig Tue Nov 16 19:15:41 1999 +--- ./src/trivial-rewrite/transport.c Thu Jun 1 22:47:49 2000 +*************** +*** 32,34 **** + /* FILES +! /* /etc/postfix/transport* + /* CONFIGURATION PARAMETERS +--- 32,34 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/transport* + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix23/files/patch-ei b/mail/postfix23/files/patch-ei deleted file mode 100644 index 8f03b69ccc5..00000000000 --- a/mail/postfix23/files/patch-ei +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtpd/smtpd.h.orig Thu Sep 14 10:17:23 2000 ---- ./src/smtpd/smtpd.h Thu Sep 14 10:17:38 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix23/files/patch-ej b/mail/postfix23/files/patch-ej deleted file mode 100644 index 329d7bb1cf9..00000000000 --- a/mail/postfix23/files/patch-ej +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtp/smtp.h.orig Thu Sep 14 13:04:43 2000 ---- ./src/smtp/smtp.h Thu Sep 14 13:04:53 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix23/files/patch-lmtp.h b/mail/postfix23/files/patch-lmtp.h deleted file mode 100644 index 86d5975b2b4..00000000000 --- a/mail/postfix23/files/patch-lmtp.h +++ /dev/null @@ -1,13 +0,0 @@ ---- ./src/lmtp/lmtp.h.orig Fri Jan 19 15:43:06 2001 -+++ ./src/lmtp/lmtp.h Sat Feb 3 14:01:09 2001 -@@ -12,8 +12,8 @@ - * SASL library. - */ - #ifdef USE_SASL_AUTH --#include <sasl.h> --#include <saslutil.h> -+#include <sasl1/sasl.h> -+#include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix23/files/patch-main.cf b/mail/postfix23/files/patch-main.cf new file mode 100644 index 00000000000..95fb2feaca0 --- /dev/null +++ b/mail/postfix23/files/patch-main.cf @@ -0,0 +1,58 @@ +--- ./conf/main.cf Wed Jan 8 22:11:52 2003 ++++ ./conf/main.cf Wed Jan 8 22:11:53 2003 +@@ -31,13 +31,13 @@ + # The command_directory parameter specifies the location of all + # postXXX commands. + # +-command_directory = /usr/sbin ++command_directory = /usr/local/sbin + + # The daemon_directory parameter specifies the location of all Postfix + # daemon programs (i.e. programs listed in the master.cf file). This + # directory must be owned by root. + # +-daemon_directory = /usr/libexec/postfix ++daemon_directory = /usr/local/libexec/postfix + + # QUEUE AND PROCESS OWNERSHIP + # +@@ -590,32 +590,32 @@ + # sendmail_path: The full pathname of the Postfix sendmail command. + # This is the Sendmail-compatible mail posting interface. + # +-sendmail_path = ++sendmail_path = /usr/local/sbin/sendmail + + # newaliases_path: The full pathname of the Postfix newaliases command. + # This is the Sendmail-compatible command to build alias databases. + # +-newaliases_path = ++newaliases_path = /usr/local/bin/newaliases + + # mailq_path: The full pathname of the Postfix mailq command. This + # is the Sendmail-compatible mail queue listing command. + # +-mailq_path = ++mailq_path = /usr/local/bin/mailq + + # setgid_group: The group for mail submission and queue management + # commands. This must be a group name with a numerical group ID that + # is not shared with other accounts, not even with the Postfix account. + # +-setgid_group = ++setgid_group = maildrop + + # manpage_directory: The location of the Postfix on-line manual pages. + # +-manpage_directory = ++manpage_directory = /usr/local/man + + # sample_directory: The location of the Postfix sample configuration files. + # +-sample_directory = ++sample_directory = /usr/local/etc/postfix + + # readme_directory: The location of the Postfix README files. + # +-readme_directory = ++readme_directory = no diff --git a/mail/postfix23/pkg-message b/mail/postfix23/pkg-message index 7fb3a804599..a7ae2b17e2a 100644 --- a/mail/postfix23/pkg-message +++ b/mail/postfix23/pkg-message @@ -8,21 +8,10 @@ sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" - **OR** +This will disable Sendmail completely. -sendmail_enable="NONE" -then type this command as root: - -ln -s /usr/local/sbin/postfix /usr/local/etc/rc.d/postfix.sh - -Either of these will disable Sendmail completely. The latter form is useful -if you need to wait until other local package initialization (such as ldconfig -for Postgres or MySQL) is done. The former method will start postfix very -early on in the boot process. - - -Also, you will want to disable some Sendmail-specific daily maintenance +Also, you may wish to disable some Sendmail-specific daily maintenance routines in your /etc/periodic.conf file: daily_status_mail_rejects_enable="NO" diff --git a/mail/postfix23/pkg-plist b/mail/postfix23/pkg-plist index 5b6c3c55d5b..6d882a8666a 100644 --- a/mail/postfix23/pkg-plist +++ b/mail/postfix23/pkg-plist @@ -32,6 +32,7 @@ etc/postfix/sample-lmtp.cf etc/postfix/sample-local.cf etc/postfix/sample-main.cf etc/postfix/sample-master.cf +etc/postfix/sample-mime.cf etc/postfix/sample-misc.cf etc/postfix/sample-pcre-access.cf etc/postfix/sample-pcre-body.cf @@ -86,6 +87,7 @@ bin/newaliases bin/mailq %%SUB_TEST%%sbin/smtp-sink %%SUB_TEST%%sbin/smtp-source +%%PORTDOCS%%share/doc/postfix/ADDRESS_CLASS_README %%PORTDOCS%%share/doc/postfix/DB_README %%PORTDOCS%%share/doc/postfix/DEBUG_README %%PORTDOCS%%share/doc/postfix/ETRN_README @@ -93,13 +95,16 @@ bin/mailq %%PORTDOCS%%share/doc/postfix/INSTALL %%PORTDOCS%%share/doc/postfix/LDAP_README %%PORTDOCS%%share/doc/postfix/LINUX_README +%%PORTDOCS%%share/doc/postfix/LOCAL_RECIPIENT_README %%PORTDOCS%%share/doc/postfix/LMTP_README %%PORTDOCS%%share/doc/postfix/MACOSX_README +%%PORTDOCS%%share/doc/postfix/MAILDROP_README %%PORTDOCS%%share/doc/postfix/MYSQL_README %%PORTDOCS%%share/doc/postfix/NFS_README %%PORTDOCS%%share/doc/postfix/PACKAGE_README %%PORTDOCS%%share/doc/postfix/PCRE_README %%PORTDOCS%%share/doc/postfix/QMQP_README +%%PORTDOCS%%share/doc/postfix/RELEASE_NOTES %%PORTDOCS%%share/doc/postfix/RESTRICTION_CLASS_README %%PORTDOCS%%share/doc/postfix/SASL_README %%PORTDOCS%%share/doc/postfix/ULTRIX_README diff --git a/mail/postfix23/scripts/configure.postfix b/mail/postfix23/scripts/configure.postfix index 2bf10a49bb3..8fdd9b1abfe 100644 --- a/mail/postfix23/scripts/configure.postfix +++ b/mail/postfix23/scripts/configure.postfix @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/mail/postfix23/scripts/Attic/configure.postfix,v 1.25 2003-01-04 16:17:26 seanc Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/postfix23/scripts/Attic/configure.postfix,v 1.26 2003-01-09 05:10:39 petef Exp $ if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then exit @@ -22,14 +22,16 @@ if [ -z "${BATCH}" ]; then --checklist "\n\ Please select desired options:" -1 -1 16 \ PCRE "Perl Compatible Regular Expressions" "$status_PCRE" \ -SASL "Cyrus SASL (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \ MySQL "MySQL map lookups" "$status_MySQL" \ PgSQL "PostgreSQL map lookups" "$status_PgSQL" \ OpenLDAP "OpenLDAP map lookups" "$status_OpenLDAP" \ Test "SMTP/LMTP test server and generator" "$status_Test" \ -TLS "Secure Sockets Layer and Transport Layer Security" "$status_TLS" \ -IPv6 "IPv6 support (not KAME official)" "$status_IPv6" \ +TLS "SSL and TLS" "$status_TLS" \ +IPv6 "IPv6 support (currently broken)" "$status_IPv6" \ +IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \ 2> $tempfile retval=$? @@ -58,8 +60,8 @@ echo "PREFIX= ${PREFIX}" SUB_TLS="@comment " SUB_TEST="@comment " -for i; do - case $i in +while [ "$1" ]; do + case $1 in PCRE) echo "LIB_DEPENDS+= pcre.0:\${PORTSDIR}/devel/pcre" echo "POSTFIX_CCARGS+= -DHAS_PCRE -I\${LOCALBASE}/include" @@ -67,13 +69,32 @@ for i; do 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 + 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 ${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="" + ;; + 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 ${PREFIX}/lib/libsasl2.a ]; then + if nm ${PREFIX}/lib/libsasl2.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 @@ -90,8 +111,8 @@ for i; do 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.11a-1.1.11-0.9.6g.tar.gz" - echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.11a-1.1.11-0.9.6g/pfixtls.diff" + echo "DISTFILES+= \${DISTNAME}.tar.gz pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz" + echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.12-2.0.0.1-0.9.6h/pfixtls.diff" echo "PATCH_STRIP= -p1" echo "TLS_SUFFIX= +tls" SUB_TLS="" @@ -132,10 +153,10 @@ for i; do 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 + exit 1 fi - if [ -z $SUB_TLS ]; then - /usr/bin/dialog --msgbox "IPv6 and TLS patch cannot be used simultaneously!" 5 60 > /dev/stderr + if [ X$SUB_TLS = "X" ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 fi @@ -144,15 +165,30 @@ for i; do echo "PATCH_DIST_STRIP= -p1" echo "IPv6_SUFFIX= +ipv6" echo "" + IPv6SELECTED=YES ;; - "") + IPv6TLS) + if [ X$SUB_TLS = "X" -o X$IPv6SELECTED != X ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr + rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + exit 1 + fi + echo "MAN8+= tlsmgr.8" + echo "POSTFIX_CCARGS+= -DHAS_SSL -I/usr/include/openssl" + echo "POSTFIX_AUXLIBS+= -lssl -lcrypto" + echo "PATCH_SITES+= ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.10/" + echo "PATCHFILES+= tls+ipv6-1.10-pf-2.0.0.1.patch.gz" + echo "PATCH_DIST_STRIP= -p1" + echo "TLS_SUFFIX= +ipv6+tls" + SUB_TLS="" ;; *) - echo "Invalid option(s): $*" > /dev/stderr + echo "Unknown option(s): $*" > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 ;; esac + shift done echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\"" diff --git a/mail/postfix24/Makefile b/mail/postfix24/Makefile index 6adf63b1ee8..f75e2d5770b 100644 --- a/mail/postfix24/Makefile +++ b/mail/postfix24/Makefile @@ -9,10 +9,11 @@ # # make -DBATCH POSTFIX_OPTIONS="DB3 PCRE" # -# the options are the same names as in the scripts/configure.postfix file +# the options are the same names as in the scripts/configure.postfix file. +# POSTFIX_OPTIONS can be set in /etc/make.conf also. PORTNAME= postfix -PORTVERSION= 1.1.12 +PORTVERSION= 2.0.0.2 PORTEPOCH= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ @@ -45,6 +46,8 @@ MAN8= bounce.8 cleanup.8 defer.8 error.8 flush.8 lmtp.8 local.8 \ # patch it. MAN8base=$(MAN8:S/tlsmgr.8//) +NO_LATEST_LINK= yes + CONF1= main.cf master.cf access aliases canonical pcre_table regexp_table \ relocated transport virtual diff --git a/mail/postfix24/distinfo b/mail/postfix24/distinfo index 832388cccb9..9ed106bfeb1 100644 --- a/mail/postfix24/distinfo +++ b/mail/postfix24/distinfo @@ -1,4 +1,4 @@ -MD5 (postfix/postfix-1.1.12.tar.gz) = d1d0f9792ec6ea063ccca59184e54212 -MD5 (postfix/pfixtls-0.8.11a-1.1.11-0.9.6g.tar.gz) = 11d82e9a3482f64af9d228f7a4319566 -MD5 (postfix/postfix-1.1.12+ipv6.patch.gz) = add4396ce50ca61b5d9b67454fb51258 +MD5 (postfix/postfix-2.0.0.2.tar.gz) = 1e51a2290d33ee498f9abe91dbb27dc2 +MD5 (postfix/pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz) = 1111b97c77e71b2f7edd9ab6d36fb550 MD5 (postfix/postfix-pg.postfix-1.1.8.patch) = e0f4d910a6d6648d9b48e2244f2764ba +MD5 (postfix/tls+ipv6-1.10-pf-2.0.0.1.patch.gz) = ed18c6933fa81961bcbd1e3a28493487 diff --git a/mail/postfix24/files/patch-bd b/mail/postfix24/files/patch-bd deleted file mode 100644 index ce79695f134..00000000000 --- a/mail/postfix24/files/patch-bd +++ /dev/null @@ -1,11 +0,0 @@ -*** ./html/local.8.html.orig Thu Feb 3 21:15:02 2000 ---- ./html/local.8.html Thu Jun 1 22:22:30 2000 -*************** -*** 99,101 **** - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i> or <b>/var/spool/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> ---- 99,101 ---- - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> diff --git a/mail/postfix24/files/patch-ck b/mail/postfix24/files/patch-ck deleted file mode 100644 index 6e1ddce3c8f..00000000000 --- a/mail/postfix24/files/patch-ck +++ /dev/null @@ -1,11 +0,0 @@ -*** ./man/man8/local.8.orig Thu Feb 3 21:14:53 2000 ---- ./man/man8/local.8 Thu Jun 1 22:42:43 2000 -*************** -*** 96,98 **** - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR or \fB/var/spool/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR ---- 96,98 ---- - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR diff --git a/mail/postfix24/files/patch-ea b/mail/postfix24/files/patch-ea new file mode 100644 index 00000000000..6c3f98d2af4 --- /dev/null +++ b/mail/postfix24/files/patch-ea @@ -0,0 +1,13 @@ +*** ./src/cleanup/cleanup.c.orig Sun May 28 18:33:41 2000 +--- ./src/cleanup/cleanup.c Thu Jun 1 21:52:22 2000 +*************** +*** 118,121 **** + /* FILES +! /* /etc/postfix/canonical*, canonical mapping table +! /* /etc/postfix/virtual*, virtual mapping table + /* LICENSE +--- 118,121 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/canonical*, canonical mapping table +! /* !!PREFIX!!/etc/postfix/virtual*, virtual mapping table + /* LICENSE diff --git a/mail/postfix24/files/patch-eb b/mail/postfix24/files/patch-eb new file mode 100644 index 00000000000..e67680963d2 --- /dev/null +++ b/mail/postfix24/files/patch-eb @@ -0,0 +1,11 @@ +*** ./src/global/mail_conf.c.orig Sun May 7 18:51:16 2000 +--- ./src/global/mail_conf.c Thu Jun 1 22:16:29 2000 +*************** +*** 53,55 **** + /* FILES +! /* /etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT +--- 53,55 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT diff --git a/mail/postfix24/files/patch-ee b/mail/postfix24/files/patch-ee new file mode 100644 index 00000000000..ef44eac24b7 --- /dev/null +++ b/mail/postfix24/files/patch-ee @@ -0,0 +1,13 @@ +*** ./src/master/master.c.orig Tue Mar 7 10:25:07 2000 +--- ./src/master/master.c Thu Jun 1 22:43:50 2000 +*************** +*** 104,107 **** + /* FILES +! /* /etc/postfix/main.cf: global configuration file. +! /* /etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. +--- 104,107 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/main.cf: global configuration file. +! /* !!PREFIX!!/etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. diff --git a/mail/postfix24/files/patch-ef b/mail/postfix24/files/patch-ef new file mode 100644 index 00000000000..586b304a103 --- /dev/null +++ b/mail/postfix24/files/patch-ef @@ -0,0 +1,11 @@ +*** ./src/postdrop/postdrop.c.orig Sun Apr 25 18:05:43 1999 +--- ./src/postdrop/postdrop.c Thu Jun 1 22:44:22 2000 +*************** +*** 39,41 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 39,41 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix24/files/patch-eg b/mail/postfix24/files/patch-eg new file mode 100644 index 00000000000..2983bbfd86e --- /dev/null +++ b/mail/postfix24/files/patch-eg @@ -0,0 +1,20 @@ +*** ./src/sendmail/sendmail.c.orig Tue Mar 14 10:42:06 2000 +--- ./src/sendmail/sendmail.c Thu Jun 1 22:47:24 2000 +*************** +*** 57,59 **** + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +--- 57,59 ---- + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB!!PREFIX!!/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +*************** +*** 159,161 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 159,161 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix24/files/patch-eh b/mail/postfix24/files/patch-eh new file mode 100644 index 00000000000..c104c3680d2 --- /dev/null +++ b/mail/postfix24/files/patch-eh @@ -0,0 +1,11 @@ +*** ./src/trivial-rewrite/transport.c.orig Tue Nov 16 19:15:41 1999 +--- ./src/trivial-rewrite/transport.c Thu Jun 1 22:47:49 2000 +*************** +*** 32,34 **** + /* FILES +! /* /etc/postfix/transport* + /* CONFIGURATION PARAMETERS +--- 32,34 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/transport* + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix24/files/patch-ei b/mail/postfix24/files/patch-ei deleted file mode 100644 index 8f03b69ccc5..00000000000 --- a/mail/postfix24/files/patch-ei +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtpd/smtpd.h.orig Thu Sep 14 10:17:23 2000 ---- ./src/smtpd/smtpd.h Thu Sep 14 10:17:38 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix24/files/patch-ej b/mail/postfix24/files/patch-ej deleted file mode 100644 index 329d7bb1cf9..00000000000 --- a/mail/postfix24/files/patch-ej +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtp/smtp.h.orig Thu Sep 14 13:04:43 2000 ---- ./src/smtp/smtp.h Thu Sep 14 13:04:53 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix24/files/patch-lmtp.h b/mail/postfix24/files/patch-lmtp.h deleted file mode 100644 index 86d5975b2b4..00000000000 --- a/mail/postfix24/files/patch-lmtp.h +++ /dev/null @@ -1,13 +0,0 @@ ---- ./src/lmtp/lmtp.h.orig Fri Jan 19 15:43:06 2001 -+++ ./src/lmtp/lmtp.h Sat Feb 3 14:01:09 2001 -@@ -12,8 +12,8 @@ - * SASL library. - */ - #ifdef USE_SASL_AUTH --#include <sasl.h> --#include <saslutil.h> -+#include <sasl1/sasl.h> -+#include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix24/files/patch-main.cf b/mail/postfix24/files/patch-main.cf new file mode 100644 index 00000000000..95fb2feaca0 --- /dev/null +++ b/mail/postfix24/files/patch-main.cf @@ -0,0 +1,58 @@ +--- ./conf/main.cf Wed Jan 8 22:11:52 2003 ++++ ./conf/main.cf Wed Jan 8 22:11:53 2003 +@@ -31,13 +31,13 @@ + # The command_directory parameter specifies the location of all + # postXXX commands. + # +-command_directory = /usr/sbin ++command_directory = /usr/local/sbin + + # The daemon_directory parameter specifies the location of all Postfix + # daemon programs (i.e. programs listed in the master.cf file). This + # directory must be owned by root. + # +-daemon_directory = /usr/libexec/postfix ++daemon_directory = /usr/local/libexec/postfix + + # QUEUE AND PROCESS OWNERSHIP + # +@@ -590,32 +590,32 @@ + # sendmail_path: The full pathname of the Postfix sendmail command. + # This is the Sendmail-compatible mail posting interface. + # +-sendmail_path = ++sendmail_path = /usr/local/sbin/sendmail + + # newaliases_path: The full pathname of the Postfix newaliases command. + # This is the Sendmail-compatible command to build alias databases. + # +-newaliases_path = ++newaliases_path = /usr/local/bin/newaliases + + # mailq_path: The full pathname of the Postfix mailq command. This + # is the Sendmail-compatible mail queue listing command. + # +-mailq_path = ++mailq_path = /usr/local/bin/mailq + + # setgid_group: The group for mail submission and queue management + # commands. This must be a group name with a numerical group ID that + # is not shared with other accounts, not even with the Postfix account. + # +-setgid_group = ++setgid_group = maildrop + + # manpage_directory: The location of the Postfix on-line manual pages. + # +-manpage_directory = ++manpage_directory = /usr/local/man + + # sample_directory: The location of the Postfix sample configuration files. + # +-sample_directory = ++sample_directory = /usr/local/etc/postfix + + # readme_directory: The location of the Postfix README files. + # +-readme_directory = ++readme_directory = no diff --git a/mail/postfix24/pkg-message b/mail/postfix24/pkg-message index 7fb3a804599..a7ae2b17e2a 100644 --- a/mail/postfix24/pkg-message +++ b/mail/postfix24/pkg-message @@ -8,21 +8,10 @@ sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" - **OR** +This will disable Sendmail completely. -sendmail_enable="NONE" -then type this command as root: - -ln -s /usr/local/sbin/postfix /usr/local/etc/rc.d/postfix.sh - -Either of these will disable Sendmail completely. The latter form is useful -if you need to wait until other local package initialization (such as ldconfig -for Postgres or MySQL) is done. The former method will start postfix very -early on in the boot process. - - -Also, you will want to disable some Sendmail-specific daily maintenance +Also, you may wish to disable some Sendmail-specific daily maintenance routines in your /etc/periodic.conf file: daily_status_mail_rejects_enable="NO" diff --git a/mail/postfix24/pkg-plist b/mail/postfix24/pkg-plist index 5b6c3c55d5b..6d882a8666a 100644 --- a/mail/postfix24/pkg-plist +++ b/mail/postfix24/pkg-plist @@ -32,6 +32,7 @@ etc/postfix/sample-lmtp.cf etc/postfix/sample-local.cf etc/postfix/sample-main.cf etc/postfix/sample-master.cf +etc/postfix/sample-mime.cf etc/postfix/sample-misc.cf etc/postfix/sample-pcre-access.cf etc/postfix/sample-pcre-body.cf @@ -86,6 +87,7 @@ bin/newaliases bin/mailq %%SUB_TEST%%sbin/smtp-sink %%SUB_TEST%%sbin/smtp-source +%%PORTDOCS%%share/doc/postfix/ADDRESS_CLASS_README %%PORTDOCS%%share/doc/postfix/DB_README %%PORTDOCS%%share/doc/postfix/DEBUG_README %%PORTDOCS%%share/doc/postfix/ETRN_README @@ -93,13 +95,16 @@ bin/mailq %%PORTDOCS%%share/doc/postfix/INSTALL %%PORTDOCS%%share/doc/postfix/LDAP_README %%PORTDOCS%%share/doc/postfix/LINUX_README +%%PORTDOCS%%share/doc/postfix/LOCAL_RECIPIENT_README %%PORTDOCS%%share/doc/postfix/LMTP_README %%PORTDOCS%%share/doc/postfix/MACOSX_README +%%PORTDOCS%%share/doc/postfix/MAILDROP_README %%PORTDOCS%%share/doc/postfix/MYSQL_README %%PORTDOCS%%share/doc/postfix/NFS_README %%PORTDOCS%%share/doc/postfix/PACKAGE_README %%PORTDOCS%%share/doc/postfix/PCRE_README %%PORTDOCS%%share/doc/postfix/QMQP_README +%%PORTDOCS%%share/doc/postfix/RELEASE_NOTES %%PORTDOCS%%share/doc/postfix/RESTRICTION_CLASS_README %%PORTDOCS%%share/doc/postfix/SASL_README %%PORTDOCS%%share/doc/postfix/ULTRIX_README diff --git a/mail/postfix24/scripts/configure.postfix b/mail/postfix24/scripts/configure.postfix index 5743fffcac2..6715debf7d9 100644 --- a/mail/postfix24/scripts/configure.postfix +++ b/mail/postfix24/scripts/configure.postfix @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/mail/postfix24/scripts/Attic/configure.postfix,v 1.25 2003-01-04 16:17:26 seanc Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/postfix24/scripts/Attic/configure.postfix,v 1.26 2003-01-09 05:10:39 petef Exp $ if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then exit @@ -22,14 +22,16 @@ if [ -z "${BATCH}" ]; then --checklist "\n\ Please select desired options:" -1 -1 16 \ PCRE "Perl Compatible Regular Expressions" "$status_PCRE" \ -SASL "Cyrus SASL (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \ MySQL "MySQL map lookups" "$status_MySQL" \ PgSQL "PostgreSQL map lookups" "$status_PgSQL" \ OpenLDAP "OpenLDAP map lookups" "$status_OpenLDAP" \ Test "SMTP/LMTP test server and generator" "$status_Test" \ -TLS "Secure Sockets Layer and Transport Layer Security" "$status_TLS" \ -IPv6 "IPv6 support (not KAME official)" "$status_IPv6" \ +TLS "SSL and TLS" "$status_TLS" \ +IPv6 "IPv6 support (currently broken)" "$status_IPv6" \ +IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \ 2> $tempfile retval=$? @@ -58,8 +60,8 @@ echo "PREFIX= ${PREFIX}" SUB_TLS="@comment " SUB_TEST="@comment " -for i; do - case $i in +while [ "$1" ]; do + case $1 in PCRE) echo "LIB_DEPENDS+= pcre.0:\${PORTSDIR}/devel/pcre" echo "POSTFIX_CCARGS+= -DHAS_PCRE -I\${LOCALBASE}/include" @@ -67,13 +69,32 @@ for i; do 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 + 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 ${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="" + ;; + 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 ${PREFIX}/lib/libsasl2.a ]; then + if nm ${PREFIX}/lib/libsasl2.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 @@ -90,8 +111,8 @@ for i; do 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.11a-1.1.11-0.9.6g.tar.gz" - echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.11a-1.1.11-0.9.6g/pfixtls.diff" + echo "DISTFILES+= \${DISTNAME}.tar.gz pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz" + echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.12-2.0.0.1-0.9.6h/pfixtls.diff" echo "PATCH_STRIP= -p1" echo "TLS_SUFFIX= +tls" SUB_TLS="" @@ -132,10 +153,10 @@ for i; do 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 + exit 1 fi - if [ -z $SUB_TLS ]; then - /usr/bin/dialog --msgbox "IPv6 and TLS patch cannot be used simultaneously!" 5 60 > /dev/stderr + if [ X$SUB_TLS = "X" ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 fi @@ -144,15 +165,30 @@ for i; do echo "PATCH_DIST_STRIP= -p1" echo "IPv6_SUFFIX= +ipv6" echo "" + IPv6SELECTED=YES ;; - "") + IPv6TLS) + if [ X$SUB_TLS = "X" -o X$IPv6SELECTED != X ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr + rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + exit 1 + fi + echo "MAN8+= tlsmgr.8" + echo "POSTFIX_CCARGS+= -DHAS_SSL -I/usr/include/openssl" + echo "POSTFIX_AUXLIBS+= -lssl -lcrypto" + echo "PATCH_SITES+= ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.10/" + echo "PATCHFILES+= tls+ipv6-1.10-pf-2.0.0.1.patch.gz" + echo "PATCH_DIST_STRIP= -p1" + echo "TLS_SUFFIX= +ipv6+tls" + SUB_TLS="" ;; *) - echo "Invalid option(s): $*" > /dev/stderr + echo "Unknown option(s): $*" > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 ;; esac + shift done echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\"" diff --git a/mail/postfix25/Makefile b/mail/postfix25/Makefile index 6adf63b1ee8..f75e2d5770b 100644 --- a/mail/postfix25/Makefile +++ b/mail/postfix25/Makefile @@ -9,10 +9,11 @@ # # make -DBATCH POSTFIX_OPTIONS="DB3 PCRE" # -# the options are the same names as in the scripts/configure.postfix file +# the options are the same names as in the scripts/configure.postfix file. +# POSTFIX_OPTIONS can be set in /etc/make.conf also. PORTNAME= postfix -PORTVERSION= 1.1.12 +PORTVERSION= 2.0.0.2 PORTEPOCH= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ @@ -45,6 +46,8 @@ MAN8= bounce.8 cleanup.8 defer.8 error.8 flush.8 lmtp.8 local.8 \ # patch it. MAN8base=$(MAN8:S/tlsmgr.8//) +NO_LATEST_LINK= yes + CONF1= main.cf master.cf access aliases canonical pcre_table regexp_table \ relocated transport virtual diff --git a/mail/postfix25/distinfo b/mail/postfix25/distinfo index 832388cccb9..9ed106bfeb1 100644 --- a/mail/postfix25/distinfo +++ b/mail/postfix25/distinfo @@ -1,4 +1,4 @@ -MD5 (postfix/postfix-1.1.12.tar.gz) = d1d0f9792ec6ea063ccca59184e54212 -MD5 (postfix/pfixtls-0.8.11a-1.1.11-0.9.6g.tar.gz) = 11d82e9a3482f64af9d228f7a4319566 -MD5 (postfix/postfix-1.1.12+ipv6.patch.gz) = add4396ce50ca61b5d9b67454fb51258 +MD5 (postfix/postfix-2.0.0.2.tar.gz) = 1e51a2290d33ee498f9abe91dbb27dc2 +MD5 (postfix/pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz) = 1111b97c77e71b2f7edd9ab6d36fb550 MD5 (postfix/postfix-pg.postfix-1.1.8.patch) = e0f4d910a6d6648d9b48e2244f2764ba +MD5 (postfix/tls+ipv6-1.10-pf-2.0.0.1.patch.gz) = ed18c6933fa81961bcbd1e3a28493487 diff --git a/mail/postfix25/files/patch-bd b/mail/postfix25/files/patch-bd deleted file mode 100644 index ce79695f134..00000000000 --- a/mail/postfix25/files/patch-bd +++ /dev/null @@ -1,11 +0,0 @@ -*** ./html/local.8.html.orig Thu Feb 3 21:15:02 2000 ---- ./html/local.8.html Thu Jun 1 22:22:30 2000 -*************** -*** 99,101 **** - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i> or <b>/var/spool/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> ---- 99,101 ---- - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> diff --git a/mail/postfix25/files/patch-ck b/mail/postfix25/files/patch-ck deleted file mode 100644 index 6e1ddce3c8f..00000000000 --- a/mail/postfix25/files/patch-ck +++ /dev/null @@ -1,11 +0,0 @@ -*** ./man/man8/local.8.orig Thu Feb 3 21:14:53 2000 ---- ./man/man8/local.8 Thu Jun 1 22:42:43 2000 -*************** -*** 96,98 **** - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR or \fB/var/spool/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR ---- 96,98 ---- - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR diff --git a/mail/postfix25/files/patch-ea b/mail/postfix25/files/patch-ea new file mode 100644 index 00000000000..6c3f98d2af4 --- /dev/null +++ b/mail/postfix25/files/patch-ea @@ -0,0 +1,13 @@ +*** ./src/cleanup/cleanup.c.orig Sun May 28 18:33:41 2000 +--- ./src/cleanup/cleanup.c Thu Jun 1 21:52:22 2000 +*************** +*** 118,121 **** + /* FILES +! /* /etc/postfix/canonical*, canonical mapping table +! /* /etc/postfix/virtual*, virtual mapping table + /* LICENSE +--- 118,121 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/canonical*, canonical mapping table +! /* !!PREFIX!!/etc/postfix/virtual*, virtual mapping table + /* LICENSE diff --git a/mail/postfix25/files/patch-eb b/mail/postfix25/files/patch-eb new file mode 100644 index 00000000000..e67680963d2 --- /dev/null +++ b/mail/postfix25/files/patch-eb @@ -0,0 +1,11 @@ +*** ./src/global/mail_conf.c.orig Sun May 7 18:51:16 2000 +--- ./src/global/mail_conf.c Thu Jun 1 22:16:29 2000 +*************** +*** 53,55 **** + /* FILES +! /* /etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT +--- 53,55 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT diff --git a/mail/postfix25/files/patch-ee b/mail/postfix25/files/patch-ee new file mode 100644 index 00000000000..ef44eac24b7 --- /dev/null +++ b/mail/postfix25/files/patch-ee @@ -0,0 +1,13 @@ +*** ./src/master/master.c.orig Tue Mar 7 10:25:07 2000 +--- ./src/master/master.c Thu Jun 1 22:43:50 2000 +*************** +*** 104,107 **** + /* FILES +! /* /etc/postfix/main.cf: global configuration file. +! /* /etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. +--- 104,107 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/main.cf: global configuration file. +! /* !!PREFIX!!/etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. diff --git a/mail/postfix25/files/patch-ef b/mail/postfix25/files/patch-ef new file mode 100644 index 00000000000..586b304a103 --- /dev/null +++ b/mail/postfix25/files/patch-ef @@ -0,0 +1,11 @@ +*** ./src/postdrop/postdrop.c.orig Sun Apr 25 18:05:43 1999 +--- ./src/postdrop/postdrop.c Thu Jun 1 22:44:22 2000 +*************** +*** 39,41 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 39,41 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix25/files/patch-eg b/mail/postfix25/files/patch-eg new file mode 100644 index 00000000000..2983bbfd86e --- /dev/null +++ b/mail/postfix25/files/patch-eg @@ -0,0 +1,20 @@ +*** ./src/sendmail/sendmail.c.orig Tue Mar 14 10:42:06 2000 +--- ./src/sendmail/sendmail.c Thu Jun 1 22:47:24 2000 +*************** +*** 57,59 **** + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +--- 57,59 ---- + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB!!PREFIX!!/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +*************** +*** 159,161 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 159,161 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix25/files/patch-eh b/mail/postfix25/files/patch-eh new file mode 100644 index 00000000000..c104c3680d2 --- /dev/null +++ b/mail/postfix25/files/patch-eh @@ -0,0 +1,11 @@ +*** ./src/trivial-rewrite/transport.c.orig Tue Nov 16 19:15:41 1999 +--- ./src/trivial-rewrite/transport.c Thu Jun 1 22:47:49 2000 +*************** +*** 32,34 **** + /* FILES +! /* /etc/postfix/transport* + /* CONFIGURATION PARAMETERS +--- 32,34 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/transport* + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix25/files/patch-ei b/mail/postfix25/files/patch-ei deleted file mode 100644 index 8f03b69ccc5..00000000000 --- a/mail/postfix25/files/patch-ei +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtpd/smtpd.h.orig Thu Sep 14 10:17:23 2000 ---- ./src/smtpd/smtpd.h Thu Sep 14 10:17:38 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix25/files/patch-ej b/mail/postfix25/files/patch-ej deleted file mode 100644 index 329d7bb1cf9..00000000000 --- a/mail/postfix25/files/patch-ej +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtp/smtp.h.orig Thu Sep 14 13:04:43 2000 ---- ./src/smtp/smtp.h Thu Sep 14 13:04:53 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix25/files/patch-lmtp.h b/mail/postfix25/files/patch-lmtp.h deleted file mode 100644 index 86d5975b2b4..00000000000 --- a/mail/postfix25/files/patch-lmtp.h +++ /dev/null @@ -1,13 +0,0 @@ ---- ./src/lmtp/lmtp.h.orig Fri Jan 19 15:43:06 2001 -+++ ./src/lmtp/lmtp.h Sat Feb 3 14:01:09 2001 -@@ -12,8 +12,8 @@ - * SASL library. - */ - #ifdef USE_SASL_AUTH --#include <sasl.h> --#include <saslutil.h> -+#include <sasl1/sasl.h> -+#include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix25/files/patch-main.cf b/mail/postfix25/files/patch-main.cf new file mode 100644 index 00000000000..95fb2feaca0 --- /dev/null +++ b/mail/postfix25/files/patch-main.cf @@ -0,0 +1,58 @@ +--- ./conf/main.cf Wed Jan 8 22:11:52 2003 ++++ ./conf/main.cf Wed Jan 8 22:11:53 2003 +@@ -31,13 +31,13 @@ + # The command_directory parameter specifies the location of all + # postXXX commands. + # +-command_directory = /usr/sbin ++command_directory = /usr/local/sbin + + # The daemon_directory parameter specifies the location of all Postfix + # daemon programs (i.e. programs listed in the master.cf file). This + # directory must be owned by root. + # +-daemon_directory = /usr/libexec/postfix ++daemon_directory = /usr/local/libexec/postfix + + # QUEUE AND PROCESS OWNERSHIP + # +@@ -590,32 +590,32 @@ + # sendmail_path: The full pathname of the Postfix sendmail command. + # This is the Sendmail-compatible mail posting interface. + # +-sendmail_path = ++sendmail_path = /usr/local/sbin/sendmail + + # newaliases_path: The full pathname of the Postfix newaliases command. + # This is the Sendmail-compatible command to build alias databases. + # +-newaliases_path = ++newaliases_path = /usr/local/bin/newaliases + + # mailq_path: The full pathname of the Postfix mailq command. This + # is the Sendmail-compatible mail queue listing command. + # +-mailq_path = ++mailq_path = /usr/local/bin/mailq + + # setgid_group: The group for mail submission and queue management + # commands. This must be a group name with a numerical group ID that + # is not shared with other accounts, not even with the Postfix account. + # +-setgid_group = ++setgid_group = maildrop + + # manpage_directory: The location of the Postfix on-line manual pages. + # +-manpage_directory = ++manpage_directory = /usr/local/man + + # sample_directory: The location of the Postfix sample configuration files. + # +-sample_directory = ++sample_directory = /usr/local/etc/postfix + + # readme_directory: The location of the Postfix README files. + # +-readme_directory = ++readme_directory = no diff --git a/mail/postfix25/pkg-message b/mail/postfix25/pkg-message index 7fb3a804599..a7ae2b17e2a 100644 --- a/mail/postfix25/pkg-message +++ b/mail/postfix25/pkg-message @@ -8,21 +8,10 @@ sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" - **OR** +This will disable Sendmail completely. -sendmail_enable="NONE" -then type this command as root: - -ln -s /usr/local/sbin/postfix /usr/local/etc/rc.d/postfix.sh - -Either of these will disable Sendmail completely. The latter form is useful -if you need to wait until other local package initialization (such as ldconfig -for Postgres or MySQL) is done. The former method will start postfix very -early on in the boot process. - - -Also, you will want to disable some Sendmail-specific daily maintenance +Also, you may wish to disable some Sendmail-specific daily maintenance routines in your /etc/periodic.conf file: daily_status_mail_rejects_enable="NO" diff --git a/mail/postfix25/pkg-plist b/mail/postfix25/pkg-plist index 5b6c3c55d5b..6d882a8666a 100644 --- a/mail/postfix25/pkg-plist +++ b/mail/postfix25/pkg-plist @@ -32,6 +32,7 @@ etc/postfix/sample-lmtp.cf etc/postfix/sample-local.cf etc/postfix/sample-main.cf etc/postfix/sample-master.cf +etc/postfix/sample-mime.cf etc/postfix/sample-misc.cf etc/postfix/sample-pcre-access.cf etc/postfix/sample-pcre-body.cf @@ -86,6 +87,7 @@ bin/newaliases bin/mailq %%SUB_TEST%%sbin/smtp-sink %%SUB_TEST%%sbin/smtp-source +%%PORTDOCS%%share/doc/postfix/ADDRESS_CLASS_README %%PORTDOCS%%share/doc/postfix/DB_README %%PORTDOCS%%share/doc/postfix/DEBUG_README %%PORTDOCS%%share/doc/postfix/ETRN_README @@ -93,13 +95,16 @@ bin/mailq %%PORTDOCS%%share/doc/postfix/INSTALL %%PORTDOCS%%share/doc/postfix/LDAP_README %%PORTDOCS%%share/doc/postfix/LINUX_README +%%PORTDOCS%%share/doc/postfix/LOCAL_RECIPIENT_README %%PORTDOCS%%share/doc/postfix/LMTP_README %%PORTDOCS%%share/doc/postfix/MACOSX_README +%%PORTDOCS%%share/doc/postfix/MAILDROP_README %%PORTDOCS%%share/doc/postfix/MYSQL_README %%PORTDOCS%%share/doc/postfix/NFS_README %%PORTDOCS%%share/doc/postfix/PACKAGE_README %%PORTDOCS%%share/doc/postfix/PCRE_README %%PORTDOCS%%share/doc/postfix/QMQP_README +%%PORTDOCS%%share/doc/postfix/RELEASE_NOTES %%PORTDOCS%%share/doc/postfix/RESTRICTION_CLASS_README %%PORTDOCS%%share/doc/postfix/SASL_README %%PORTDOCS%%share/doc/postfix/ULTRIX_README diff --git a/mail/postfix25/scripts/configure.postfix b/mail/postfix25/scripts/configure.postfix index 2d14da6221a..b0c93a66846 100644 --- a/mail/postfix25/scripts/configure.postfix +++ b/mail/postfix25/scripts/configure.postfix @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/mail/postfix25/scripts/Attic/configure.postfix,v 1.25 2003-01-04 16:17:26 seanc Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/postfix25/scripts/Attic/configure.postfix,v 1.26 2003-01-09 05:10:39 petef Exp $ if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then exit @@ -22,14 +22,16 @@ if [ -z "${BATCH}" ]; then --checklist "\n\ Please select desired options:" -1 -1 16 \ PCRE "Perl Compatible Regular Expressions" "$status_PCRE" \ -SASL "Cyrus SASL (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \ MySQL "MySQL map lookups" "$status_MySQL" \ PgSQL "PostgreSQL map lookups" "$status_PgSQL" \ OpenLDAP "OpenLDAP map lookups" "$status_OpenLDAP" \ Test "SMTP/LMTP test server and generator" "$status_Test" \ -TLS "Secure Sockets Layer and Transport Layer Security" "$status_TLS" \ -IPv6 "IPv6 support (not KAME official)" "$status_IPv6" \ +TLS "SSL and TLS" "$status_TLS" \ +IPv6 "IPv6 support (currently broken)" "$status_IPv6" \ +IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \ 2> $tempfile retval=$? @@ -58,8 +60,8 @@ echo "PREFIX= ${PREFIX}" SUB_TLS="@comment " SUB_TEST="@comment " -for i; do - case $i in +while [ "$1" ]; do + case $1 in PCRE) echo "LIB_DEPENDS+= pcre.0:\${PORTSDIR}/devel/pcre" echo "POSTFIX_CCARGS+= -DHAS_PCRE -I\${LOCALBASE}/include" @@ -67,13 +69,32 @@ for i; do 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 + 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 ${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="" + ;; + 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 ${PREFIX}/lib/libsasl2.a ]; then + if nm ${PREFIX}/lib/libsasl2.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 @@ -90,8 +111,8 @@ for i; do 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.11a-1.1.11-0.9.6g.tar.gz" - echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.11a-1.1.11-0.9.6g/pfixtls.diff" + echo "DISTFILES+= \${DISTNAME}.tar.gz pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz" + echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.12-2.0.0.1-0.9.6h/pfixtls.diff" echo "PATCH_STRIP= -p1" echo "TLS_SUFFIX= +tls" SUB_TLS="" @@ -132,10 +153,10 @@ for i; do 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 + exit 1 fi - if [ -z $SUB_TLS ]; then - /usr/bin/dialog --msgbox "IPv6 and TLS patch cannot be used simultaneously!" 5 60 > /dev/stderr + if [ X$SUB_TLS = "X" ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 fi @@ -144,15 +165,30 @@ for i; do echo "PATCH_DIST_STRIP= -p1" echo "IPv6_SUFFIX= +ipv6" echo "" + IPv6SELECTED=YES ;; - "") + IPv6TLS) + if [ X$SUB_TLS = "X" -o X$IPv6SELECTED != X ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr + rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + exit 1 + fi + echo "MAN8+= tlsmgr.8" + echo "POSTFIX_CCARGS+= -DHAS_SSL -I/usr/include/openssl" + echo "POSTFIX_AUXLIBS+= -lssl -lcrypto" + echo "PATCH_SITES+= ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.10/" + echo "PATCHFILES+= tls+ipv6-1.10-pf-2.0.0.1.patch.gz" + echo "PATCH_DIST_STRIP= -p1" + echo "TLS_SUFFIX= +ipv6+tls" + SUB_TLS="" ;; *) - echo "Invalid option(s): $*" > /dev/stderr + echo "Unknown option(s): $*" > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 ;; esac + shift done echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\"" diff --git a/mail/postfix26/Makefile b/mail/postfix26/Makefile index 6adf63b1ee8..f75e2d5770b 100644 --- a/mail/postfix26/Makefile +++ b/mail/postfix26/Makefile @@ -9,10 +9,11 @@ # # make -DBATCH POSTFIX_OPTIONS="DB3 PCRE" # -# the options are the same names as in the scripts/configure.postfix file +# the options are the same names as in the scripts/configure.postfix file. +# POSTFIX_OPTIONS can be set in /etc/make.conf also. PORTNAME= postfix -PORTVERSION= 1.1.12 +PORTVERSION= 2.0.0.2 PORTEPOCH= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ @@ -45,6 +46,8 @@ MAN8= bounce.8 cleanup.8 defer.8 error.8 flush.8 lmtp.8 local.8 \ # patch it. MAN8base=$(MAN8:S/tlsmgr.8//) +NO_LATEST_LINK= yes + CONF1= main.cf master.cf access aliases canonical pcre_table regexp_table \ relocated transport virtual diff --git a/mail/postfix26/distinfo b/mail/postfix26/distinfo index 832388cccb9..9ed106bfeb1 100644 --- a/mail/postfix26/distinfo +++ b/mail/postfix26/distinfo @@ -1,4 +1,4 @@ -MD5 (postfix/postfix-1.1.12.tar.gz) = d1d0f9792ec6ea063ccca59184e54212 -MD5 (postfix/pfixtls-0.8.11a-1.1.11-0.9.6g.tar.gz) = 11d82e9a3482f64af9d228f7a4319566 -MD5 (postfix/postfix-1.1.12+ipv6.patch.gz) = add4396ce50ca61b5d9b67454fb51258 +MD5 (postfix/postfix-2.0.0.2.tar.gz) = 1e51a2290d33ee498f9abe91dbb27dc2 +MD5 (postfix/pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz) = 1111b97c77e71b2f7edd9ab6d36fb550 MD5 (postfix/postfix-pg.postfix-1.1.8.patch) = e0f4d910a6d6648d9b48e2244f2764ba +MD5 (postfix/tls+ipv6-1.10-pf-2.0.0.1.patch.gz) = ed18c6933fa81961bcbd1e3a28493487 diff --git a/mail/postfix26/files/patch-bd b/mail/postfix26/files/patch-bd deleted file mode 100644 index ce79695f134..00000000000 --- a/mail/postfix26/files/patch-bd +++ /dev/null @@ -1,11 +0,0 @@ -*** ./html/local.8.html.orig Thu Feb 3 21:15:02 2000 ---- ./html/local.8.html Thu Jun 1 22:22:30 2000 -*************** -*** 99,101 **** - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i> or <b>/var/spool/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> ---- 99,101 ---- - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> diff --git a/mail/postfix26/files/patch-ck b/mail/postfix26/files/patch-ck deleted file mode 100644 index 6e1ddce3c8f..00000000000 --- a/mail/postfix26/files/patch-ck +++ /dev/null @@ -1,11 +0,0 @@ -*** ./man/man8/local.8.orig Thu Feb 3 21:14:53 2000 ---- ./man/man8/local.8 Thu Jun 1 22:42:43 2000 -*************** -*** 96,98 **** - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR or \fB/var/spool/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR ---- 96,98 ---- - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR diff --git a/mail/postfix26/files/patch-ea b/mail/postfix26/files/patch-ea new file mode 100644 index 00000000000..6c3f98d2af4 --- /dev/null +++ b/mail/postfix26/files/patch-ea @@ -0,0 +1,13 @@ +*** ./src/cleanup/cleanup.c.orig Sun May 28 18:33:41 2000 +--- ./src/cleanup/cleanup.c Thu Jun 1 21:52:22 2000 +*************** +*** 118,121 **** + /* FILES +! /* /etc/postfix/canonical*, canonical mapping table +! /* /etc/postfix/virtual*, virtual mapping table + /* LICENSE +--- 118,121 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/canonical*, canonical mapping table +! /* !!PREFIX!!/etc/postfix/virtual*, virtual mapping table + /* LICENSE diff --git a/mail/postfix26/files/patch-eb b/mail/postfix26/files/patch-eb new file mode 100644 index 00000000000..e67680963d2 --- /dev/null +++ b/mail/postfix26/files/patch-eb @@ -0,0 +1,11 @@ +*** ./src/global/mail_conf.c.orig Sun May 7 18:51:16 2000 +--- ./src/global/mail_conf.c Thu Jun 1 22:16:29 2000 +*************** +*** 53,55 **** + /* FILES +! /* /etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT +--- 53,55 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT diff --git a/mail/postfix26/files/patch-ee b/mail/postfix26/files/patch-ee new file mode 100644 index 00000000000..ef44eac24b7 --- /dev/null +++ b/mail/postfix26/files/patch-ee @@ -0,0 +1,13 @@ +*** ./src/master/master.c.orig Tue Mar 7 10:25:07 2000 +--- ./src/master/master.c Thu Jun 1 22:43:50 2000 +*************** +*** 104,107 **** + /* FILES +! /* /etc/postfix/main.cf: global configuration file. +! /* /etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. +--- 104,107 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/main.cf: global configuration file. +! /* !!PREFIX!!/etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. diff --git a/mail/postfix26/files/patch-ef b/mail/postfix26/files/patch-ef new file mode 100644 index 00000000000..586b304a103 --- /dev/null +++ b/mail/postfix26/files/patch-ef @@ -0,0 +1,11 @@ +*** ./src/postdrop/postdrop.c.orig Sun Apr 25 18:05:43 1999 +--- ./src/postdrop/postdrop.c Thu Jun 1 22:44:22 2000 +*************** +*** 39,41 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 39,41 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix26/files/patch-eg b/mail/postfix26/files/patch-eg new file mode 100644 index 00000000000..2983bbfd86e --- /dev/null +++ b/mail/postfix26/files/patch-eg @@ -0,0 +1,20 @@ +*** ./src/sendmail/sendmail.c.orig Tue Mar 14 10:42:06 2000 +--- ./src/sendmail/sendmail.c Thu Jun 1 22:47:24 2000 +*************** +*** 57,59 **** + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +--- 57,59 ---- + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB!!PREFIX!!/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +*************** +*** 159,161 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 159,161 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix26/files/patch-eh b/mail/postfix26/files/patch-eh new file mode 100644 index 00000000000..c104c3680d2 --- /dev/null +++ b/mail/postfix26/files/patch-eh @@ -0,0 +1,11 @@ +*** ./src/trivial-rewrite/transport.c.orig Tue Nov 16 19:15:41 1999 +--- ./src/trivial-rewrite/transport.c Thu Jun 1 22:47:49 2000 +*************** +*** 32,34 **** + /* FILES +! /* /etc/postfix/transport* + /* CONFIGURATION PARAMETERS +--- 32,34 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/transport* + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix26/files/patch-ei b/mail/postfix26/files/patch-ei deleted file mode 100644 index 8f03b69ccc5..00000000000 --- a/mail/postfix26/files/patch-ei +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtpd/smtpd.h.orig Thu Sep 14 10:17:23 2000 ---- ./src/smtpd/smtpd.h Thu Sep 14 10:17:38 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix26/files/patch-ej b/mail/postfix26/files/patch-ej deleted file mode 100644 index 329d7bb1cf9..00000000000 --- a/mail/postfix26/files/patch-ej +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtp/smtp.h.orig Thu Sep 14 13:04:43 2000 ---- ./src/smtp/smtp.h Thu Sep 14 13:04:53 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix26/files/patch-lmtp.h b/mail/postfix26/files/patch-lmtp.h deleted file mode 100644 index 86d5975b2b4..00000000000 --- a/mail/postfix26/files/patch-lmtp.h +++ /dev/null @@ -1,13 +0,0 @@ ---- ./src/lmtp/lmtp.h.orig Fri Jan 19 15:43:06 2001 -+++ ./src/lmtp/lmtp.h Sat Feb 3 14:01:09 2001 -@@ -12,8 +12,8 @@ - * SASL library. - */ - #ifdef USE_SASL_AUTH --#include <sasl.h> --#include <saslutil.h> -+#include <sasl1/sasl.h> -+#include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix26/files/patch-main.cf b/mail/postfix26/files/patch-main.cf new file mode 100644 index 00000000000..95fb2feaca0 --- /dev/null +++ b/mail/postfix26/files/patch-main.cf @@ -0,0 +1,58 @@ +--- ./conf/main.cf Wed Jan 8 22:11:52 2003 ++++ ./conf/main.cf Wed Jan 8 22:11:53 2003 +@@ -31,13 +31,13 @@ + # The command_directory parameter specifies the location of all + # postXXX commands. + # +-command_directory = /usr/sbin ++command_directory = /usr/local/sbin + + # The daemon_directory parameter specifies the location of all Postfix + # daemon programs (i.e. programs listed in the master.cf file). This + # directory must be owned by root. + # +-daemon_directory = /usr/libexec/postfix ++daemon_directory = /usr/local/libexec/postfix + + # QUEUE AND PROCESS OWNERSHIP + # +@@ -590,32 +590,32 @@ + # sendmail_path: The full pathname of the Postfix sendmail command. + # This is the Sendmail-compatible mail posting interface. + # +-sendmail_path = ++sendmail_path = /usr/local/sbin/sendmail + + # newaliases_path: The full pathname of the Postfix newaliases command. + # This is the Sendmail-compatible command to build alias databases. + # +-newaliases_path = ++newaliases_path = /usr/local/bin/newaliases + + # mailq_path: The full pathname of the Postfix mailq command. This + # is the Sendmail-compatible mail queue listing command. + # +-mailq_path = ++mailq_path = /usr/local/bin/mailq + + # setgid_group: The group for mail submission and queue management + # commands. This must be a group name with a numerical group ID that + # is not shared with other accounts, not even with the Postfix account. + # +-setgid_group = ++setgid_group = maildrop + + # manpage_directory: The location of the Postfix on-line manual pages. + # +-manpage_directory = ++manpage_directory = /usr/local/man + + # sample_directory: The location of the Postfix sample configuration files. + # +-sample_directory = ++sample_directory = /usr/local/etc/postfix + + # readme_directory: The location of the Postfix README files. + # +-readme_directory = ++readme_directory = no diff --git a/mail/postfix26/pkg-message b/mail/postfix26/pkg-message index 7fb3a804599..a7ae2b17e2a 100644 --- a/mail/postfix26/pkg-message +++ b/mail/postfix26/pkg-message @@ -8,21 +8,10 @@ sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" - **OR** +This will disable Sendmail completely. -sendmail_enable="NONE" -then type this command as root: - -ln -s /usr/local/sbin/postfix /usr/local/etc/rc.d/postfix.sh - -Either of these will disable Sendmail completely. The latter form is useful -if you need to wait until other local package initialization (such as ldconfig -for Postgres or MySQL) is done. The former method will start postfix very -early on in the boot process. - - -Also, you will want to disable some Sendmail-specific daily maintenance +Also, you may wish to disable some Sendmail-specific daily maintenance routines in your /etc/periodic.conf file: daily_status_mail_rejects_enable="NO" diff --git a/mail/postfix26/pkg-plist b/mail/postfix26/pkg-plist index 5b6c3c55d5b..6d882a8666a 100644 --- a/mail/postfix26/pkg-plist +++ b/mail/postfix26/pkg-plist @@ -32,6 +32,7 @@ etc/postfix/sample-lmtp.cf etc/postfix/sample-local.cf etc/postfix/sample-main.cf etc/postfix/sample-master.cf +etc/postfix/sample-mime.cf etc/postfix/sample-misc.cf etc/postfix/sample-pcre-access.cf etc/postfix/sample-pcre-body.cf @@ -86,6 +87,7 @@ bin/newaliases bin/mailq %%SUB_TEST%%sbin/smtp-sink %%SUB_TEST%%sbin/smtp-source +%%PORTDOCS%%share/doc/postfix/ADDRESS_CLASS_README %%PORTDOCS%%share/doc/postfix/DB_README %%PORTDOCS%%share/doc/postfix/DEBUG_README %%PORTDOCS%%share/doc/postfix/ETRN_README @@ -93,13 +95,16 @@ bin/mailq %%PORTDOCS%%share/doc/postfix/INSTALL %%PORTDOCS%%share/doc/postfix/LDAP_README %%PORTDOCS%%share/doc/postfix/LINUX_README +%%PORTDOCS%%share/doc/postfix/LOCAL_RECIPIENT_README %%PORTDOCS%%share/doc/postfix/LMTP_README %%PORTDOCS%%share/doc/postfix/MACOSX_README +%%PORTDOCS%%share/doc/postfix/MAILDROP_README %%PORTDOCS%%share/doc/postfix/MYSQL_README %%PORTDOCS%%share/doc/postfix/NFS_README %%PORTDOCS%%share/doc/postfix/PACKAGE_README %%PORTDOCS%%share/doc/postfix/PCRE_README %%PORTDOCS%%share/doc/postfix/QMQP_README +%%PORTDOCS%%share/doc/postfix/RELEASE_NOTES %%PORTDOCS%%share/doc/postfix/RESTRICTION_CLASS_README %%PORTDOCS%%share/doc/postfix/SASL_README %%PORTDOCS%%share/doc/postfix/ULTRIX_README diff --git a/mail/postfix26/scripts/configure.postfix b/mail/postfix26/scripts/configure.postfix index 3617f6a8b6a..5ce3cbfe493 100644 --- a/mail/postfix26/scripts/configure.postfix +++ b/mail/postfix26/scripts/configure.postfix @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/mail/postfix26/scripts/Attic/configure.postfix,v 1.25 2003-01-04 16:17:26 seanc Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/postfix26/scripts/Attic/configure.postfix,v 1.26 2003-01-09 05:10:39 petef Exp $ if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then exit @@ -22,14 +22,16 @@ if [ -z "${BATCH}" ]; then --checklist "\n\ Please select desired options:" -1 -1 16 \ PCRE "Perl Compatible Regular Expressions" "$status_PCRE" \ -SASL "Cyrus SASL (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \ MySQL "MySQL map lookups" "$status_MySQL" \ PgSQL "PostgreSQL map lookups" "$status_PgSQL" \ OpenLDAP "OpenLDAP map lookups" "$status_OpenLDAP" \ Test "SMTP/LMTP test server and generator" "$status_Test" \ -TLS "Secure Sockets Layer and Transport Layer Security" "$status_TLS" \ -IPv6 "IPv6 support (not KAME official)" "$status_IPv6" \ +TLS "SSL and TLS" "$status_TLS" \ +IPv6 "IPv6 support (currently broken)" "$status_IPv6" \ +IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \ 2> $tempfile retval=$? @@ -58,8 +60,8 @@ echo "PREFIX= ${PREFIX}" SUB_TLS="@comment " SUB_TEST="@comment " -for i; do - case $i in +while [ "$1" ]; do + case $1 in PCRE) echo "LIB_DEPENDS+= pcre.0:\${PORTSDIR}/devel/pcre" echo "POSTFIX_CCARGS+= -DHAS_PCRE -I\${LOCALBASE}/include" @@ -67,13 +69,32 @@ for i; do 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 + 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 ${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="" + ;; + 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 ${PREFIX}/lib/libsasl2.a ]; then + if nm ${PREFIX}/lib/libsasl2.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 @@ -90,8 +111,8 @@ for i; do 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.11a-1.1.11-0.9.6g.tar.gz" - echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.11a-1.1.11-0.9.6g/pfixtls.diff" + echo "DISTFILES+= \${DISTNAME}.tar.gz pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz" + echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.12-2.0.0.1-0.9.6h/pfixtls.diff" echo "PATCH_STRIP= -p1" echo "TLS_SUFFIX= +tls" SUB_TLS="" @@ -132,10 +153,10 @@ for i; do 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 + exit 1 fi - if [ -z $SUB_TLS ]; then - /usr/bin/dialog --msgbox "IPv6 and TLS patch cannot be used simultaneously!" 5 60 > /dev/stderr + if [ X$SUB_TLS = "X" ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 fi @@ -144,15 +165,30 @@ for i; do echo "PATCH_DIST_STRIP= -p1" echo "IPv6_SUFFIX= +ipv6" echo "" + IPv6SELECTED=YES ;; - "") + IPv6TLS) + if [ X$SUB_TLS = "X" -o X$IPv6SELECTED != X ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr + rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + exit 1 + fi + echo "MAN8+= tlsmgr.8" + echo "POSTFIX_CCARGS+= -DHAS_SSL -I/usr/include/openssl" + echo "POSTFIX_AUXLIBS+= -lssl -lcrypto" + echo "PATCH_SITES+= ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.10/" + echo "PATCHFILES+= tls+ipv6-1.10-pf-2.0.0.1.patch.gz" + echo "PATCH_DIST_STRIP= -p1" + echo "TLS_SUFFIX= +ipv6+tls" + SUB_TLS="" ;; *) - echo "Invalid option(s): $*" > /dev/stderr + echo "Unknown option(s): $*" > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 ;; esac + shift done echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\"" diff --git a/mail/postfix27/Makefile b/mail/postfix27/Makefile index 6adf63b1ee8..f75e2d5770b 100644 --- a/mail/postfix27/Makefile +++ b/mail/postfix27/Makefile @@ -9,10 +9,11 @@ # # make -DBATCH POSTFIX_OPTIONS="DB3 PCRE" # -# the options are the same names as in the scripts/configure.postfix file +# the options are the same names as in the scripts/configure.postfix file. +# POSTFIX_OPTIONS can be set in /etc/make.conf also. PORTNAME= postfix -PORTVERSION= 1.1.12 +PORTVERSION= 2.0.0.2 PORTEPOCH= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ @@ -45,6 +46,8 @@ MAN8= bounce.8 cleanup.8 defer.8 error.8 flush.8 lmtp.8 local.8 \ # patch it. MAN8base=$(MAN8:S/tlsmgr.8//) +NO_LATEST_LINK= yes + CONF1= main.cf master.cf access aliases canonical pcre_table regexp_table \ relocated transport virtual diff --git a/mail/postfix27/distinfo b/mail/postfix27/distinfo index 832388cccb9..9ed106bfeb1 100644 --- a/mail/postfix27/distinfo +++ b/mail/postfix27/distinfo @@ -1,4 +1,4 @@ -MD5 (postfix/postfix-1.1.12.tar.gz) = d1d0f9792ec6ea063ccca59184e54212 -MD5 (postfix/pfixtls-0.8.11a-1.1.11-0.9.6g.tar.gz) = 11d82e9a3482f64af9d228f7a4319566 -MD5 (postfix/postfix-1.1.12+ipv6.patch.gz) = add4396ce50ca61b5d9b67454fb51258 +MD5 (postfix/postfix-2.0.0.2.tar.gz) = 1e51a2290d33ee498f9abe91dbb27dc2 +MD5 (postfix/pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz) = 1111b97c77e71b2f7edd9ab6d36fb550 MD5 (postfix/postfix-pg.postfix-1.1.8.patch) = e0f4d910a6d6648d9b48e2244f2764ba +MD5 (postfix/tls+ipv6-1.10-pf-2.0.0.1.patch.gz) = ed18c6933fa81961bcbd1e3a28493487 diff --git a/mail/postfix27/files/patch-bd b/mail/postfix27/files/patch-bd deleted file mode 100644 index ce79695f134..00000000000 --- a/mail/postfix27/files/patch-bd +++ /dev/null @@ -1,11 +0,0 @@ -*** ./html/local.8.html.orig Thu Feb 3 21:15:02 2000 ---- ./html/local.8.html Thu Jun 1 22:22:30 2000 -*************** -*** 99,101 **** - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i> or <b>/var/spool/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> ---- 99,101 ---- - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> diff --git a/mail/postfix27/files/patch-ck b/mail/postfix27/files/patch-ck deleted file mode 100644 index 6e1ddce3c8f..00000000000 --- a/mail/postfix27/files/patch-ck +++ /dev/null @@ -1,11 +0,0 @@ -*** ./man/man8/local.8.orig Thu Feb 3 21:14:53 2000 ---- ./man/man8/local.8 Thu Jun 1 22:42:43 2000 -*************** -*** 96,98 **** - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR or \fB/var/spool/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR ---- 96,98 ---- - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR diff --git a/mail/postfix27/files/patch-ea b/mail/postfix27/files/patch-ea new file mode 100644 index 00000000000..6c3f98d2af4 --- /dev/null +++ b/mail/postfix27/files/patch-ea @@ -0,0 +1,13 @@ +*** ./src/cleanup/cleanup.c.orig Sun May 28 18:33:41 2000 +--- ./src/cleanup/cleanup.c Thu Jun 1 21:52:22 2000 +*************** +*** 118,121 **** + /* FILES +! /* /etc/postfix/canonical*, canonical mapping table +! /* /etc/postfix/virtual*, virtual mapping table + /* LICENSE +--- 118,121 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/canonical*, canonical mapping table +! /* !!PREFIX!!/etc/postfix/virtual*, virtual mapping table + /* LICENSE diff --git a/mail/postfix27/files/patch-eb b/mail/postfix27/files/patch-eb new file mode 100644 index 00000000000..e67680963d2 --- /dev/null +++ b/mail/postfix27/files/patch-eb @@ -0,0 +1,11 @@ +*** ./src/global/mail_conf.c.orig Sun May 7 18:51:16 2000 +--- ./src/global/mail_conf.c Thu Jun 1 22:16:29 2000 +*************** +*** 53,55 **** + /* FILES +! /* /etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT +--- 53,55 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT diff --git a/mail/postfix27/files/patch-ee b/mail/postfix27/files/patch-ee new file mode 100644 index 00000000000..ef44eac24b7 --- /dev/null +++ b/mail/postfix27/files/patch-ee @@ -0,0 +1,13 @@ +*** ./src/master/master.c.orig Tue Mar 7 10:25:07 2000 +--- ./src/master/master.c Thu Jun 1 22:43:50 2000 +*************** +*** 104,107 **** + /* FILES +! /* /etc/postfix/main.cf: global configuration file. +! /* /etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. +--- 104,107 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/main.cf: global configuration file. +! /* !!PREFIX!!/etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. diff --git a/mail/postfix27/files/patch-ef b/mail/postfix27/files/patch-ef new file mode 100644 index 00000000000..586b304a103 --- /dev/null +++ b/mail/postfix27/files/patch-ef @@ -0,0 +1,11 @@ +*** ./src/postdrop/postdrop.c.orig Sun Apr 25 18:05:43 1999 +--- ./src/postdrop/postdrop.c Thu Jun 1 22:44:22 2000 +*************** +*** 39,41 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 39,41 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix27/files/patch-eg b/mail/postfix27/files/patch-eg new file mode 100644 index 00000000000..2983bbfd86e --- /dev/null +++ b/mail/postfix27/files/patch-eg @@ -0,0 +1,20 @@ +*** ./src/sendmail/sendmail.c.orig Tue Mar 14 10:42:06 2000 +--- ./src/sendmail/sendmail.c Thu Jun 1 22:47:24 2000 +*************** +*** 57,59 **** + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +--- 57,59 ---- + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB!!PREFIX!!/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +*************** +*** 159,161 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 159,161 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix27/files/patch-eh b/mail/postfix27/files/patch-eh new file mode 100644 index 00000000000..c104c3680d2 --- /dev/null +++ b/mail/postfix27/files/patch-eh @@ -0,0 +1,11 @@ +*** ./src/trivial-rewrite/transport.c.orig Tue Nov 16 19:15:41 1999 +--- ./src/trivial-rewrite/transport.c Thu Jun 1 22:47:49 2000 +*************** +*** 32,34 **** + /* FILES +! /* /etc/postfix/transport* + /* CONFIGURATION PARAMETERS +--- 32,34 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/transport* + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix27/files/patch-ei b/mail/postfix27/files/patch-ei deleted file mode 100644 index 8f03b69ccc5..00000000000 --- a/mail/postfix27/files/patch-ei +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtpd/smtpd.h.orig Thu Sep 14 10:17:23 2000 ---- ./src/smtpd/smtpd.h Thu Sep 14 10:17:38 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix27/files/patch-ej b/mail/postfix27/files/patch-ej deleted file mode 100644 index 329d7bb1cf9..00000000000 --- a/mail/postfix27/files/patch-ej +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtp/smtp.h.orig Thu Sep 14 13:04:43 2000 ---- ./src/smtp/smtp.h Thu Sep 14 13:04:53 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix27/files/patch-lmtp.h b/mail/postfix27/files/patch-lmtp.h deleted file mode 100644 index 86d5975b2b4..00000000000 --- a/mail/postfix27/files/patch-lmtp.h +++ /dev/null @@ -1,13 +0,0 @@ ---- ./src/lmtp/lmtp.h.orig Fri Jan 19 15:43:06 2001 -+++ ./src/lmtp/lmtp.h Sat Feb 3 14:01:09 2001 -@@ -12,8 +12,8 @@ - * SASL library. - */ - #ifdef USE_SASL_AUTH --#include <sasl.h> --#include <saslutil.h> -+#include <sasl1/sasl.h> -+#include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix27/files/patch-main.cf b/mail/postfix27/files/patch-main.cf new file mode 100644 index 00000000000..95fb2feaca0 --- /dev/null +++ b/mail/postfix27/files/patch-main.cf @@ -0,0 +1,58 @@ +--- ./conf/main.cf Wed Jan 8 22:11:52 2003 ++++ ./conf/main.cf Wed Jan 8 22:11:53 2003 +@@ -31,13 +31,13 @@ + # The command_directory parameter specifies the location of all + # postXXX commands. + # +-command_directory = /usr/sbin ++command_directory = /usr/local/sbin + + # The daemon_directory parameter specifies the location of all Postfix + # daemon programs (i.e. programs listed in the master.cf file). This + # directory must be owned by root. + # +-daemon_directory = /usr/libexec/postfix ++daemon_directory = /usr/local/libexec/postfix + + # QUEUE AND PROCESS OWNERSHIP + # +@@ -590,32 +590,32 @@ + # sendmail_path: The full pathname of the Postfix sendmail command. + # This is the Sendmail-compatible mail posting interface. + # +-sendmail_path = ++sendmail_path = /usr/local/sbin/sendmail + + # newaliases_path: The full pathname of the Postfix newaliases command. + # This is the Sendmail-compatible command to build alias databases. + # +-newaliases_path = ++newaliases_path = /usr/local/bin/newaliases + + # mailq_path: The full pathname of the Postfix mailq command. This + # is the Sendmail-compatible mail queue listing command. + # +-mailq_path = ++mailq_path = /usr/local/bin/mailq + + # setgid_group: The group for mail submission and queue management + # commands. This must be a group name with a numerical group ID that + # is not shared with other accounts, not even with the Postfix account. + # +-setgid_group = ++setgid_group = maildrop + + # manpage_directory: The location of the Postfix on-line manual pages. + # +-manpage_directory = ++manpage_directory = /usr/local/man + + # sample_directory: The location of the Postfix sample configuration files. + # +-sample_directory = ++sample_directory = /usr/local/etc/postfix + + # readme_directory: The location of the Postfix README files. + # +-readme_directory = ++readme_directory = no diff --git a/mail/postfix27/pkg-message b/mail/postfix27/pkg-message index 7fb3a804599..a7ae2b17e2a 100644 --- a/mail/postfix27/pkg-message +++ b/mail/postfix27/pkg-message @@ -8,21 +8,10 @@ sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" - **OR** +This will disable Sendmail completely. -sendmail_enable="NONE" -then type this command as root: - -ln -s /usr/local/sbin/postfix /usr/local/etc/rc.d/postfix.sh - -Either of these will disable Sendmail completely. The latter form is useful -if you need to wait until other local package initialization (such as ldconfig -for Postgres or MySQL) is done. The former method will start postfix very -early on in the boot process. - - -Also, you will want to disable some Sendmail-specific daily maintenance +Also, you may wish to disable some Sendmail-specific daily maintenance routines in your /etc/periodic.conf file: daily_status_mail_rejects_enable="NO" diff --git a/mail/postfix27/pkg-plist b/mail/postfix27/pkg-plist index 5b6c3c55d5b..6d882a8666a 100644 --- a/mail/postfix27/pkg-plist +++ b/mail/postfix27/pkg-plist @@ -32,6 +32,7 @@ etc/postfix/sample-lmtp.cf etc/postfix/sample-local.cf etc/postfix/sample-main.cf etc/postfix/sample-master.cf +etc/postfix/sample-mime.cf etc/postfix/sample-misc.cf etc/postfix/sample-pcre-access.cf etc/postfix/sample-pcre-body.cf @@ -86,6 +87,7 @@ bin/newaliases bin/mailq %%SUB_TEST%%sbin/smtp-sink %%SUB_TEST%%sbin/smtp-source +%%PORTDOCS%%share/doc/postfix/ADDRESS_CLASS_README %%PORTDOCS%%share/doc/postfix/DB_README %%PORTDOCS%%share/doc/postfix/DEBUG_README %%PORTDOCS%%share/doc/postfix/ETRN_README @@ -93,13 +95,16 @@ bin/mailq %%PORTDOCS%%share/doc/postfix/INSTALL %%PORTDOCS%%share/doc/postfix/LDAP_README %%PORTDOCS%%share/doc/postfix/LINUX_README +%%PORTDOCS%%share/doc/postfix/LOCAL_RECIPIENT_README %%PORTDOCS%%share/doc/postfix/LMTP_README %%PORTDOCS%%share/doc/postfix/MACOSX_README +%%PORTDOCS%%share/doc/postfix/MAILDROP_README %%PORTDOCS%%share/doc/postfix/MYSQL_README %%PORTDOCS%%share/doc/postfix/NFS_README %%PORTDOCS%%share/doc/postfix/PACKAGE_README %%PORTDOCS%%share/doc/postfix/PCRE_README %%PORTDOCS%%share/doc/postfix/QMQP_README +%%PORTDOCS%%share/doc/postfix/RELEASE_NOTES %%PORTDOCS%%share/doc/postfix/RESTRICTION_CLASS_README %%PORTDOCS%%share/doc/postfix/SASL_README %%PORTDOCS%%share/doc/postfix/ULTRIX_README diff --git a/mail/postfix27/scripts/configure.postfix b/mail/postfix27/scripts/configure.postfix index 99540543bfb..f85ae883909 100644 --- a/mail/postfix27/scripts/configure.postfix +++ b/mail/postfix27/scripts/configure.postfix @@ -1,5 +1,5 @@ #!/bin/sh -# $FreeBSD: /tmp/pcvs/ports/mail/postfix27/scripts/Attic/configure.postfix,v 1.25 2003-01-04 16:17:26 seanc Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/postfix27/scripts/Attic/configure.postfix,v 1.26 2003-01-09 05:10:39 petef Exp $ if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then exit @@ -22,14 +22,16 @@ if [ -z "${BATCH}" ]; then --checklist "\n\ Please select desired options:" -1 -1 16 \ PCRE "Perl Compatible Regular Expressions" "$status_PCRE" \ -SASL "Cyrus SASL (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \ MySQL "MySQL map lookups" "$status_MySQL" \ PgSQL "PostgreSQL map lookups" "$status_PgSQL" \ OpenLDAP "OpenLDAP map lookups" "$status_OpenLDAP" \ Test "SMTP/LMTP test server and generator" "$status_Test" \ -TLS "Secure Sockets Layer and Transport Layer Security" "$status_TLS" \ -IPv6 "IPv6 support (not KAME official)" "$status_IPv6" \ +TLS "SSL and TLS" "$status_TLS" \ +IPv6 "IPv6 support (currently broken)" "$status_IPv6" \ +IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \ 2> $tempfile retval=$? @@ -58,8 +60,8 @@ echo "PREFIX= ${PREFIX}" SUB_TLS="@comment " SUB_TEST="@comment " -for i; do - case $i in +while [ "$1" ]; do + case $1 in PCRE) echo "LIB_DEPENDS+= pcre.0:\${PORTSDIR}/devel/pcre" echo "POSTFIX_CCARGS+= -DHAS_PCRE -I\${LOCALBASE}/include" @@ -67,13 +69,32 @@ for i; do 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 + 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 ${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="" + ;; + 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 ${PREFIX}/lib/libsasl2.a ]; then + if nm ${PREFIX}/lib/libsasl2.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 @@ -90,8 +111,8 @@ for i; do 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.11a-1.1.11-0.9.6g.tar.gz" - echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.11a-1.1.11-0.9.6g/pfixtls.diff" + echo "DISTFILES+= \${DISTNAME}.tar.gz pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz" + echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.12-2.0.0.1-0.9.6h/pfixtls.diff" echo "PATCH_STRIP= -p1" echo "TLS_SUFFIX= +tls" SUB_TLS="" @@ -132,10 +153,10 @@ for i; do 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 + exit 1 fi - if [ -z $SUB_TLS ]; then - /usr/bin/dialog --msgbox "IPv6 and TLS patch cannot be used simultaneously!" 5 60 > /dev/stderr + if [ X$SUB_TLS = "X" ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 fi @@ -144,15 +165,30 @@ for i; do echo "PATCH_DIST_STRIP= -p1" echo "IPv6_SUFFIX= +ipv6" echo "" + IPv6SELECTED=YES ;; - "") + IPv6TLS) + if [ X$SUB_TLS = "X" -o X$IPv6SELECTED != X ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr + rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + exit 1 + fi + echo "MAN8+= tlsmgr.8" + echo "POSTFIX_CCARGS+= -DHAS_SSL -I/usr/include/openssl" + echo "POSTFIX_AUXLIBS+= -lssl -lcrypto" + echo "PATCH_SITES+= ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.10/" + echo "PATCHFILES+= tls+ipv6-1.10-pf-2.0.0.1.patch.gz" + echo "PATCH_DIST_STRIP= -p1" + echo "TLS_SUFFIX= +ipv6+tls" + SUB_TLS="" ;; *) - echo "Invalid option(s): $*" > /dev/stderr + echo "Unknown option(s): $*" > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 ;; esac + shift done echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\"" diff --git a/mail/postfix28/Makefile b/mail/postfix28/Makefile index 6adf63b1ee8..f75e2d5770b 100644 --- a/mail/postfix28/Makefile +++ b/mail/postfix28/Makefile @@ -9,10 +9,11 @@ # # make -DBATCH POSTFIX_OPTIONS="DB3 PCRE" # -# the options are the same names as in the scripts/configure.postfix file +# the options are the same names as in the scripts/configure.postfix file. +# POSTFIX_OPTIONS can be set in /etc/make.conf also. PORTNAME= postfix -PORTVERSION= 1.1.12 +PORTVERSION= 2.0.0.2 PORTEPOCH= 1 CATEGORIES= mail ipv6 MASTER_SITES= ftp://ftp.porcupine.org/mirrors/postfix-release/official/ \ @@ -45,6 +46,8 @@ MAN8= bounce.8 cleanup.8 defer.8 error.8 flush.8 lmtp.8 local.8 \ # patch it. MAN8base=$(MAN8:S/tlsmgr.8//) +NO_LATEST_LINK= yes + CONF1= main.cf master.cf access aliases canonical pcre_table regexp_table \ relocated transport virtual diff --git a/mail/postfix28/distinfo b/mail/postfix28/distinfo index 832388cccb9..9ed106bfeb1 100644 --- a/mail/postfix28/distinfo +++ b/mail/postfix28/distinfo @@ -1,4 +1,4 @@ -MD5 (postfix/postfix-1.1.12.tar.gz) = d1d0f9792ec6ea063ccca59184e54212 -MD5 (postfix/pfixtls-0.8.11a-1.1.11-0.9.6g.tar.gz) = 11d82e9a3482f64af9d228f7a4319566 -MD5 (postfix/postfix-1.1.12+ipv6.patch.gz) = add4396ce50ca61b5d9b67454fb51258 +MD5 (postfix/postfix-2.0.0.2.tar.gz) = 1e51a2290d33ee498f9abe91dbb27dc2 +MD5 (postfix/pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz) = 1111b97c77e71b2f7edd9ab6d36fb550 MD5 (postfix/postfix-pg.postfix-1.1.8.patch) = e0f4d910a6d6648d9b48e2244f2764ba +MD5 (postfix/tls+ipv6-1.10-pf-2.0.0.1.patch.gz) = ed18c6933fa81961bcbd1e3a28493487 diff --git a/mail/postfix28/files/patch-bd b/mail/postfix28/files/patch-bd deleted file mode 100644 index ce79695f134..00000000000 --- a/mail/postfix28/files/patch-bd +++ /dev/null @@ -1,11 +0,0 @@ -*** ./html/local.8.html.orig Thu Feb 3 21:15:02 2000 ---- ./html/local.8.html Thu Jun 1 22:22:30 2000 -*************** -*** 99,101 **** - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i> or <b>/var/spool/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> ---- 99,101 ---- - The default per-user mailbox is a file in the UNIX mail -! spool directory (<b>/var/mail/</b><i>user</i>); - the location can be specified with the <b>mail</b><i>_</i><b>spool</b><i>_</i><b>direc-</b> diff --git a/mail/postfix28/files/patch-ck b/mail/postfix28/files/patch-ck deleted file mode 100644 index 6e1ddce3c8f..00000000000 --- a/mail/postfix28/files/patch-ck +++ /dev/null @@ -1,11 +0,0 @@ -*** ./man/man8/local.8.orig Thu Feb 3 21:14:53 2000 ---- ./man/man8/local.8 Thu Jun 1 22:42:43 2000 -*************** -*** 96,98 **** - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR or \fB/var/spool/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR ---- 96,98 ---- - The default per-user mailbox is a file in the UNIX mail spool -! directory (\fB/var/mail/\fIuser\fR); - the location can be specified with the \fBmail_spool_directory\fR diff --git a/mail/postfix28/files/patch-ea b/mail/postfix28/files/patch-ea new file mode 100644 index 00000000000..6c3f98d2af4 --- /dev/null +++ b/mail/postfix28/files/patch-ea @@ -0,0 +1,13 @@ +*** ./src/cleanup/cleanup.c.orig Sun May 28 18:33:41 2000 +--- ./src/cleanup/cleanup.c Thu Jun 1 21:52:22 2000 +*************** +*** 118,121 **** + /* FILES +! /* /etc/postfix/canonical*, canonical mapping table +! /* /etc/postfix/virtual*, virtual mapping table + /* LICENSE +--- 118,121 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/canonical*, canonical mapping table +! /* !!PREFIX!!/etc/postfix/virtual*, virtual mapping table + /* LICENSE diff --git a/mail/postfix28/files/patch-eb b/mail/postfix28/files/patch-eb new file mode 100644 index 00000000000..e67680963d2 --- /dev/null +++ b/mail/postfix28/files/patch-eb @@ -0,0 +1,11 @@ +*** ./src/global/mail_conf.c.orig Sun May 7 18:51:16 2000 +--- ./src/global/mail_conf.c Thu Jun 1 22:16:29 2000 +*************** +*** 53,55 **** + /* FILES +! /* /etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT +--- 53,55 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix: default Postfix configuration directory. + /* ENVIRONMENT diff --git a/mail/postfix28/files/patch-ee b/mail/postfix28/files/patch-ee new file mode 100644 index 00000000000..ef44eac24b7 --- /dev/null +++ b/mail/postfix28/files/patch-ee @@ -0,0 +1,13 @@ +*** ./src/master/master.c.orig Tue Mar 7 10:25:07 2000 +--- ./src/master/master.c Thu Jun 1 22:43:50 2000 +*************** +*** 104,107 **** + /* FILES +! /* /etc/postfix/main.cf: global configuration file. +! /* /etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. +--- 104,107 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/main.cf: global configuration file. +! /* !!PREFIX!!/etc/postfix/master.cf: master process configuration file. + /* /var/spool/postfix/pid/master.pid: master lock file. diff --git a/mail/postfix28/files/patch-ef b/mail/postfix28/files/patch-ef new file mode 100644 index 00000000000..586b304a103 --- /dev/null +++ b/mail/postfix28/files/patch-ef @@ -0,0 +1,11 @@ +*** ./src/postdrop/postdrop.c.orig Sun Apr 25 18:05:43 1999 +--- ./src/postdrop/postdrop.c Thu Jun 1 22:44:22 2000 +*************** +*** 39,41 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 39,41 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix28/files/patch-eg b/mail/postfix28/files/patch-eg new file mode 100644 index 00000000000..2983bbfd86e --- /dev/null +++ b/mail/postfix28/files/patch-eg @@ -0,0 +1,20 @@ +*** ./src/sendmail/sendmail.c.orig Tue Mar 14 10:42:06 2000 +--- ./src/sendmail/sendmail.c Thu Jun 1 22:47:24 2000 +*************** +*** 57,59 **** + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +--- 57,59 ---- + /* The path name of the \fBsendmail.cf\fR file. Postfix configuration +! /* files are kept in \fB!!PREFIX!!/etc/postfix\fR. + /* .IP "\fB-F \fIfull_name\fR +*************** +*** 159,161 **** + /* /var/spool/postfix, mail queue +! /* /etc/postfix, configuration files + /* CONFIGURATION PARAMETERS +--- 159,161 ---- + /* /var/spool/postfix, mail queue +! /* !!PREFIX!!/etc/postfix, configuration files + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix28/files/patch-eh b/mail/postfix28/files/patch-eh new file mode 100644 index 00000000000..c104c3680d2 --- /dev/null +++ b/mail/postfix28/files/patch-eh @@ -0,0 +1,11 @@ +*** ./src/trivial-rewrite/transport.c.orig Tue Nov 16 19:15:41 1999 +--- ./src/trivial-rewrite/transport.c Thu Jun 1 22:47:49 2000 +*************** +*** 32,34 **** + /* FILES +! /* /etc/postfix/transport* + /* CONFIGURATION PARAMETERS +--- 32,34 ---- + /* FILES +! /* !!PREFIX!!/etc/postfix/transport* + /* CONFIGURATION PARAMETERS diff --git a/mail/postfix28/files/patch-ei b/mail/postfix28/files/patch-ei deleted file mode 100644 index 8f03b69ccc5..00000000000 --- a/mail/postfix28/files/patch-ei +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtpd/smtpd.h.orig Thu Sep 14 10:17:23 2000 ---- ./src/smtpd/smtpd.h Thu Sep 14 10:17:38 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix28/files/patch-ej b/mail/postfix28/files/patch-ej deleted file mode 100644 index 329d7bb1cf9..00000000000 --- a/mail/postfix28/files/patch-ej +++ /dev/null @@ -1,21 +0,0 @@ -*** ./src/smtp/smtp.h.orig Thu Sep 14 13:04:43 2000 ---- ./src/smtp/smtp.h Thu Sep 14 13:04:53 2000 -*************** -*** 12,19 **** - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl.h> -! #include <saslutil.h> - #endif - - /* ---- 12,19 ---- - * SASL library. - */ - #ifdef USE_SASL_AUTH -! #include <sasl1/sasl.h> -! #include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix28/files/patch-lmtp.h b/mail/postfix28/files/patch-lmtp.h deleted file mode 100644 index 86d5975b2b4..00000000000 --- a/mail/postfix28/files/patch-lmtp.h +++ /dev/null @@ -1,13 +0,0 @@ ---- ./src/lmtp/lmtp.h.orig Fri Jan 19 15:43:06 2001 -+++ ./src/lmtp/lmtp.h Sat Feb 3 14:01:09 2001 -@@ -12,8 +12,8 @@ - * SASL library. - */ - #ifdef USE_SASL_AUTH --#include <sasl.h> --#include <saslutil.h> -+#include <sasl1/sasl.h> -+#include <sasl1/saslutil.h> - #endif - - /* diff --git a/mail/postfix28/files/patch-main.cf b/mail/postfix28/files/patch-main.cf new file mode 100644 index 00000000000..95fb2feaca0 --- /dev/null +++ b/mail/postfix28/files/patch-main.cf @@ -0,0 +1,58 @@ +--- ./conf/main.cf Wed Jan 8 22:11:52 2003 ++++ ./conf/main.cf Wed Jan 8 22:11:53 2003 +@@ -31,13 +31,13 @@ + # The command_directory parameter specifies the location of all + # postXXX commands. + # +-command_directory = /usr/sbin ++command_directory = /usr/local/sbin + + # The daemon_directory parameter specifies the location of all Postfix + # daemon programs (i.e. programs listed in the master.cf file). This + # directory must be owned by root. + # +-daemon_directory = /usr/libexec/postfix ++daemon_directory = /usr/local/libexec/postfix + + # QUEUE AND PROCESS OWNERSHIP + # +@@ -590,32 +590,32 @@ + # sendmail_path: The full pathname of the Postfix sendmail command. + # This is the Sendmail-compatible mail posting interface. + # +-sendmail_path = ++sendmail_path = /usr/local/sbin/sendmail + + # newaliases_path: The full pathname of the Postfix newaliases command. + # This is the Sendmail-compatible command to build alias databases. + # +-newaliases_path = ++newaliases_path = /usr/local/bin/newaliases + + # mailq_path: The full pathname of the Postfix mailq command. This + # is the Sendmail-compatible mail queue listing command. + # +-mailq_path = ++mailq_path = /usr/local/bin/mailq + + # setgid_group: The group for mail submission and queue management + # commands. This must be a group name with a numerical group ID that + # is not shared with other accounts, not even with the Postfix account. + # +-setgid_group = ++setgid_group = maildrop + + # manpage_directory: The location of the Postfix on-line manual pages. + # +-manpage_directory = ++manpage_directory = /usr/local/man + + # sample_directory: The location of the Postfix sample configuration files. + # +-sample_directory = ++sample_directory = /usr/local/etc/postfix + + # readme_directory: The location of the Postfix README files. + # +-readme_directory = ++readme_directory = no diff --git a/mail/postfix28/pkg-message b/mail/postfix28/pkg-message index 7fb3a804599..a7ae2b17e2a 100644 --- a/mail/postfix28/pkg-message +++ b/mail/postfix28/pkg-message @@ -8,21 +8,10 @@ sendmail_outbound_enable="NO" sendmail_submit_enable="NO" sendmail_msp_queue_enable="NO" - **OR** +This will disable Sendmail completely. -sendmail_enable="NONE" -then type this command as root: - -ln -s /usr/local/sbin/postfix /usr/local/etc/rc.d/postfix.sh - -Either of these will disable Sendmail completely. The latter form is useful -if you need to wait until other local package initialization (such as ldconfig -for Postgres or MySQL) is done. The former method will start postfix very -early on in the boot process. - - -Also, you will want to disable some Sendmail-specific daily maintenance +Also, you may wish to disable some Sendmail-specific daily maintenance routines in your /etc/periodic.conf file: daily_status_mail_rejects_enable="NO" diff --git a/mail/postfix28/pkg-plist b/mail/postfix28/pkg-plist index 5b6c3c55d5b..6d882a8666a 100644 --- a/mail/postfix28/pkg-plist +++ b/mail/postfix28/pkg-plist @@ -32,6 +32,7 @@ etc/postfix/sample-lmtp.cf etc/postfix/sample-local.cf etc/postfix/sample-main.cf etc/postfix/sample-master.cf +etc/postfix/sample-mime.cf etc/postfix/sample-misc.cf etc/postfix/sample-pcre-access.cf etc/postfix/sample-pcre-body.cf @@ -86,6 +87,7 @@ bin/newaliases bin/mailq %%SUB_TEST%%sbin/smtp-sink %%SUB_TEST%%sbin/smtp-source +%%PORTDOCS%%share/doc/postfix/ADDRESS_CLASS_README %%PORTDOCS%%share/doc/postfix/DB_README %%PORTDOCS%%share/doc/postfix/DEBUG_README %%PORTDOCS%%share/doc/postfix/ETRN_README @@ -93,13 +95,16 @@ bin/mailq %%PORTDOCS%%share/doc/postfix/INSTALL %%PORTDOCS%%share/doc/postfix/LDAP_README %%PORTDOCS%%share/doc/postfix/LINUX_README +%%PORTDOCS%%share/doc/postfix/LOCAL_RECIPIENT_README %%PORTDOCS%%share/doc/postfix/LMTP_README %%PORTDOCS%%share/doc/postfix/MACOSX_README +%%PORTDOCS%%share/doc/postfix/MAILDROP_README %%PORTDOCS%%share/doc/postfix/MYSQL_README %%PORTDOCS%%share/doc/postfix/NFS_README %%PORTDOCS%%share/doc/postfix/PACKAGE_README %%PORTDOCS%%share/doc/postfix/PCRE_README %%PORTDOCS%%share/doc/postfix/QMQP_README +%%PORTDOCS%%share/doc/postfix/RELEASE_NOTES %%PORTDOCS%%share/doc/postfix/RESTRICTION_CLASS_README %%PORTDOCS%%share/doc/postfix/SASL_README %%PORTDOCS%%share/doc/postfix/ULTRIX_README diff --git a/mail/postfix28/scripts/configure.postfix b/mail/postfix28/scripts/configure.postfix index 3c8530d6a36..40d4a0dd18c 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.25 2003-01-04 16:17:26 seanc Exp $ +# $FreeBSD: /tmp/pcvs/ports/mail/postfix28/scripts/Attic/configure.postfix,v 1.26 2003-01-09 05:10:39 petef Exp $ if [ -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc ]; then exit @@ -22,14 +22,16 @@ if [ -z "${BATCH}" ]; then --checklist "\n\ Please select desired options:" -1 -1 16 \ PCRE "Perl Compatible Regular Expressions" "$status_PCRE" \ -SASL "Cyrus SASL (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL "Cyrus SASLv1 (Simple Authentication and Security Layer)" "$status_SASL" \ +SASL2 "Cyrus SASLv2 (Simple Authentication and Security Layer)" "$status_SASL2" \ DB3 "Berkeley DB3 (required if SASL also built with DB3)" "$status_DB3" \ MySQL "MySQL map lookups" "$status_MySQL" \ PgSQL "PostgreSQL map lookups" "$status_PgSQL" \ OpenLDAP "OpenLDAP map lookups" "$status_OpenLDAP" \ Test "SMTP/LMTP test server and generator" "$status_Test" \ -TLS "Secure Sockets Layer and Transport Layer Security" "$status_TLS" \ -IPv6 "IPv6 support (not KAME official)" "$status_IPv6" \ +TLS "SSL and TLS" "$status_TLS" \ +IPv6 "IPv6 support (currently broken)" "$status_IPv6" \ +IPv6TLS "IPv6 support with SSL and TLS" "$status_IPv6TLS" \ 2> $tempfile retval=$? @@ -58,8 +60,8 @@ echo "PREFIX= ${PREFIX}" SUB_TLS="@comment " SUB_TEST="@comment " -for i; do - case $i in +while [ "$1" ]; do + case $1 in PCRE) echo "LIB_DEPENDS+= pcre.0:\${PORTSDIR}/devel/pcre" echo "POSTFIX_CCARGS+= -DHAS_PCRE -I\${LOCALBASE}/include" @@ -67,13 +69,32 @@ for i; do 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 + 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 ${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="" + ;; + 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 ${PREFIX}/lib/libsasl2.a ]; then + if nm ${PREFIX}/lib/libsasl2.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 @@ -90,8 +111,8 @@ for i; do 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.11a-1.1.11-0.9.6g.tar.gz" - echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.11a-1.1.11-0.9.6g/pfixtls.diff" + echo "DISTFILES+= \${DISTNAME}.tar.gz pfixtls-0.8.12-2.0.0.1-0.9.6h.tar.gz" + echo "EXTRA_PATCHES+= \${WRKDIR}/pfixtls-0.8.12-2.0.0.1-0.9.6h/pfixtls.diff" echo "PATCH_STRIP= -p1" echo "TLS_SUFFIX= +tls" SUB_TLS="" @@ -132,10 +153,10 @@ for i; do 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 + exit 1 fi - if [ -z $SUB_TLS ]; then - /usr/bin/dialog --msgbox "IPv6 and TLS patch cannot be used simultaneously!" 5 60 > /dev/stderr + if [ X$SUB_TLS = "X" ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 fi @@ -144,15 +165,30 @@ for i; do echo "PATCH_DIST_STRIP= -p1" echo "IPv6_SUFFIX= +ipv6" echo "" + IPv6SELECTED=YES ;; - "") + IPv6TLS) + if [ X$SUB_TLS = "X" -o X$IPv6SELECTED != X ]; then + /usr/bin/dialog --msgbox "Select exactly one of the IPv6 and TLS patches" 5 60 > /dev/stderr + rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc + exit 1 + fi + echo "MAN8+= tlsmgr.8" + echo "POSTFIX_CCARGS+= -DHAS_SSL -I/usr/include/openssl" + echo "POSTFIX_AUXLIBS+= -lssl -lcrypto" + echo "PATCH_SITES+= ftp://ftp.stack.nl/pub/postfix/tls+ipv6/1.10/" + echo "PATCHFILES+= tls+ipv6-1.10-pf-2.0.0.1.patch.gz" + echo "PATCH_DIST_STRIP= -p1" + echo "TLS_SUFFIX= +ipv6+tls" + SUB_TLS="" ;; *) - echo "Invalid option(s): $*" > /dev/stderr + echo "Unknown option(s): $*" > /dev/stderr rm -f ${WRKDIRPREFIX}${CURDIR}/Makefile.inc exit 1 ;; esac + shift done echo "PLIST_SUB+= SUB_TLS=\"${SUB_TLS}\"" |