Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 1998 12:57:28 +0200
From:      Neil Blakey-Milner <nbm@rucus.ru.ac.za>
To:        FreeBSD-gnats-submit@FreeBSD.ORG, freebsd-ports@FreeBSD.ORG
Subject:   Re: ports/8884: New port - ezmlm
Message-ID:  <19981129125728.A12095@rucus.ru.ac.za>
In-Reply-To: <199811290040.QAA20693@freefall.freebsd.org>; from FreeBSD-gnats-submit@FreeBSD.ORG on Sat, Nov 28, 1998 at 04:40:01PM -0800
References:  <19981129003624.28038.qmail@scythe.graham.ru.ac.za> <199811290040.QAA20693@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat 1998-11-28 (16:40), FreeBSD-gnats-submit@FreeBSD.ORG wrote:
> >Category:       ports
> >Responsible:    freebsd-ports
> >Synopsis:       New port: mail/ezmlm
> >Arrival-Date:   Sat Nov 28 16:40:01 PST 1998

Please apply the following patch to add dependancy to qmail.


--- ezmlm.orig/Makefile	Sun Nov 29 12:06:22 1998
+++ ezmlm/Makefile	Sun Nov 29 12:33:29 1998
@@ -11,6 +11,8 @@
 
 MAINTAINER=	ports@freebsd.org
 
+RUN_DEPENDS=	${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail
+
 ALL_TARGET=	it
 INSTALL_TARGET=	setup
 
@@ -19,17 +21,26 @@
 MAN1+=		ezmlm-warn.1 ezmlm-weed.1
 MAN5=		ezmlm.5
 
-DIFF_MSG=       Cannot Make and Install with different PREFIX or DESTDIR
+DIFF_MSG=       Cannot Make and Install with different PREFIX or QMAIL_DIR
+
+.if exists(/usr/local/qmail/bin/qmail-send)
+QMAIL_DIR?=	/usr/local/qmail
+.else
+QMAIL_DIR?=	/var/qmail
+.endif
 
 post-patch:
 	@perl -pi.bak -e "s|.usr.local.bin.ezmlm|${PREFIX}/bin|" ${WRKSRC}/conf-bin
 	@perl -pi.bak -e "s|.usr.local|${PREFIX}|" ${WRKSRC}/conf-man
+	@perl -pi.bak -e "s|.var.qmail|${QMAIL_DIR}|" ${WRKSRC}/conf-qmail
 	@perl -pi.bak -e "s|-O2|${CFLAGS}|" ${WRKSRC}/conf-cc
 	@perl -pi.bak -e '$$_ = "" if /cat/' ${WRKSRC}/MAN
 	@echo ${PREFIX} > ${WRKDIR}/.PPREFIX
+	@echo ${QMAIL_DIR} >> ${WRKDIR}/.PPREFIX
 
 pre-install:
 	@echo ${PREFIX} > ${WRKDIR}/.IPREFIX
+	@echo ${QMAIL_DIR} >> ${WRKDIR}/.IPREFIX
 	@diff ${WRKDIR}/.[PI]PREFIX > /dev/null \
 	|| (echo ${DIFF_MSG} && exit 1)
 
Thanks,

Neil
-- 
Neil Blakey-Milner
nbm@rucus.ru.ac.za

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981129125728.A12095>