blob: d3abbf5cfaf0a91200fc3766d7b852f89b522283 (
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
67
68
69
70
71
72
73
74
75
|
# New ports collection makefile for: qmail-contrib
# Date created: 28 November 1998
# Whom: Neil Blakey-Milner <nbm@rucus.ru.ac.za>
#
# $FreeBSD$
#
PORTNAME= qmail-contrib
PORTVERSION= 0.1
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.qmail.org/pub/software/ \
ftp://rucus.ru.ac.za/pub/mail/qmail/src/
DISTFILES= dot-forward-${DF_VER}.tar.gz \
fastforward-${FF_VER}.tar.gz
MAINTAINER= garga@FreeBSD.org
COMMENT= Contributed programs for qmail
USE_QMAIL_RUN= yes
NO_PACKAGE= Unsure of djb's license
ALL_TARGET= it
INSTALL_TARGET= setup
MAN1= dot-forward.1 fastforward.1 printforward.1 setforward.1 \
newaliases.1 printmaillist.1 setmaillist.1 newinclude.1
PREFIX?= ${QMAIL_PREFIX}
FF_VER= 0.51
DF_VER= 0.71
QCK_VER= 0.1
WRKFF= ${WRKDIR}/fastforward-${FF_VER}
WRKDF= ${WRKDIR}/dot-forward-${DF_VER}
NO_MTREE= yes
PORTDOCS= ALIASES
.include <bsd.port.pre.mk>
.if (${PREFIX} != ${LOCALBASE})
DOCSDIR= doc
.endif
pre-patch:
@${PATCH} -d ${WRKFF} -s <${PATCHDIR}/extra-patch-newaliases
post-patch:
@${REINPLACE_CMD} -e "s|.var.qmail|${QMAIL_PREFIX}|" \
${WRKFF}/conf-qmail \
${WRKDF}/conf-qmail
@${REINPLACE_CMD} -e '/cat/d; s|doc/fastforward|${DOCSDIR}|g' \
${WRKFF}/hier.c \
${WRKDF}/hier.c
@${REINPLACE_CMD} -e "s|-O2|${CFLAGS}|" \
${WRKFF}/conf-cc \
${WRKDF}/conf-cc
.if defined(NOPORTDOCS)
@${REINPLACE_CMD} -E 's|^(.*${DOCSDIR})|// \1|g' \
${WRKFF}/hier.c
.endif
do-build:
@${MAKE} -C ${WRKDIR}/dot-forward-${DF_VER} ${ALL_TARGET}
@${MAKE} -C ${WRKDIR}/fastforward-${FF_VER} ${ALL_TARGET}
do-install:
@${MAKE} -C ${WRKDIR}/dot-forward-${DF_VER} ${INSTALL_TARGET}
@${MAKE} -C ${WRKDIR}/fastforward-${FF_VER} ${INSTALL_TARGET}
.include <bsd.port.post.mk>
|