diff options
author | steve <steve@FreeBSD.org> | 1999-01-18 03:51:18 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-01-18 03:51:18 +0000 |
commit | e07529055cb89b3f47d77b120b4985447748becb (patch) | |
tree | 6e3ee6e16dd3c0ae3cb9daf6734089b403beb394 /mail/ezmlm-idx/Makefile | |
parent | 5b29a4e97c1c4b6bb0a807ac0d07d38c4ea8daac (diff) | |
download | FreeBSD-ports-e07529055cb89b3f47d77b120b4985447748becb.zip FreeBSD-ports-e07529055cb89b3f47d77b120b4985447748becb.tar.gz |
Initial import of ezmlm-idx version 0.313.
Dan J. Bernstein's cleaned up version of ezmlm version 0.53.
PR: 8885
Submitted by: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
Diffstat (limited to 'mail/ezmlm-idx/Makefile')
-rw-r--r-- | mail/ezmlm-idx/Makefile | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/mail/ezmlm-idx/Makefile b/mail/ezmlm-idx/Makefile new file mode 100644 index 0000000..58a6e01 --- /dev/null +++ b/mail/ezmlm-idx/Makefile @@ -0,0 +1,64 @@ +# New ports collection makefile for: ezmlm +# Version required: 0.53 +# Date created: 28 November 1998 +# Whom: Neil Blakey-Milner <nbm@rucus.ru.ac.za> +# +# $Id$ + +DISTNAME= ezmlm-idx-${IDX_VERSION} +CATEGORIES= mail +MASTER_SITES= ftp://ftp.id.wustl.edu/pub/patches/ +DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ + ezmlm-${EZMLM_VERSION}${EXTRACT_SUFX} + +MAINTAINER= ports@freebsd.org + +RUN_DEPENDS= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail + +WRKSRC= ${WRKDIR}/ezmlm-${EZMLM_VERSION} + +ALL_TARGET= it +INSTALL_TARGET= setup + +MAN1= ezmlm-list.1 ezmlm-make.1 ezmlm-manage.1 ezmlm-reject.1 \ + ezmlm-return.1 ezmlm-send.1 ezmlm-sub.1 ezmlm-unsub.1 \ + ezmlm-warn.1 ezmlm-weed.1 ezmlm-accept.1 ezmlm-both.1 \ + ezmlm-issubn.1 ezmlm-glconf.1 ezmlm-glmake.1 ezmlm-moderate.1 \ + ezmlm-request.1 ezmlm-store.1 ezmlm-idx.1 ezmlm-gate.1 \ + ezmlm-tstdig.1 ezmlm-get.1 ezmlm-check.1 ezmlm-clean.1 \ + ezmlm-cron.1 +MAN5= ezmlm.5 + +DIFF_MSG= Cannot Make and Install with different PREFIX or QMAIL_DIR + +.if exists(${PREFIX}/bin/qmail-send) +QMAIL_DIR?= ${PREFIX}/qmail +.else +QMAIL_DIR?= /var/qmail +.endif + +EZMLM_VERSION= 0.53 +IDX_VERSION= 0.313 + +pre-patch: + @${MV} -f ${WRKDIR}/ezmlm-idx-${IDX_VERSION}/* ${WRKSRC} + @cd ${WRKSRC} \ + && ${PATCH} < idx.patch + +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|-O2|${CFLAGS}|" ${WRKSRC}/conf-cc + @perl -pi.bak -e "s|.var.qmail|${QMAIL_DIR}|" ${WRKSRC}/conf-qmail + + @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) + +.include <bsd.port.mk> |