summaryrefslogtreecommitdiff
path: root/mail/qmail-conf/Makefile
blob: fe02bb47d2443c2e8a31f6e49a2d3dc216b29ecc (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
# $NetBSD: Makefile,v 1.14 2003/07/17 21:46:55 grant Exp $
#

DISTNAME=	qmail-conf-0.60
PKGREVISION=	2
CATEGORIES=	mail
MASTER_SITES=	http://www.din.or.jp/~ushijima/qmail-conf/		\
		http://cr.yp.to/djbdns/					\
		ftp://cr.yp.to/djbdns/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} djbdns-1.05${EXTRACT_SUFX}

MAINTAINER=	zuntum@NetBSD.org
HOMEPAGE=	http://www.din.or.jp/~ushijima/qmail-conf/
COMMENT=	collection of tools for setting up qmail services

DEPENDS+=	qmail>=1.03nb1:../../mail/qmail
DEPENDS+=	checkpassword-[0-9]*:../../sysutils/checkpassword

ALL_TARGET=	#
INSTALL_TARGET= setup check

.include "../../mk/bsd.prefs.mk"

NO_MTREE=	YES
LOCALBASE=	/

post-patch:
	${ECHO} ${CC} ${CFLAGS} > ${WRKSRC}/conf-cc
	${ECHO} ${CC} ${_STRIPFLAG_CC} > ${WRKSRC}/conf-ld
	# derive LOCALBASE from ${DIGEST}, because we have deliberately altered LOCALBASE
	# and there's no easy way to guess what the real LOCALBASE is
	${ECHO} ${DIGEST} | ${SED} 's,/bin/digest,,' > ${WRKSRC}/conf-ucspi-tcp
	${ECHO} ${QMAILDIR} > ${WRKSRC}/conf-qmail

pre-build:
	cd ${WRKSRC} && ${MAKE} -f Makefile.ini djbdns="../djbdns-1.05"

.include "../../mk/bsd.pkg.mk"