aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qmail
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2007-02-11 23:29:25 +0800
committerRenato Botelho <garga@FreeBSD.org>2007-02-11 23:29:25 +0800
commit9d6b51a247e3c4087cd2acf802866e82c279505f (patch)
tree78aae97f0e2df1675d9f9a63b297ad540a06c55e /mail/qmail
parent97a2f4acc2bcd61afd4afaa31528f6de85b740f3 (diff)
downloadfreebsd-ports-gnome-9d6b51a247e3c4087cd2acf802866e82c279505f.tar.gz
freebsd-ports-gnome-9d6b51a247e3c4087cd2acf802866e82c279505f.tar.zst
freebsd-ports-gnome-9d6b51a247e3c4087cd2acf802866e82c279505f.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/qmail')
-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' \