1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/mail/qtools/Makefile
Bryan Drewery 0bc41e9815 Farewell qmail. You were good but the lack of an upstream maintainer or
ecosystem maintainers makes this not a viable mail system today. Personally
I am moving to postfix and have so far found it incredibly easy to setup and
already prefer it over qmail.
2015-05-28 15:56:59 +00:00

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= ports@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>