aboutsummaryrefslogtreecommitdiff
path: root/mail/qtools/Makefile
blob: 0f3fb576a3ecce4bb2d9772e428b55ab44295d02 (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
PORTNAME=	qtools
PORTVERSION=	0.56
PORTREVISION=	3
CATEGORIES=	mail
MASTER_SITES=	http://www.superscript.com/qtools/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Tools to use in .qmail files
WWW=		http://www.superscript.com/qtools/intro.html

# Converted from LEGAL_TEXT
LICENSE=	djb
LICENSE_NAME=	djb
LICENSE_TEXT=	No license -- see http://cr.yp.to/softwarelaw.html
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

RUN_DEPENDS=	${EZMLM_DIR}/bin/ezmlm-weed:mail/ezmlm

USES=		qmail:vars

ALL_TARGET=	prog
INSTALL_TARGET=	setup check

EZMLM_DIR?=	${LOCALBASE}

post-patch:
	@${REINPLACE_CMD} -e 's|02755|0755|g' ${WRKSRC}/hier.c

do-configure:
	@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
	@${ECHO_CMD} "${CC} ${STRIP}" > ${WRKSRC}/conf-ld
	@${ECHO_CMD} "${PREFIX}" > ${WRKSRC}/conf-home
	@${ECHO_CMD} "${QMAIL_PREFIX}" > ${WRKSRC}/conf-qmail
	@${ECHO_CMD} "${EZMLM_DIR}/bin/ezmlm" > ${WRKSRC}/conf-ezmlm

# Do a dance to stage and keep out of resulting binaries (see r346769
# and r349241)
post-build:
	@${ECHO_MSG} "===> Rebuilding DJB installer to respect STAGEDIR"
	@${MV} -f ${WRKSRC}/conf-home ${WRKSRC}/conf-home.sav
	@${ECHO_CMD} "${STAGEDIR}${PREFIX}" > ${WRKSRC}/conf-home
	@cd ${WRKSRC} ; ${RM} install instcheck install.o instcheck.o hier.o auto_home.o auto_home.c
	@cd ${WRKSRC} ; ${DO_MAKE_BUILD} install instcheck
	@${TOUCH} ${WRKSRC}/replier-config
	@${MV} -f ${WRKSRC}/conf-home.sav ${WRKSRC}/conf-home

.include <bsd.port.mk>