aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qmailanalog/Makefile
blob: 1914687938aeeaab4e0608fddbf986e4a3b2e6c9 (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
# Created by: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
# $FreeBSD$

PORTNAME=   qmailanalog
PORTVERSION=    0.70
PORTREVISION=   3
CATEGORIES= mail
MASTER_SITES=   http://cr.yp.to/software/ \
        http://www.emaillab.org/djb/qmailanalog/

MAINTAINER= bdrewery@FreeBSD.org
COMMENT=    Tools to analyze qmail-send's activity

USES=       qmail:run
NO_STAGE=   yes

ALL_TARGET= it
INSTALL_TARGET= setup

MANPREFIX=  ${QMPREFIX}
MAN1=       matchup.1 xqp.1 xsender.1 xrecipient.1 columnt.1

PLIST_SUB+= MYSUBDIR=${MYSUBDIR}

.if !defined(NOSUBDIR)
MYSUBDIR?=  qmailanalog/
.else
MYSUBDIR?=
.endif

PREFIX?=    ${QMAIL_PREFIX}
QMPREFIX?=  ${PREFIX}/${MYSUBDIR}

NO_MTREE=   yes

.include <bsd.port.pre.mk>

.if ${PREFIX} != ${QMAIL_PREFIX}
BROKEN= Cannot Make and Install with different PREFIX or QMAIL_PREFIX
.endif

post-patch:
    @${REINPLACE_CMD} "s|.usr.local.qmailanalog|${QMPREFIX}|" ${WRKSRC}/conf-home
    @${REINPLACE_CMD} "s|-O2|${CFLAGS}|" ${WRKSRC}/conf-cc
    @${REINPLACE_CMD} 's|02755|0755|g; /cat/d' ${WRKSRC}/hier.c
    @${REINPLACE_CMD} 's|^man prog|prog|g' ${WRKSRC}/Makefile

pre-install:
    @${MKDIR} ${QMPREFIX}

.include <bsd.port.post.mk>