mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-25 00:51:21 +00:00
Cleanups from new maintainer.
PR: 9929 Submitted by: Tom Hukins <tom@eborcom.com>
This commit is contained in:
parent
e65832c24f
commit
209161531c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=16840
@ -3,46 +3,64 @@
|
||||
# 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:48:08 steve Exp $
|
||||
#
|
||||
|
||||
DISTNAME= ezmlm-0.53
|
||||
DISTNAME= ezmlm-0.53
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= ftp://ftp.id.wustl.edu/pub/patches/
|
||||
MASTER_SITES= ftp://ftp.ezmlm.org/pub/qmail/ \
|
||||
ftp://ftp.ntnu.no/pub/unix/mail/qmail/ \
|
||||
ftp://ftp.pipex.net/mirrors/qmail/ \
|
||||
ftp://ftp.jp.qmail.org/qmail/ \
|
||||
ftp://ftp.rifkin.technion.ac.il/pub/qmail/ \
|
||||
ftp://ftp.mira.net.au/unix/mail/qmail/
|
||||
|
||||
MAINTAINER= ports@freebsd.org
|
||||
MAINTAINER= tom@eborcom.com
|
||||
|
||||
# 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
|
||||
|
||||
ALL_TARGET= it
|
||||
INSTALL_TARGET= setup
|
||||
NO_PACKAGE= Unsure of djb's license
|
||||
|
||||
MAN1= ezmlm-list.1 ezmlm-make.1 ezmlm-manage.1 ezmlm-reject.1
|
||||
MAN1+= ezmlm-return.1 ezmlm-send.1 ezmlm-sub.1 ezmlm-unsub.1
|
||||
MAN1+= ezmlm-warn.1 ezmlm-weed.1
|
||||
ALL_TARGET= it
|
||||
|
||||
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
|
||||
MAN5= ezmlm.5
|
||||
|
||||
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
|
||||
MY_PROGRAMS= ezmlm-make ezmlm-manage ezmlm-send ezmlm-reject ezmlm-return \
|
||||
ezmlm-warn ezmlm-weed ezmlm-list ezmlm-sub ezmlm-unsub
|
||||
|
||||
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|.var.qmail|${QMAIL_DIR}|" ${WRKSRC}/conf-qmail
|
||||
@perl -pi.bak -e "s|-O2|${CFLAGS}|" ${WRKSRC}/conf-cc
|
||||
@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 ${MAN1}
|
||||
@${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/man/man1
|
||||
.endfor
|
||||
.for file in ${MAN5}
|
||||
@${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/man/man5
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,10 +1,10 @@
|
||||
bin/ezmlm-list
|
||||
bin/ezmlm-make
|
||||
bin/ezmlm-manage
|
||||
bin/ezmlm-send
|
||||
bin/ezmlm-reject
|
||||
bin/ezmlm-return
|
||||
bin/ezmlm-warn
|
||||
bin/ezmlm-weed
|
||||
bin/ezmlm-list
|
||||
bin/ezmlm-send
|
||||
bin/ezmlm-sub
|
||||
bin/ezmlm-unsub
|
||||
bin/ezmlm-warn
|
||||
bin/ezmlm-weed
|
||||
|
Loading…
Reference in New Issue
Block a user