mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# Created by: petef@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= qtools
|
|
PORTVERSION= 0.56
|
|
PORTREVISION= 3
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://www.superscript.com/qtools/
|
|
|
|
MAINTAINER= bdrewery@FreeBSD.org
|
|
COMMENT= Tools to use in .qmail files
|
|
|
|
RUN_DEPENDS= ${EZMLM_DIR}/bin/ezmlm-weed:${PORTSDIR}/mail/ezmlm
|
|
|
|
USES= qmail:vars
|
|
|
|
ALL_TARGET= prog
|
|
INSTALL_TARGET= setup check
|
|
|
|
LEGAL_TEXT= No license -- see http://cr.yp.to/softwarelaw.html
|
|
|
|
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} -f 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>
|