aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-05-31 04:46:07 +0800
committerpav <pav@FreeBSD.org>2005-05-31 04:46:07 +0800
commitc13af28955335ad44b4f463a02e906d2594fd6c3 (patch)
tree5ac3359e794eeeb36128c72891484ff9f6a0ba9a /mail
parentedc4425ccf0a7a294e2cda824213c4c6870ae6bd (diff)
downloadfreebsd-ports-gnome-c13af28955335ad44b4f463a02e906d2594fd6c3.tar.gz
freebsd-ports-gnome-c13af28955335ad44b4f463a02e906d2594fd6c3.tar.zst
freebsd-ports-gnome-c13af28955335ad44b4f463a02e906d2594fd6c3.zip
- Use BROKEN instead a comparison using temporary files and exit 1
- Force PREFIX to /var/qmail when it's not set PR: ports/81675 Submitted by: Renato Botelho <freebsd@galle.com.br> (maintainer)
Diffstat (limited to 'mail')
-rw-r--r--mail/qmailanalog/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/mail/qmailanalog/Makefile b/mail/qmailanalog/Makefile
index 91f72a64ec7e..f2d6646bd8e4 100644
--- a/mail/qmailanalog/Makefile
+++ b/mail/qmailanalog/Makefile
@@ -24,8 +24,6 @@ MAN1= matchup.1 xqp.1 xsender.1 xrecipient.1 columnt.1
PLIST_SUB+= MYSUBDIR=${MYSUBDIR}
-DIFF_MSG= Cannot Make and Install with different PREFIX or QMAIL_DIR
-
.if exists(${PREFIX}/qmail/bin/qmail-send)
QMAIL_DIR?= ${PREFIX}/qmail
.else
@@ -38,24 +36,25 @@ MYSUBDIR?= qmailanalog/
MYSUBDIR?=
.endif
+PREFIX?= ${QMAIL_DIR}
QMPREFIX?= ${PREFIX}/${MYSUBDIR}
NO_MTREE= yes
USE_REINPLACE= yes
+.include <bsd.port.pre.mk>
+
+.if ${PREFIX} != ${QMAIL_DIR}
+BROKEN= "Cannot Make and Install with different PREFIX or QMAIL_DIR"
+.endif
+
post-patch:
@${REINPLACE_CMD} "s|.usr.local.qmailanalog|${QMPREFIX}|" ${WRKSRC}/conf-home
@${REINPLACE_CMD} "s|-O2|${CFLAGS}|" ${WRKSRC}/conf-cc
@${REINPLACE_CMD} 's|02755|0755|g; /cat/d' ${WRKSRC}/hier.c
@${REINPLACE_CMD} 's|^man prog|prog|g' ${WRKSRC}/Makefile
- @${ECHO_CMD} ${PREFIX} > ${WRKDIR}/.PPREFIX
- @${ECHO_CMD} ${QMAIL_DIR} >> ${WRKDIR}/.PPREFIX
pre-install:
- @${ECHO_CMD} ${PREFIX} > ${WRKDIR}/.IPREFIX
- @${ECHO_CMD} ${QMAIL_DIR} >> ${WRKDIR}/.IPREFIX
- @diff ${WRKDIR}/.[PI]PREFIX > /dev/null \
- || (${ECHO_CMD} ${DIFF_MSG} && exit 1)
@${MKDIR} ${QMPREFIX}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>