aboutsummaryrefslogtreecommitdiff
path: root/mail/qmail
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2014-06-20 03:17:04 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2014-06-20 03:17:04 +0000
commit79a2bb25a88363f3110ee52f01f74189f6bac4ff (patch)
tree11a70f49239c23a08cad7f46a50f61dab7f299df /mail/qmail
parent2e7fd2928574cb350add5d083c5e14944235d3b6 (diff)
downloadports-79a2bb25a88363f3110ee52f01f74189f6bac4ff.tar.gz
ports-79a2bb25a88363f3110ee52f01f74189f6bac4ff.zip
Notes
Diffstat (limited to 'mail/qmail')
-rw-r--r--mail/qmail/Makefile17
-rw-r--r--mail/qmail/files/extra-patch-dns-cname11
2 files changed, 27 insertions, 1 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile
index 3b14bc6b6fb7..ce0653c09cbb 100644
--- a/mail/qmail/Makefile
+++ b/mail/qmail/Makefile
@@ -3,7 +3,7 @@
PORTNAME= ${QMAIL_PORTNAME}
PORTVERSION?= ${QMAIL_VERSION}
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= mail
MASTER_SITES+= ${MASTER_SITE_QMAIL}
DISTNAME= ${PORTNAME}-${QMAIL_VERSION}
@@ -50,6 +50,7 @@ CLEARTEXTPASSWD_DESC= Use cleartext passwords (Dangerous!)
DASH_EXT_DESC= Dash_ext extended mail addresses add
DATA_COMPRESS_DESC= Smtp on the fly DATA compression
DISCBOUNCES_PATCH_DESC= Discard double-bounces
+DNS_CNAME_DESC= Request CNAME (vs ANY for BIND 4 bug)
ENHACELOGS_DESC= Enhace qmail-smtpd logs (spamcontrol-like)
EXTERNAL_TODO_DESC= External high-performance todo processing
EXTTODO_PATCH_DESC= Extern high-perform. todo processing
@@ -96,6 +97,7 @@ QMAIL_VERSION= 1.06
BARRIER_SENDMAIL_F_PATCH= yes
BARRIER_QMAILQUEUE_PATCH= yes
.else
+# This is only used for slave ports.
PORTNAME= qmail
QMAIL_VERSION= 1.03
.endif
@@ -136,6 +138,10 @@ BARRIER_RFC2821_PATCH= yes
BARRIER_TARPIT_PATCH= yes
.endif
+.if defined(SLAVE_SPAMCONTROL)
+BARRIER_DNS_CNAME= yes
+.endif
+
PATCH_DIST_STRIP+= -p1
.if !defined(BARRIER_DNS_PATCH)
@@ -246,6 +252,11 @@ OPTIONS_DEFAULT+= TLSREMOTE PAM111421
OPTIONS_DEFINE+=QEXTRA
+.if !defined(BARRIER_DNS_CNAME)
+OPTIONS_DEFINE+= DNS_CNAME
+OPTIONS_DEFAULT+= DNS_CNAME
+.endif
+
.if !defined(SLAVE_LDAP)
OPTIONS_DEFINE+=RCDLINK
OPTIONS_DEFAULT+= RCDLINK
@@ -513,6 +524,10 @@ PATCHFILES+= ext_todo-20030105.patch:exttodo
PLIST_SUB+= EXTTODO="@comment "
.endif
+.if ${PORT_OPTIONS:MDNS_CNAME}
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-dns-cname
+.endif
+
.if !defined(BARRIER_DNS_PATCH) \
|| !empty(PORT_OPTIONS:MQMAILQUEUE_PATCH) \
|| !empty(PORT_OPTIONS:MBIG_TODO_PATCH) \
diff --git a/mail/qmail/files/extra-patch-dns-cname b/mail/qmail/files/extra-patch-dns-cname
new file mode 100644
index 000000000000..cb3a6d578c49
--- /dev/null
+++ b/mail/qmail/files/extra-patch-dns-cname
@@ -0,0 +1,11 @@
+--- dns.c Mon Jun 15 10:53:16 1998
++++ dns.c Wed Mar 5 11:31:13 2003
+@@ -196,7 +196,7 @@
+ if (!sa->len) return loop;
+ if (sa->s[sa->len - 1] == ']') return loop;
+ if (sa->s[sa->len - 1] == '.') { --sa->len; continue; }
+- switch(resolve(sa,T_ANY))
++ switch(resolve(sa,T_CNAME))
+ {
+ case DNS_MEM: return DNS_MEM;
+ case DNS_SOFT: return DNS_SOFT;