aboutsummaryrefslogtreecommitdiffstats
path: root/mail/ezmlm/Makefile
blob: 9a660391f541c67d523ce2158e4f2ec164420f5c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# New ports collection makefile for:    ezmlm
# Date created:     28 November 1998
# Whom:         Neil Blakey-Milner <nbm@rucus.ru.ac.za>
#
# $FreeBSD$
#

PORTNAME=   ezmlm
PORTVERSION=    0.53
CATEGORIES= mail
MASTER_SITES=   ftp://ftp.ezmlm.org/pub/qmail/ \
        ftp://ftp.ntnu.no/pub/unix/mail/qmail/ \
        ftp://mirror.pipex.net/pub/qmail/ \
        ftp://ftp.jp.qmail.org/qmail/ \
        ftp://ftp.rifkin.technion.ac.il/pub/qmail/ \
        ftp://ftp.mira.net.au/unix/mail/qmail/

MAINTAINER= tom@FreeBSD.org

# 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

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

MY_PROGRAMS=    ezmlm-make ezmlm-manage ezmlm-send ezmlm-reject ezmlm-return \
        ezmlm-warn ezmlm-weed ezmlm-list ezmlm-sub ezmlm-unsub

post-patch:
    @${ECHO_CMD} ${PREFIX}/bin > ${WRKSRC}/conf-bin
    @${ECHO_CMD} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
    @${ECHO_CMD} ${CC} -s > ${WRKSRC}/conf-ld
    @${ECHO_CMD} ${PREFIX}/man > ${WRKSRC}/conf-man
    @${ECHO_CMD} ${QMAIL_DIR} > ${WRKSRC}/conf-qmail
    @${ECHO_CMD} ${PREFIX} > ${WRKDIR}/.PPREFIX
    @${ECHO_CMD} ${QMAIL_DIR} >> ${WRKDIR}/.PPREFIX

pre-install:
    @${ECHO_CMD} ${PREFIX} > ${WRKDIR}/.IPREFIX
    @${ECHO_CMD} ${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>