1999-01-18 03:51:18 +00:00
|
|
|
# New ports collection makefile for: ezmlm
|
1999-06-07 13:30:39 +00:00
|
|
|
# Version required: 0.322
|
1999-01-18 03:51:18 +00:00
|
|
|
# Date created: 28 November 1998
|
|
|
|
# Whom: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
|
|
|
|
#
|
1999-07-01 09:06:39 +00:00
|
|
|
# $Id: Makefile,v 1.4 1999/06/07 13:30:28 billf Exp $
|
1999-01-18 03:51:18 +00:00
|
|
|
|
1999-02-22 04:17:42 +00:00
|
|
|
DISTNAME= ezmlm-idx-${IDX_VERSION}
|
1999-01-18 03:51:18 +00:00
|
|
|
CATEGORIES= mail
|
1999-02-22 04:17:42 +00:00
|
|
|
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/
|
1999-01-18 03:51:18 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
|
|
|
|
ezmlm-${EZMLM_VERSION}${EXTRACT_SUFX}
|
|
|
|
|
1999-06-07 13:30:39 +00:00
|
|
|
MAINTAINER= tom@FreeBSD.org
|
1999-02-22 04:17:42 +00:00
|
|
|
|
|
|
|
# QMAIL_DIR is the directory where qmail is installed
|
1999-03-31 15:34:35 +00:00
|
|
|
QMAIL_DIR?= /var/qmail
|
|
|
|
|
|
|
|
# LANGUAGE is the ISO code for the language to use in ezmlmrc
|
|
|
|
LANGUAGE?= en_US
|
1999-01-18 03:51:18 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail
|
|
|
|
|
1999-03-31 15:34:35 +00:00
|
|
|
# If USE_MYSQL is defined, build with MySQL extensions
|
|
|
|
.if defined(USE_MYSQL)
|
|
|
|
ALL_TARGET= it ${LANGUAGE} mysql
|
1999-07-01 09:06:39 +00:00
|
|
|
LIB_DEPENDS+= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
|
1999-03-31 15:34:35 +00:00
|
|
|
.else
|
|
|
|
ALL_TARGET= it ${LANGUAGE}
|
|
|
|
.endif
|
|
|
|
|
1999-02-22 04:17:42 +00:00
|
|
|
NO_PACKAGE= Unsure of djb's license
|
|
|
|
|
1999-01-18 03:51:18 +00:00
|
|
|
WRKSRC= ${WRKDIR}/ezmlm-${EZMLM_VERSION}
|
|
|
|
|
1999-03-31 15:34:35 +00:00
|
|
|
MAN1= ezmlm-accept.1 ezmlm-check.1 ezmlm-clean.1 ezmlm-cron.1 \
|
|
|
|
ezmlm-gate.1 ezmlm-get.1 ezmlm-glconf.1 ezmlm-grant.1 \
|
|
|
|
ezmlm-idx.1 ezmlm-issubn.1 ezmlm-limit.1 ezmlm-list.1 \
|
|
|
|
ezmlm-make.1 ezmlm-manage.1 ezmlm-mktab.1 ezmlm-moderate.1 \
|
|
|
|
ezmlm-receipt.1 ezmlm-reject.1 ezmlm-request.1 \
|
|
|
|
ezmlm-return.1 ezmlm-send.1 ezmlm-split.1 ezmlm-store.1 \
|
|
|
|
ezmlm-sub.1 ezmlm-test.1 ezmlm-tstdig.1 ezmlm-unsub.1 \
|
|
|
|
ezmlm-warn.1 ezmlm-weed.1
|
|
|
|
MAN5= ezmlm.5 ezmlmglrc.5 ezmlmrc.5 ezmlmsubrc.5
|
1999-01-18 03:51:18 +00:00
|
|
|
|
|
|
|
DIFF_MSG= Cannot Make and Install with different PREFIX or QMAIL_DIR
|
|
|
|
|
1999-03-31 15:34:35 +00:00
|
|
|
MY_PROGRAMS= clean cron gate get idx issubn list make manage \
|
|
|
|
moderate receipt request reject return send split \
|
|
|
|
store sub tstdig unsub warn weed
|
1999-02-22 04:17:42 +00:00
|
|
|
|
1999-03-31 15:34:35 +00:00
|
|
|
MY_SCRIPTS= accept check glconf grant mktab test
|
1999-02-22 04:17:42 +00:00
|
|
|
|
1999-03-31 15:34:35 +00:00
|
|
|
MY_CONFIG= ezmlmglrc ezmlmrc ezmlmsubrc
|
1999-01-18 03:51:18 +00:00
|
|
|
|
|
|
|
EZMLM_VERSION= 0.53
|
1999-06-07 13:30:39 +00:00
|
|
|
IDX_VERSION= 0.322
|
1999-03-31 15:34:35 +00:00
|
|
|
|
|
|
|
PLIST= ${WRKDIR}/PLIST
|
1999-01-18 03:51:18 +00:00
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@${MV} -f ${WRKDIR}/ezmlm-idx-${IDX_VERSION}/* ${WRKSRC}
|
1999-02-22 04:17:42 +00:00
|
|
|
@cd ${WRKSRC} && ${PATCH} < idx.patch
|
1999-01-18 03:51:18 +00:00
|
|
|
|
|
|
|
post-patch:
|
1999-02-22 04:17:42 +00:00
|
|
|
@${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
|
1999-03-31 15:34:35 +00:00
|
|
|
@${ECHO} ${NOPORTDOCS} ${USE_MYSQL} >> ${WRKDIR}/.PPREFIX
|
|
|
|
@${MV} ${WRKSRC}/idx.h ${WRKSRC}/idx.h.orig
|
|
|
|
@${SED} -e 's#TXT_ETC_EZMLMRC "/etc/ezmlmrc"#TXT_ETC_EZMLMRC "${PREFIX}/etc/ezmlmrc"#' \
|
|
|
|
< ${WRKSRC}/idx.h.orig > ${WRKSRC}/idx.h
|
|
|
|
@${CP} ${PKGDIR}/PLIST ${WRKDIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${CAT} ${PKGDIR}/PLIST.docs >> ${WRKDIR}/PLIST
|
|
|
|
.endif
|
1999-01-18 03:51:18 +00:00
|
|
|
|
|
|
|
pre-install:
|
1999-02-22 04:17:42 +00:00
|
|
|
@${ECHO} ${PREFIX} > ${WRKDIR}/.IPREFIX
|
|
|
|
@${ECHO} ${QMAIL_DIR} >> ${WRKDIR}/.IPREFIX
|
1999-03-31 15:34:35 +00:00
|
|
|
@${ECHO} ${NOPORTDOCS} ${USE_MYSQL} >> ${WRKDIR}/.IPREFIX
|
1999-02-22 04:17:42 +00:00
|
|
|
@diff ${WRKDIR}/.[PI]PREFIX || (${ECHO} ${DIFF_MSG} && exit 1)
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
.for file in ${MY_PROGRAMS}
|
1999-03-31 15:34:35 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/ezmlm-${file} ${PREFIX}/bin
|
1999-02-22 04:17:42 +00:00
|
|
|
.endfor
|
|
|
|
.for file in ${MY_SCRIPTS}
|
1999-03-31 15:34:35 +00:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/ezmlm-${file} ${PREFIX}/bin
|
1999-02-22 04:17:42 +00:00
|
|
|
.endfor
|
|
|
|
.for file in ${MY_CONFIG}
|
1999-03-31 15:34:35 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/etc/${file}.sample
|
1999-02-22 04:17:42 +00:00
|
|
|
.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
|
1999-03-31 15:34:35 +00:00
|
|
|
@${CAT} ${PKGDIR}/MESSAGE
|
1999-01-18 03:51:18 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|