# Created by: petef@FreeBSD.org # $FreeBSD$ 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 RUN_DEPENDS= ${EZMLM_DIR}/bin/ezmlm-weed: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} 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