Date: 6 Feb 1999 16:10:17 -0000 From: Tom Hukins <tom@eborcom.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/9930: Tidied port: ezmlm-idx Message-ID: <19990206161017.29155.qmail@eborcom.com>
next in thread | raw e-mail | index | archive | help
>Number: 9930 >Category: ports >Synopsis: ezmlm-idx port tidied up >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Feb 6 08:30:00 PST 1999 >Closed-Date: >Last-Modified: >Originator: Tom Hukins >Release: FreeBSD 2.2.8-STABLE i386 >Organization: eBORcOM >Environment: >Description: Minor changes to the ezmlm-idx port (similar to those for ezmlm): - Fixed up the installation procedure to honour INSTALL_* - Added some MASTER_SITES - Maintainer ports@freebsd.org -> tom@eborcom.com - Added NO_PACKAGE, as used in other djb ports (eg. ucspi-tcp, serialmail) - Removed patch-aa and patches directory, not needed due to new "do-install" target - Now installs docs unless NOPORTDOCS is defined. Added pkg/PLIST.nodocs file, in case docs are not installed >How-To-Repeat: >Fix: diff -ruN ezmlm-idx.old/Makefile ezmlm-idx/Makefile --- ezmlm-idx.old/Makefile Mon Jan 18 03:51:18 1999 +++ ezmlm-idx/Makefile Sat Feb 6 11:17:06 1999 @@ -1,5 +1,5 @@ # 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> # @@ -7,18 +7,30 @@ 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 \ @@ -31,34 +43,59 @@ 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> diff -ruN ezmlm-idx.old/patches/patch-aa ezmlm-idx/patches/patch-aa --- ezmlm-idx.old/patches/patch-aa Mon Jan 18 03:51:18 1999 +++ ezmlm-idx/patches/patch-aa Thu Jan 1 01:00:00 1970 @@ -1,11 +0,0 @@ ---- Makefile.orig Sat Nov 28 22:55:51 1998 -+++ Makefile Sat Nov 28 22:57:57 1998 -@@ -962,7 +962,7 @@ - ./compile seek_set.c - - setup: \ --it man install conf-bin conf-man -+it install conf-bin conf-man - ./install "`head -1 conf-bin`" < BIN - ./install "`head -1 conf-man`" < MAN - diff -ruN ezmlm-idx.old/pkg/PLIST ezmlm-idx/pkg/PLIST --- ezmlm-idx.old/pkg/PLIST Mon Jan 18 03:51:18 1999 +++ ezmlm-idx/pkg/PLIST Sat Feb 6 11:21:22 1999 @@ -1,26 +1,33 @@ bin/ezmlm-accept bin/ezmlm-both -bin/ezmlm-issubn +bin/ezmlm-check +bin/ezmlm-clean +bin/ezmlm-cron +bin/ezmlm-gate +bin/ezmlm-get bin/ezmlm-glconf bin/ezmlm-glmake +bin/ezmlm-idx +bin/ezmlm-issubn +bin/ezmlm-list bin/ezmlm-make bin/ezmlm-manage -bin/ezmlm-send -bin/ezmlm-request +bin/ezmlm-moderate bin/ezmlm-reject +bin/ezmlm-request bin/ezmlm-return -bin/ezmlm-warn -bin/ezmlm-weed -bin/ezmlm-list -bin/ezmlm-clean -bin/ezmlm-cron +bin/ezmlm-send bin/ezmlm-store -bin/ezmlm-moderate bin/ezmlm-sub +bin/ezmlm-tstdig bin/ezmlm-unsub +bin/ezmlm-warn +bin/ezmlm-weed bin/ezmlmrc -bin/ezmlm-idx -bin/ezmlm-check -bin/ezmlm-gate -bin/ezmlm-tstdig -bin/ezmlm-get +share/doc/ezmlm-idx/CHANGES.idx +share/doc/ezmlm-idx/DOWNGRADE.idx +share/doc/ezmlm-idx/FAQ.idx +share/doc/ezmlm-idx/INSTALL.idx +share/doc/ezmlm-idx/README.idx +share/doc/ezmlm-idx/UPGRADE.idx +@dirrm share/doc/ezmlm-idx diff -ruN ezmlm-idx.old/pkg/PLIST.nodocs ezmlm-idx/pkg/PLIST.nodocs --- ezmlm-idx.old/pkg/PLIST.nodocs Thu Jan 1 01:00:00 1970 +++ ezmlm-idx/pkg/PLIST.nodocs Sat Feb 6 11:02:12 1999 @@ -0,0 +1,26 @@ +bin/ezmlm-accept +bin/ezmlm-both +bin/ezmlm-check +bin/ezmlm-clean +bin/ezmlm-cron +bin/ezmlm-gate +bin/ezmlm-get +bin/ezmlm-glconf +bin/ezmlm-glmake +bin/ezmlm-idx +bin/ezmlm-issubn +bin/ezmlm-list +bin/ezmlm-make +bin/ezmlm-manage +bin/ezmlm-moderate +bin/ezmlm-reject +bin/ezmlm-request +bin/ezmlm-return +bin/ezmlm-send +bin/ezmlm-store +bin/ezmlm-sub +bin/ezmlm-tstdig +bin/ezmlm-unsub +bin/ezmlm-warn +bin/ezmlm-weed +bin/ezmlmrc >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990206161017.29155.qmail>