aboutsummaryrefslogtreecommitdiff
path: root/mail/qmail-conf/Makefile
blob: 93bf63a5c39c3a8e3d9dd5dd59c137d10f198848 (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
# New ports collection makefile for:	qmail-conf
# Date created:		8 April 2003
# Whom:			roam@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=	qmail-conf
PORTVERSION=	0.60
PORTREVISION=	2
CATEGORIES=	mail
MASTER_SITES=	http://www.din.or.jp/~ushijima/qmail-conf/ \
		http://cr.yp.to/djbdns/
DISTFILES=	${DISTNAME}.tar.gz \
		${DJBDNS_DIST}
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	roam@FreeBSD.org
COMMENT=	Configure various qmail services to run under daemontools

WANT_QMAIL=	yes

ALL_TARGET=	it
INSTALL_TARGET=	setup check

NO_PACKAGE=	"borrows code from djbdns, thus falls under the same restrictions as dns/djbdns"

PREFIX?=	${QMAIL_PREFIX}

NO_MTREE=	yes

DJBDNS_VER=	1.05
DJBDNS_NAME=	djbdns-${DJBDNS_VER}
DJBDNS_DIST=	${DJBDNS_NAME}${EXTRACT_SUFX}

.include <bsd.port.pre.mk>

post-extract:
		@(cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DJBDNS_DIST} ${EXTRACT_AFTER_ARGS})

post-patch:
		@${ECHO_CMD} "${QMAIL_PREFIX}" > ${WRKSRC}/conf-qmail
		@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
		@${ECHO_CMD} "${CC} ${CFLAGS} ${STRIP}" > ${WRKSRC}/conf-ld
		@${ECHO_CMD} "${LOCALBASE}" > ${WRKSRC}/conf-ucspi-tcp

pre-build:
		@(cd ${WRKSRC} && ${MAKE} djbdns=${DJBDNS_NAME} -f Makefile.ini)

.include <bsd.port.post.mk>