blob: 8c9c557cb91ad0c4e69ffe67030f53019ed6a50d (
plain) (
blame)
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
|
# New ports collection makefile for: mailgraph
# Date created: 30 August 2002
# Whom: Gea-Suan Lin (gslin@ccca.nctu.edu.tw)
#
# $FreeBSD$
#
PORTNAME= mailgraph
PORTVERSION= 1.2
CATEGORIES= mail
MASTER_SITES= http://people.ee.ethz.ch/~dws/software/mailgraph/pub/
MAINTAINER= gslin@ccca.nctu.edu.tw
COMMENT= A RRDtool frontend for Postfix statistics
RUN_DEPENDS= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/net/rrdtool \
${SITE_PERL}/File/Tail.pm:${PORTSDIR}/devel/p5-File-Tail
SITE_PERL= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
NO_BUILD= yes
STARTUP_SCRIPT= mailgraph.sh.sample
post-patch:
@${SED} -e "s,%%PREFIX%%,${PREFIX}," ${FILESDIR}/mailgraph.sh > ${WRKSRC}/${STARTUP_SCRIPT}
do-install:
${MKDIR} ${PREFIX}/www/cgi-bin
.for FILE in mailgraph.cgi mailgraph.pl
@${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${PREFIX}/www/cgi-bin/
.endfor
@${INSTALL_SCRIPT} ${WRKSRC}/${STARTUP_SCRIPT} ${PREFIX}/etc/rc.d/
@${SETENV} ${SCRIPTS_ENV} WWWUSER=${WWWUSER} ${SH} ${PKGINSTALL}
@${CHOWN} www:www ${PREFIX}/www/cgi-bin/
.include <bsd.port.mk>
|