1999-05-03 04:46:44 +02:00
|
|
|
# New ports collection makefile for: qmailanalog
|
|
|
|
# Date created: 29 November 1998
|
|
|
|
# Whom: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
|
|
|
|
#
|
1999-08-25 08:51:17 +02:00
|
|
|
# $FreeBSD$
|
2000-04-13 22:01:08 +02:00
|
|
|
#
|
1999-05-03 04:46:44 +02:00
|
|
|
|
2000-04-13 22:01:08 +02:00
|
|
|
PORTNAME= qmailanalog
|
2001-01-16 18:33:20 +01:00
|
|
|
PORTVERSION= 0.70
|
1999-05-03 04:46:44 +02:00
|
|
|
CATEGORIES= mail
|
2001-05-24 16:04:39 +02:00
|
|
|
MASTER_SITES= ftp://cr.yp.to/software/
|
1999-05-03 04:46:44 +02:00
|
|
|
|
2000-01-25 12:08:58 +01:00
|
|
|
MAINTAINER= nbm@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A collection of tools to analyze qmail-send's activity
|
1999-05-03 04:46:44 +02:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail
|
|
|
|
|
|
|
|
ALL_TARGET= it
|
|
|
|
INSTALL_TARGET= setup
|
|
|
|
|
|
|
|
MANPREFIX= ${QMPREFIX}
|
|
|
|
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
|
|
|
|
QMAIL_DIR?= /var/qmail
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(NOSUBDIR)
|
|
|
|
MYSUBDIR?= qmailanalog/
|
|
|
|
.else
|
|
|
|
MYSUBDIR?=
|
|
|
|
.endif
|
|
|
|
|
|
|
|
QMPREFIX?= ${PREFIX}/${MYSUBDIR}
|
|
|
|
|
2001-01-16 18:33:20 +01:00
|
|
|
NO_MTREE= yes
|
2003-11-20 16:06:14 +01:00
|
|
|
USE_PERL5_BUILD=yes
|
1999-05-03 04:46:44 +02:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@perl -pi.bak -e "s|.usr.local.qmailanalog|${QMPREFIX}|" ${WRKSRC}/conf-home
|
|
|
|
@perl -pi.bak -e "s|-O2|${CFLAGS}|" ${WRKSRC}/conf-cc
|
|
|
|
@perl -pi.bak -e '$$_ = "" if /cat/' ${WRKSRC}/hier.c
|
2002-01-29 12:48:57 +01:00
|
|
|
@${ECHO_CMD} ${PREFIX} > ${WRKDIR}/.PPREFIX
|
|
|
|
@${ECHO_CMD} ${QMAIL_DIR} >> ${WRKDIR}/.PPREFIX
|
1999-05-03 04:46:44 +02:00
|
|
|
|
|
|
|
pre-install:
|
2002-01-29 12:48:57 +01:00
|
|
|
@${ECHO_CMD} ${PREFIX} > ${WRKDIR}/.IPREFIX
|
|
|
|
@${ECHO_CMD} ${QMAIL_DIR} >> ${WRKDIR}/.IPREFIX
|
1999-05-03 04:46:44 +02:00
|
|
|
@diff ${WRKDIR}/.[PI]PREFIX > /dev/null \
|
2002-01-29 12:48:57 +01:00
|
|
|
|| (${ECHO_CMD} ${DIFF_MSG} && exit 1)
|
1999-08-23 01:33:47 +02:00
|
|
|
@${MKDIR} ${QMPREFIX}
|
1999-05-03 04:46:44 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|