Subject: pkg/36663: mail/mailgraph - mailgraph.cgi doesn't have a reasonable value for $rrd and $rrd_virus
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <bartosz.kuzma@gmail.com>
List: pkgsrc-bugs
Date: 07/17/2007 18:35:01
>Number: 36663
>Category: pkg
>Synopsis: mail/mailgraph - mailgraph.cgi doesn't have a reasonable value for $rrd and $rrd_virus
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Tue Jul 17 18:35:00 +0000 2007
>Originator: Bartosz Kuzma
>Release:
>Organization:
>Environment:
>Description:
mailgraph.cgi script from mail/mailgraph should have a default value for $rrd and $rrd_virus that point to ${DBDIR}/mailgraph.rrd and ${DBDIR}/mailgraph_virus.rrd. These variables from ${PREFIX}/sbin/mailgraph file is a relative path and should not be change.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/mailgraph/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile 8 Jul 2007 22:32:15 -0000 1.13
+++ Makefile 17 Jul 2007 17:45:48 -0000
@@ -2,7 +2,7 @@
#
DISTNAME= mailgraph-1.13
-#PKGREVISION= 1
+PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://mailgraph.schweikert.ch/pub/
@@ -31,6 +31,8 @@
# Database
SUBST_SED.defs+= -e 's,/var/log\([^/]\),${DBDIR}\1,g'
SUBST_SED.defs+= -e 's,/var/log$$,${DBDIR},g'
+SUBST_SED.defs+= -e "s,rrd = ',rrd = '${DBDIR}/,g"
+SUBST_SED.defs+= -e "s,rrd_virus = ',rrd_virus = '${DBDIR}/,g"
# Logfile
SUBST_SED.defs+= -e 's,/var/log/syslog,${VARBASE}/log/maillog,g'
#