1999-05-03 02:46:44 +00:00
|
|
|
# New ports collection makefile for: qmailanalog
|
|
|
|
# Version required: 0.70
|
|
|
|
# Date created: 29 November 1998
|
|
|
|
# Whom: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
|
|
|
|
#
|
1999-08-25 06:51:17 +00:00
|
|
|
# $FreeBSD$
|
1999-05-03 02:46:44 +00:00
|
|
|
|
|
|
|
DISTNAME= qmailanalog-0.70
|
|
|
|
CATEGORIES= mail
|
|
|
|
MASTER_SITES= ftp://ftp.qmail.org/pub/software/
|
|
|
|
|
|
|
|
MAINTAINER= ports@freebsd.org
|
|
|
|
|
|
|
|
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}
|
|
|
|
|
|
|
|
NO_MTREE= yes
|
|
|
|
|
|
|
|
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
|
1999-08-27 22:30:39 +00:00
|
|
|
@${ECHO} ${PREFIX} > ${WRKDIR}/.PPREFIX
|
|
|
|
@${ECHO} ${QMAIL_DIR} >> ${WRKDIR}/.PPREFIX
|
1999-05-03 02:46:44 +00:00
|
|
|
|
|
|
|
pre-install:
|
1999-08-27 22:30:39 +00:00
|
|
|
@${ECHO} ${PREFIX} > ${WRKDIR}/.IPREFIX
|
|
|
|
@${ECHO} ${QMAIL_DIR} >> ${WRKDIR}/.IPREFIX
|
1999-05-03 02:46:44 +00:00
|
|
|
@diff ${WRKDIR}/.[PI]PREFIX > /dev/null \
|
1999-08-27 22:30:39 +00:00
|
|
|
|| (${ECHO} ${DIFF_MSG} && exit 1)
|
1999-08-22 23:33:47 +00:00
|
|
|
@${MKDIR} ${QMPREFIX}
|
1999-05-03 02:46:44 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|