2017-01-19 19:52:01 +01:00
|
|
|
# $NetBSD: Makefile,v 1.23 2017/01/19 18:52:16 agc Exp $
|
2004-12-31 22:36:59 +01:00
|
|
|
#
|
|
|
|
|
2013-11-15 20:29:10 +01:00
|
|
|
DISTNAME= mailgraph-1.14
|
2016-07-09 08:38:30 +02:00
|
|
|
PKGREVISION= 3
|
2004-12-31 22:36:59 +01:00
|
|
|
CATEGORIES= mail
|
2017-01-19 19:52:01 +01:00
|
|
|
MASTER_SITES= http://mailgraph.schweikert.ch/pub/
|
|
|
|
MASTER_SITES+= http://mailgraph.schweikert.ch/pub/old
|
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:
|
2008-03-04 18:57:17 +01:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/libexec/cgi-bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.cgi \
|
|
|
|
${DESTDIR}${PREFIX}/libexec/cgi-bin/mailgraph.cgi
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/mailgraph.pl \
|
|
|
|
${DESTDIR}${PREFIX}/sbin/mailgraph
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/mailgraph
|
2004-12-31 22:36:59 +01:00
|
|
|
.for i in CHANGES COPYING README
|
2008-03-04 18:57:17 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} \
|
|
|
|
${DESTDIR}${PREFIX}/share/doc/mailgraph/${i}
|
2004-12-31 22:36:59 +01:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|