blob: 91f72a64ec7eb0ffb6ae6ef8f3cd2908ae6fb9e4 (
plain)
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
|
# New ports collection makefile for: qmailanalog
# Date created: 29 November 1998
# Whom: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
#
# $FreeBSD$
#
PORTNAME= qmailanalog
PORTVERSION= 0.70
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://cr.yp.to/software/
MAINTAINER= freebsd@galle.com.br
COMMENT= A collection of tools to analyze qmail-send's activity
RUN_DEPENDS= ${QMAIL_DIR}/bin/qmail-send:${PORTSDIR}/mail/qmail
ALL_TARGET= it
INSTALL_TARGET= setup
MANPREFIX= ${QMPREFIX}
MAN1= matchup.1 xqp.1 xsender.1 xrecipient.1 columnt.1
PLIST_SUB+= MYSUBDIR=${MYSUBDIR}
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
.if !defined(NOSUBDIR)
MYSUBDIR?= qmailanalog/
.else
MYSUBDIR?=
.endif
QMPREFIX?= ${PREFIX}/${MYSUBDIR}
NO_MTREE= yes
USE_REINPLACE= yes
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
@${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 > /dev/null \
|| (${ECHO_CMD} ${DIFF_MSG} && exit 1)
@${MKDIR} ${QMPREFIX}
.include <bsd.port.mk>
|