2007-07-09 00:32:15 +02:00
|
|
|
# $NetBSD: Makefile,v 1.13 2007/07/08 22:32:15 xtraeme Exp $
|
2004-12-31 22:36:59 +01:00
|
|
|
#
|
|
|
|
|
2007-07-09 00:32:15 +02:00
|
|
|
DISTNAME= mailgraph-1.13
|
|
|
|
#PKGREVISION= 1
|
2004-12-31 22:36:59 +01:00
|
|
|
CATEGORIES= mail
|
2007-07-09 00:32:15 +02:00
|
|
|
MASTER_SITES= http://mailgraph.schweikert.ch/pub/
|
2004-12-31 22:36:59 +01:00
|
|
|
|
|
|
|
MAINTAINER= kim@tac.nyc.ny.us
|
2007-07-09 00:32:15 +02:00
|
|
|
HOMEPAGE= http://mailgraph.schweikert.ch/
|
2004-12-31 22:36:59 +01:00
|
|
|
COMMENT= RRDtool frontend for mail statistics
|
|
|
|
|
2007-05-21 11:59:56 +02:00
|
|
|
DEPENDS+= rrdtool>=1:../../databases/rrdtool
|
2004-12-31 22:36:59 +01:00
|
|
|
DEPENDS+= p5-File-Tail-[0-9]*:../../misc/p5-File-Tail
|
|
|
|
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= perl:run
|
2004-12-31 22:36:59 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
DBDIR?= ${VARBASE}/db/${PKGBASE}
|
|
|
|
|
|
|
|
MG_SCRIPTS= mailgraph.cgi mailgraph.pl
|
|
|
|
|
2006-02-19 01:39:06 +01:00
|
|
|
REPLACE_PERL+= ${MG_SCRIPTS}
|
2004-12-31 22:36:59 +01:00
|
|
|
|
|
|
|
RCD_SCRIPTS= mailgraph
|
|
|
|
|
|
|
|
SUBST_CLASSES+= defs
|
|
|
|
SUBST_STAGE.defs= pre-build
|
|
|
|
SUBST_FILES.defs= ${MG_SCRIPTS}
|
|
|
|
# Database
|
|
|
|
SUBST_SED.defs+= -e 's,/var/log\([^/]\),${DBDIR}\1,g'
|
|
|
|
SUBST_SED.defs+= -e 's,/var/log$$,${DBDIR},g'
|
|
|
|
# Logfile
|
|
|
|
SUBST_SED.defs+= -e 's,/var/log/syslog,${VARBASE}/log/maillog,g'
|
|
|
|
#
|
2006-02-19 01:39:06 +01:00
|
|
|
SUBST_MESSAGE.defs= Fixing defaults.
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= sbin
|
2004-12-31 22:36:59 +01:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
|
|
|
|
do-configure:
|
|
|
|
|
|
|
|
do-install:
|
2006-02-19 01:39:06 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/libexec/cgi-bin
|
2004-12-31 22:36:59 +01:00
|
|
|
${INSTALL_SCRIPT} \
|
2006-02-19 01:39:06 +01:00
|
|
|
${WRKSRC}/mailgraph.cgi ${PREFIX}/libexec/cgi-bin/mailgraph.cgi
|
2004-12-31 22:36:59 +01:00
|
|
|
${INSTALL_SCRIPT} \
|
|
|
|
${WRKSRC}/mailgraph.pl ${PREFIX}/sbin/mailgraph
|
2006-02-19 01:39:06 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mailgraph
|
2004-12-31 22:36:59 +01:00
|
|
|
.for i in CHANGES COPYING README
|
2006-02-19 01:39:06 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/mailgraph/${i}
|
2004-12-31 22:36:59 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|