diff options
author | pav <pav@FreeBSD.org> | 2005-05-11 21:07:41 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2005-05-11 21:07:41 +0800 |
commit | 6339479fa81702674548b9ad74d541d21c8e6375 (patch) | |
tree | fc814c89cfd9e4be0d5ac879c3819d6175e7f140 | |
parent | 35bd0ed3da3561f3e5d692e2fc3832e37b64d2e7 (diff) | |
download | freebsd-ports-gnome-6339479fa81702674548b9ad74d541d21c8e6375.tar.gz freebsd-ports-gnome-6339479fa81702674548b9ad74d541d21c8e6375.tar.zst freebsd-ports-gnome-6339479fa81702674548b9ad74d541d21c8e6375.zip |
- Add QMTPC patch, it closes PR ports/54002
- Add LOCALTIME patch, that emit dates in local timezone
- Add BROKEN message if QMTPC and OUTGOINGIP patches are selected simultaneously
- Rename BARRIER vars to a short name
- Change DISTDIR to download all qmail related files on qmail subdir
PR: ports/80864
Submitted by: Renato Botelho <freebsd@galle.com.br> (maintainer)
-rw-r--r-- | mail/qmail/Makefile | 82 | ||||
-rw-r--r-- | mail/qmail/distinfo | 56 |
2 files changed, 83 insertions, 55 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile index cab13c179a34..1516144f4879 100644 --- a/mail/qmail/Makefile +++ b/mail/qmail/Makefile @@ -15,27 +15,31 @@ DISTNAME= ${PORTNAME}-${QMAIL_VERSION} MAINTAINER?= freebsd@galle.com.br COMMENT?= A secure, reliable, efficient, simple, and fast MTA +DIST_SUBDIR= qmail + .if defined(SLAVE_LDAP) || defined(SLAVE_SPAMCONTROL) -MAIN_QMAIL_PORT_DNS_PATCH_BARRIER=yes -MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER=yes +BARRIER_DNS_PATCH=yes +BARRIER_BIG_CONCURRENCY_PATCH=yes +BARRIER_QMTPC_PATCH=yes .endif .if defined(SLAVE_LDAP) || defined(SLAVE_SMTP_AUTH_TLS) || \ defined(SLAVE_SPAMCONTROL) || defined(SLAVE_TLS) -MAIN_QMAIL_PORT_WITH_OUTGOINGIP_PATCH_BARRIER=yes -MAIN_QMAIL_PORT_RFC2821_PATCH_BARRIER=yes +BARRIER_OUTGOINGIP_PATCH=yes +BARRIER_RFC2821_PATCH=yes .endif .if defined(SLAVE_MYSQL) || defined(SLAVE_SPAMCONTROL) -MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER=yes +BARRIER_QMAILQUEUE_PATCH=yes .endif .if defined(SLAVE_SPAMCONTROL) -MAIN_QMAIL_PORT_SENDMAIL_F_PATCH_BARRIER=yes -MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER=yes +BARRIER_SENDMAIL_F_PATCH=yes +BARRIER_BIG_TODO_PATCH=yes +BARRIER_LOCALTIME_PATCH=yes .endif -.if !defined(MAIN_QMAIL_PORT_DNS_PATCH_BARRIER) +.if !defined(BARRIER_DNS_PATCH) # Patch necessary to cope with non-RFC >512 dns entries # Since AOL has been using those, the problem has skyrocketed from minor to # groundzero. qmail being RFC compliant need to be "fixed" to work with those @@ -44,14 +48,14 @@ PATCHFILES+= qmail-103.patch:dns PATCH_DIST_STRIP+= -p1 .endif -.if !defined(MAIN_QMAIL_PORT_SENDMAIL_F_PATCH_BARRIER) +.if !defined(BARRIER_SENDMAIL_F_PATCH) # David Phillips noticed that sendmail's -f option sets a default # From: header, and so should qmail's emulation. PATCH_SITES+= http://david.acz.org/software/:sendmail_flagf PATCHFILES+= sendmail-flagf.patch:sendmail_flagf .endif -.if !defined(MAIN_QMAIL_PORT_RFC2821_PATCH_BARRIER) +.if !defined(BARRIER_RFC2821_PATCH) # This patch changes qmail-remote to skip over MX servers that greet with # codes 400 to 499 and to bounce mail when any MX server that qmail tries # greets with a code 500 to 599. @@ -94,18 +98,24 @@ CFLAGS+= -DDEBUG .endif .endif -.if !defined(MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER) +.if !defined(BARRIER_QMAILQUEUE_PATCH) OPTIONS+= QMAILQUEUE_PATCH "run a QMAILQUEUE program" off .endif -.if !defined(MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER) +.if !defined(BARRIER_BIG_TODO_PATCH) OPTIONS+= BIG_TODO_PATCH "enable big_todo qmail patch" off .endif -.if !defined(MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER) +.if !defined(BARRIER_BIG_CONCURRENCY_PATCH) OPTIONS+= BIG_CONCURRENCY_PATCH "use a concurrency greater than 240" off .endif -.if !defined(MAIN_QMAIL_PORT_WITH_OUTGOINGIP_PATCH_BARRIER) +.if !defined(BARRIER_OUTGOINGIP_PATCH) OPTIONS+= OUTGOINGIP_PATCH "set the IP address to send messages" off .endif +.if !defined(BARRIER_LOCALTIME_PATCH) +OPTIONS+= LOCALTIME_PATCH "emit dates in the local timezone" off +.endif +.if !defined(BARRIER_QMTPC_PATCH) +OPTIONS+= QMTPC_PATCH "send email using qmtp protocol" off +.endif .if defined(SLAVE_TLS) || defined(SLAVE_SMTP_AUTH_TLS) OPTIONS+= TLS_DEBUG "enable additional debug information" off .elif defined(SLAVE_LDAP) @@ -252,29 +262,43 @@ USE_REINPLACE= yes .include <bsd.port.pre.mk> -.if !defined(MAIN_QMAIL_PORT_DNS_PATCH_BARRIER) \ - ||(defined(WITH_QMAILQUEUE_PATCH) && !defined(MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER)) \ - ||(defined(WITH_BIG_TODO_PATCH) && !defined(MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER)) \ - ||(defined(WITH_BIG_CONCURRENCY_PATCH)&& !defined(MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER)) \ - ||(defined(WITH_OUTGOINGIP_PATCH) && !defined(MAIN_QMAIL_PORT_WITH_OUTGOINGIP_PATCH_BARRIER)) +.if (defined(WITH_OUTGOINGIP_PATCH) && !defined(BARRIER_OUTGOINGIP_PATCH)) &&\ + (defined(WITH_QMTPC_PATCH) && !defined(BARRIER_QMTPC_PATCH)) +BROKEN= "OUTGOINGIP and QMTPC conflicts! Please, make your choice" +.endif + +.if !defined(BARRIER_DNS_PATCH) \ + ||(defined(WITH_QMAILQUEUE_PATCH) && !defined(BARRIER_QMAILQUEUE_PATCH)) \ + ||(defined(WITH_BIG_TODO_PATCH) && !defined(BARRIER_BIG_TODO_PATCH)) \ + ||(defined(WITH_BIG_CONCURRENCY_PATCH)&& !defined(BARRIER_BIG_CONCURRENCY_PATCH)) \ + ||(defined(WITH_OUTGOINGIP_PATCH) && !defined(BARRIER_OUTGOINGIP_PATCH)) \ + ||(defined(WITH_QMTPC_PATCH) && !defined(BARRIER_QMTPC_PATCH)) PATCH_SITES+= ${MASTER_SITE_QMAIL} .endif -.if defined(WITH_QMAILQUEUE_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_QMAILQUEUE_PATCH_BARRIER) +.if defined(WITH_QMAILQUEUE_PATCH) && !defined(BARRIER_QMAILQUEUE_PATCH) PATCHFILES+= qmailqueue-patch .endif -.if defined(WITH_BIG_TODO_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_BIG_TODO_PATCH_BARRIER) +.if defined(WITH_BIG_TODO_PATCH) && !defined(BARRIER_BIG_TODO_PATCH) PATCHFILES+= big-todo.103.patch .endif -.if defined(WITH_BIG_CONCURRENCY_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER) +.if defined(WITH_BIG_CONCURRENCY_PATCH) && !defined(BARRIER_BIG_CONCURRENCY_PATCH) PATCHFILES+= big-concurrency.patch .endif -.if defined(WITH_OUTGOINGIP_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_OUTGOINGIP_PATCH_BARRIER) +.if defined(WITH_OUTGOINGIP_PATCH) && !defined(BARRIER_OUTGOINGIP_PATCH) PATCHFILES+= outgoingip.patch .endif +.if defined(WITH_QMTPC_PATCH) && !defined(BARRIER_QMTPC_PATCH) +PATCHFILES+= qmail-1.03-qmtpc.patch +.endif + +.if defined(WITH_LOCALTIME_PATCH) && !defined(BARRIER_LOCALTIME_PATCH) +PATCH_SITES+= http://www.alib.jp/files/:localtime +PATCHFILES+= qmail-date-localtime.patch:localtime +.endif # Some default values, these can be modified by make command line -.if defined(WITH_BIG_CONCURRENCY_PATCH)&&!defined(MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER) +.if defined(WITH_BIG_CONCURRENCY_PATCH) && !defined(BARRIER_BIG_CONCURRENCY_PATCH) WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT?= 509 .endif @@ -342,7 +366,7 @@ SELECTED_OPTIONS+= bigtodo=no .endif pre-everything:: -.if !defined(MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER) +.if !defined(BARRIER_BIG_CONCURRENCY_PATCH) @${ECHO_MSG} "" @${ECHO_MSG} "You may use the following build options:" @${ECHO_MSG} "" @@ -355,7 +379,7 @@ pre-everything:: post-extract: .if defined(SLAVE_SPAMCONTROL) - @cd ${WRKSRC} && ${TAR} -xzf ${DISTDIR}/${SPAMCONTROL_DIST} + @cd ${WRKSRC} && ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${SPAMCONTROL_DIST} .endif post-patch: @@ -363,7 +387,7 @@ post-patch: @${REINPLACE_CMD} 's|/opt/mysql|${LOCALBASE}|' \ ${WRKSRC}/Makefile .elif defined(SLAVE_SMTP_AUTH_TLS) - @${HEAD} -6 ${DISTDIR}/qmail-1.03-starttls-smtp-auth.patch \ + @${HEAD} -6 ${DISTDIR}/${DIST_SUBDIR}/qmail-1.03-starttls-smtp-auth.patch \ | ${TAIL} -5 \ > ${WRKDIR}/SMTP_AUTH+TLS.readme @${REINPLACE_CMD} "s|/usr/local/ssl|${OPENSSLBASE}|" ${WRKSRC}/Makefile @@ -376,7 +400,7 @@ post-patch: .endfor @cd ${WRKSRC} && ./install_spamcontrol.sh .elif defined(SLAVE_TLS) - @${HEAD} -74 ${DISTDIR}/tls.patch > ${WRKDIR}/TLS.readme + @${HEAD} -74 ${DISTDIR}/${DIST_SUBDIR}/tls.patch > ${WRKDIR}/TLS.readme @${REINPLACE_CMD} "s|/usr/local/ssl|${OPENSSLBASE}|" \ ${WRKSRC}/Makefile .elif defined(SLAVE_LDAP) @@ -433,7 +457,7 @@ do-configure: @${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc @${ECHO_CMD} ${PREFIX} > ${WRKSRC}/conf-qmail .if defined(WITH_BIG_CONCURRENCY_PATCH) \ - && !defined(MAIN_QMAIL_PORT_WITH_BIG_CONCURRENCY_PATCH_BARRIER) \ + && !defined(BARRIER_BIG_CONCURRENCY_PATCH) \ && defined(WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT) @if [ ${WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT} -gt 0 ]; then \ ${ECHO_CMD} "${WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT}" \ diff --git a/mail/qmail/distinfo b/mail/qmail/distinfo index 6b41bbbbc6c5..e8a9221af477 100644 --- a/mail/qmail/distinfo +++ b/mail/qmail/distinfo @@ -1,26 +1,30 @@ -MD5 (qmail-1.03.tar.gz) = 622f65f982e380dbe86e6574f3abcb7c -SIZE (qmail-1.03.tar.gz) = 220668 -MD5 (qmail-103.patch) = 9140ad2b03017145cd7963c84bb24f16 -SIZE (qmail-103.patch) = 2104 -MD5 (qmail-1.03-starttls-smtp-auth.patch) = f42d6f2e58b7031ceb491820e85ddd16 -SIZE (qmail-1.03-starttls-smtp-auth.patch) = 41786 -MD5 (qmail-ldap-1.03-20020901.patch.gz) = 48d2761e9ae44bb4d2812a19634f1a5b -SIZE (qmail-ldap-1.03-20020901.patch.gz) = 130655 -MD5 (qmail-mysql-1.1.8.patch) = 0860a5b5cd5b6f99bf005e845b2e0764 -SIZE (qmail-mysql-1.1.8.patch) = 57702 -MD5 (tls.patch) = 57447ec135ddb32ada13a56b70ccf6d4 -SIZE (tls.patch) = 39095 -MD5 (qmailqueue-patch) = 5a8d7a5863b0c56236af945dedd45754 -SIZE (qmailqueue-patch) = 2510 -MD5 (big-todo.103.patch) = 39b6f70f65056472ff97ab40c1dba7b4 -SIZE (big-todo.103.patch) = 5546 -MD5 (big-concurrency.patch) = 2ff58c3570870a8ff9a1d9eb9aec05a6 -SIZE (big-concurrency.patch) = 9331 -MD5 (outgoingip.patch) = 3c9277dcf5f9b4b6d3a270fb3abf7994 -SIZE (outgoingip.patch) = 6839 -MD5 (sendmail-flagf.patch) = 4e1f2d8315e7e2a5482798c9d19fac4d -SIZE (sendmail-flagf.patch) = 863 -MD5 (patch-qmail-1.03-rfc2821.diff) = 1b85f233ab5b9d7ec1a8da1188bf10ef -SIZE (patch-qmail-1.03-rfc2821.diff) = 2564 -MD5 (spamcontrol-2313_tgz.bin) = a8ad350699dfd6110c3e8a8784f55ad4 -SIZE (spamcontrol-2313_tgz.bin) = 116888 +MD5 (qmail/qmail-1.03.tar.gz) = 622f65f982e380dbe86e6574f3abcb7c +SIZE (qmail/qmail-1.03.tar.gz) = 220668 +MD5 (qmail/qmail-103.patch) = 9140ad2b03017145cd7963c84bb24f16 +SIZE (qmail/qmail-103.patch) = 2104 +MD5 (qmail/qmail-1.03-starttls-smtp-auth.patch) = f42d6f2e58b7031ceb491820e85ddd16 +SIZE (qmail/qmail-1.03-starttls-smtp-auth.patch) = 41786 +MD5 (qmail/qmail-ldap-1.03-20020901.patch.gz) = 48d2761e9ae44bb4d2812a19634f1a5b +SIZE (qmail/qmail-ldap-1.03-20020901.patch.gz) = 130655 +MD5 (qmail/qmail-mysql-1.1.8.patch) = 0860a5b5cd5b6f99bf005e845b2e0764 +SIZE (qmail/qmail-mysql-1.1.8.patch) = 57702 +MD5 (qmail/tls.patch) = 57447ec135ddb32ada13a56b70ccf6d4 +SIZE (qmail/tls.patch) = 39095 +MD5 (qmail/qmailqueue-patch) = 5a8d7a5863b0c56236af945dedd45754 +SIZE (qmail/qmailqueue-patch) = 2510 +MD5 (qmail/big-todo.103.patch) = 39b6f70f65056472ff97ab40c1dba7b4 +SIZE (qmail/big-todo.103.patch) = 5546 +MD5 (qmail/big-concurrency.patch) = 2ff58c3570870a8ff9a1d9eb9aec05a6 +SIZE (qmail/big-concurrency.patch) = 9331 +MD5 (qmail/outgoingip.patch) = 3c9277dcf5f9b4b6d3a270fb3abf7994 +SIZE (qmail/outgoingip.patch) = 6839 +MD5 (qmail/sendmail-flagf.patch) = 4e1f2d8315e7e2a5482798c9d19fac4d +SIZE (qmail/sendmail-flagf.patch) = 863 +MD5 (qmail/patch-qmail-1.03-rfc2821.diff) = 1b85f233ab5b9d7ec1a8da1188bf10ef +SIZE (qmail/patch-qmail-1.03-rfc2821.diff) = 2564 +MD5 (qmail/spamcontrol-2313_tgz.bin) = a8ad350699dfd6110c3e8a8784f55ad4 +SIZE (qmail/spamcontrol-2313_tgz.bin) = 116888 +MD5 (qmail/qmail-date-localtime.patch) = d566e8bd99b33efee0194e855b8d6995 +SIZE (qmail/qmail-date-localtime.patch) = 2603 +MD5 (qmail/qmail-1.03-qmtpc.patch) = 122664c38338e5ec35fcac43f33d6927 +SIZE (qmail/qmail-1.03-qmtpc.patch) = 6197 |