summaryrefslogtreecommitdiffstats
path: root/mail/qmrtg/Makefile
blob: 9269e0bf05feb137f97903961c42c1d9ad7027c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# New ports collection makefile for:   qmrtg
# Date created:        12 Jun 2004
# Whom:                Mij
#
# $FreeBSD$
#

PORTNAME=	qmrtg
PORTVERSION=	0.5.7
CATEGORIES=	mail net-mgmt
MASTER_SITES=	http://dev.publicshout.org/qmrtg/download/

MAINTAINER=	mij@bitchx.it
COMMENT=	A simple tool for monitoring and graphing qmail activity through MRTG

BROKEN=		"Creates the /nonexistent directory"

RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash2     \
		mrtg:${PORTSDIR}/net-mgmt/mrtg

MAN1=		qmrtg.1
USE_GMAKE=	yes

# this is the local apache documentroot
WWWROOTDIR?=	${PREFIX}/www/data
QMRTG_DBDIR?=	${PORT_DBDIR}/../${PORTNAME}

post-install:
# in_stall manpages
	@${MKDIR} ${PREFIX}/man/man1
.for foo in ${MAN1}
	${INSTALL_MAN} ${WRKSRC}/man/${foo} ${PREFIX}/man/man1
.endfor
.if !defined(WITHOUT_EXAMPLES)
# in_stall conig file examples
	${MKDIR} ${EXAMPLESDIR}
	${CP} ${WRKSRC}/examples/* ${EXAMPLESDIR}/
.endif
.if !defined(WITHOUT_HTMLTEMPLATES)
# in_stall html templates for mrtg graphs
	${MKDIR} ${WWWROOTDIR}/${PORTNAME}
	${CP} ${WRKSRC}/html/* ${WWWROOTDIR}/${PORTNAME}/
.endif
.if !defined(NOPORTDOCS)
# in_stall the few (FAQ, LICENSE etc) files provided by the package
	${MKDIR} ${DOCSDIR}
	${CP} ${WRKSRC}/doc/* ${DOCSDIR}/
.endif
	${MKDIR} ${QMRTG_DBDIR}
	@${CAT} pkg-message

.include <bsd.port.mk>
OpenPOWER on IntegriCloud