1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/mail/qmailmrtg7/Makefile
Florent Thoumie d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00

39 lines
1.0 KiB
Makefile

# New ports collection makefile for: qmailmrtg7
# Date created: 16 Jun 2004
# Whom: Alex Dupre <ale@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= qmailmrtg7
PORTVERSION= 4.2
PORTREVISION= 2
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
USE_QMAIL= yes
.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>