63f96859ce
bapt contributed to the qmail.mk as well - Trim headers USES= qmail:run will add qmail into RUN_DEPENDS USES= qmail:build will add qmail into BUILD_DEPENDS USES= qmail[:both] will add qmail into both RUN and BUILD DEPENDS USES= qmail:vars will set QMAIL_PREFIX With hat: portmgr
35 lines
965 B
Makefile
35 lines
965 B
Makefile
# Created by: Alex Dupre <ale@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= qmailmrtg7
|
|
PORTVERSION= 4.2
|
|
PORTREVISION= 5
|
|
CATEGORIES= mail net-mgmt
|
|
MASTER_SITES= http://www.inter7.com/qmailmrtg7/
|
|
|
|
MAINTAINER= ale@FreeBSD.org
|
|
COMMENT= A program to create mrtg graphs for qmail activity
|
|
|
|
RUN_DEPENDS= mrtg:${PORTSDIR}/net-mgmt/mrtg
|
|
|
|
USES= qmail
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} "s|cc|${CC}|g;s|-s -O|${CFLAGS}|g" ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} "s|/usr/local|${PREFIX}|g;s|/var/qmail|${QMAIL_PREFIX}|g" \
|
|
${WRKSRC}/checkq.c ${WRKSRC}/qmail.mrtg.cfg
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/qmailmrtg7 ${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/qmail.mrtg.cfg ${PREFIX}/etc/qmail.mrtg.cfg.sample
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/index.html ${EXAMPLESDIR}
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/FAQ ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|