aboutsummaryrefslogtreecommitdiffstats
path: root/mail/ezmlm-idx/Makefile
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1999-02-22 12:17:42 +0800
committersteve <steve@FreeBSD.org>1999-02-22 12:17:42 +0800
commit40c5f53694fd272342d3e3752ea448f1a12c080e (patch)
tree9361acc961a4fe49d52f86f3f2a4a542213bfd6f /mail/ezmlm-idx/Makefile
parent986973cb030a23ad92622642cf5224b4be8cc6da (diff)
downloadfreebsd-ports-gnome-40c5f53694fd272342d3e3752ea448f1a12c080e.tar.gz
freebsd-ports-gnome-40c5f53694fd272342d3e3752ea448f1a12c080e.tar.zst
freebsd-ports-gnome-40c5f53694fd272342d3e3752ea448f1a12c080e.zip
Cleanups from new maintainer.
PR: 9930 Submitted by: Tom Hukins <tom@eborcom.com>
Diffstat (limited to 'mail/ezmlm-idx/Makefile')
-rw-r--r--mail/ezmlm-idx/Makefile89
1 files changed, 63 insertions, 26 deletions
diff --git a/mail/ezmlm-idx/Makefile b/mail/ezmlm-idx/Makefile
index 58a6e011d729..0e543b8d2b26 100644
--- a/mail/ezmlm-idx/Makefile
+++ b/mail/ezmlm-idx/Makefile
@@ -1,24 +1,36 @@
# New ports collection makefile for: ezmlm
-# Version required: 0.53
+# Version required: 0.313
# Date created: 28 November 1998
# Whom: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
#
-# $Id$
+# $Id: Makefile,v 1.1.1.1 1999/01/18 03:51:18 steve Exp $
-DISTNAME= ezmlm-idx-${IDX_VERSION}
+DISTNAME= ezmlm-idx-${IDX_VERSION}
CATEGORIES= mail
-MASTER_SITES= ftp://ftp.id.wustl.edu/pub/patches/
+MASTER_SITES= ftp://ftp.ezmlm.org/pub/patches/ \
+ ftp://gd.tuwien.ac.at/infosys/mail/qmail/ezmlm-patches/ \
+ ftp://ftp.win.or.jp/pub/network/mail/qmail/ezmlm-idx/
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
ezmlm-${EZMLM_VERSION}${EXTRACT_SUFX}
-MAINTAINER= ports@freebsd.org
+MAINTAINER= tom@eborcom.com
+
+.if defined(NOPORTDOCS)
+PLIST= ${PKGDIR}/PLIST.nodocs
+.endif
+
+# QMAIL_DIR is the directory where qmail is installed
+.if !defined(QMAIL_DIR)
+QMAIL_DIR= /var/qmail
+.endif
RUN_DEPENDS= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail
+NO_PACKAGE= Unsure of djb's license
+
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 \
@@ -27,38 +39,63 @@ MAN1= ezmlm-list.1 ezmlm-make.1 ezmlm-manage.1 ezmlm-reject.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
+MAN5= ezmlm.5 ezmlmrc.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
+MY_PROGRAMS= ezmlm-clean ezmlm-cron ezmlm-gate ezmlm-get ezmlm-idx \
+ ezmlm-issubn ezmlm-list ezmlm-make ezmlm-manage \
+ ezmlm-moderate ezmlm-request ezmlm-reject ezmlm-return \
+ ezmlm-send ezmlm-store ezmlm-sub ezmlm-tstdig ezmlm-unsub \
+ ezmlm-warn ezmlm-weed
+
+MY_SCRIPTS= ezmlm-accept ezmlm-both ezmlm-check ezmlm-glconf ezmlm-glmake
+
+MY_CONFIG= ezmlmrc
EZMLM_VERSION= 0.53
IDX_VERSION= 0.313
pre-patch:
@${MV} -f ${WRKDIR}/ezmlm-idx-${IDX_VERSION}/* ${WRKSRC}
- @cd ${WRKSRC} \
- && ${PATCH} < idx.patch
+ @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
+ @${ECHO} ${PREFIX}/bin > ${WRKSRC}/conf-bin
+ @${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
+ @${ECHO} ${CC} -s > ${WRKSRC}/conf-ld
+ @${ECHO} ${PREFIX}/man > ${WRKSRC}/conf-man
+ @${ECHO} ${QMAIL_DIR} > ${WRKSRC}/conf-qmail
+ @${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)
+ @${ECHO} ${PREFIX} > ${WRKDIR}/.IPREFIX
+ @${ECHO} ${QMAIL_DIR} >> ${WRKDIR}/.IPREFIX
+ @diff ${WRKDIR}/.[PI]PREFIX || (${ECHO} ${DIFF_MSG} && exit 1)
+
+do-install:
+.for file in ${MY_PROGRAMS}
+ @${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin
+.endfor
+.for file in ${MY_SCRIPTS}
+ @${INSTALL_SCRIPT} ${WRKSRC}/${file} ${PREFIX}/bin
+.endfor
+.for file in ${MY_CONFIG}
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/bin
+.endfor
+.for file in ${MAN1}
+ @${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/man/man1
+.endfor
+.for file in ${MAN5}
+ @${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/man/man5
+.endfor
+.if !defined(NOPORTDOCS)
+ @${ECHO} "===> Copying documents to ${PREFIX}/share/doc/ezmlm-idx"
+ @${MKDIR} ${PREFIX}/share/doc/ezmlm-idx
+.for file in CHANGES.idx DOWNGRADE.idx FAQ.idx INSTALL.idx README.idx UPGRADE.idx
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/ezmlm-idx
+.endfor
+.endif
.include <bsd.port.mk>