0e8fde6c35
paragraph.
57 lines
1.4 KiB
Makefile
57 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.11 2006/06/18 01:02:45 rillig Exp $
|
|
#
|
|
|
|
DISTNAME= mailgraph-1.12
|
|
PKGREVISION= 1
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://people.ee.ethz.ch/~dws/software/mailgraph/pub/ \
|
|
http://people.ee.ethz.ch/~dws/software/mailgraph/pub/old/
|
|
|
|
MAINTAINER= kim@tac.nyc.ny.us
|
|
HOMEPAGE= http://people.ee.ethz.ch/~dws/software/mailgraph/
|
|
COMMENT= RRDtool frontend for mail statistics
|
|
|
|
DEPENDS+= rrdtool-1*:../../databases/rrdtool
|
|
DEPENDS+= p5-File-Tail-[0-9]*:../../misc/p5-File-Tail
|
|
|
|
USE_TOOLS+= perl:run
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
DBDIR?= ${VARBASE}/db/${PKGBASE}
|
|
|
|
MG_SCRIPTS= mailgraph.cgi mailgraph.pl
|
|
|
|
REPLACE_PERL+= ${MG_SCRIPTS}
|
|
|
|
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'
|
|
#
|
|
SUBST_MESSAGE.defs= Fixing defaults.
|
|
|
|
INSTALLATION_DIRS= sbin
|
|
|
|
do-build:
|
|
|
|
do-configure:
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/libexec/cgi-bin
|
|
${INSTALL_SCRIPT} \
|
|
${WRKSRC}/mailgraph.cgi ${PREFIX}/libexec/cgi-bin/mailgraph.cgi
|
|
${INSTALL_SCRIPT} \
|
|
${WRKSRC}/mailgraph.pl ${PREFIX}/sbin/mailgraph
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mailgraph
|
|
.for i in CHANGES COPYING README
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/mailgraph/${i}
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|