ports/81675: [MAINTAINER] mail/qmailanalog: Polish Makefile

Renato Botelho freebsd at galle.com.br
Mon May 30 16:00:13 UTC 2005


>Number:         81675
>Category:       ports
>Synopsis:       [MAINTAINER] mail/qmailanalog: Polish Makefile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 30 16:00:11 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Renato Botelho
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
Galle Folheados - http://www.galle.com.br
>Environment:
System: FreeBSD data.galle.com.br 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Tue May 10 09:20:42 BRST 2005
>Description:
- Use BROKEN instead a comparison using temporary files and exit 1
- Force PREFIX to /var/qmail when it's not set

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- qmailanalog-0.70_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/mail/qmailanalog/Makefile,v
retrieving revision 1.18
diff -u -r1.18 Makefile
--- Makefile	11 Apr 2005 13:03:55 -0000	1.18
+++ Makefile	30 May 2005 15:49:59 -0000
@@ -24,8 +24,6 @@
 
 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?=
 .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>
--- qmailanalog-0.70_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list