aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2007-02-11 23:29:25 +0800
committergarga <garga@FreeBSD.org>2007-02-11 23:29:25 +0800
commitd6f7ba2c1afc19101609a40acb4592ad9e15f8de (patch)
tree4a3aff043f676aa6195f9e1390240780f5263913 /mail
parent7e653646539c6bb5663f8dbebb46faf0cd6ace2c (diff)
downloadfreebsd-ports-gnome-d6f7ba2c1afc19101609a40acb4592ad9e15f8de.tar.gz
freebsd-ports-gnome-d6f7ba2c1afc19101609a40acb4592ad9e15f8de.tar.zst
freebsd-ports-gnome-d6f7ba2c1afc19101609a40acb4592ad9e15f8de.zip
Add a simple but very functional native feature of qmail, the use of QUEUE_EXTRA
option, as described in http://cr.yp.to/qmail/faq/admin.html. Can be used with every slaveport. PR: ports/108987 Submitted by: Patrick Tracanelli <eksffa@freebsdbrasil.com.br>
Diffstat (limited to 'mail')
-rw-r--r--mail/qmail/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile
index 002ff322bdd5..ea34d11ef8b4 100644
--- a/mail/qmail/Makefile
+++ b/mail/qmail/Makefile
@@ -179,6 +179,9 @@ OPTIONS+= RELAYMAILFROM "Open relay based on mailfrom" off \
BIGTODO "Bruce Guenter's BigToDo patch" off \
SMTPEXTFORK "Allow qmail-smtpd fork external progs" off
.endif
+
+OPTIONS+= QEXTRA "enable QUEUE_EXTRA e-mail copy feature" off
+
.if !defined(SLAVE_LDAP)
OPTIONS+= RCDLINK "create rc.d/qmail.sh" on
.endif
@@ -631,6 +634,11 @@ post-patch:
@${REINPLACE_CMD} '/"man"/d; /man\/man/d; /man\/cat/d; \
/"doc"/d; /"boot","/d' \
${WRKSRC}/hier.c
+.if defined (WITH_QEXTRA)
+ @${REINPLACE_CMD} 's!QUEUE_EXTRA ""!QUEUE_EXTRA "Tlog\\0"!g; \
+ s!QUEUE_EXTRALEN 0!QUEUE_EXTRALEN 5!g' \
+ ${WRKSRC}/extra.h
+.endif
do-configure:
@${SED} -e 's,%%RCDLINK%%,${RCDLINK},g; s,%%LOCALBASE%%,${LOCALBASE},g' \