NetBSD Problem Report #36663

From martin@duskware.de  Tue Jul 17 18:33:32 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 2ABC563B93E
	for <gnats-bugs@gnats.netbsd.org>; Tue, 17 Jul 2007 18:33:32 +0000 (UTC)
Message-Id: <20070717180255.2B8AE63B93E@narn.NetBSD.org>
Date: Tue, 17 Jul 2007 18:02:55 +0000 (UTC)
From: bartosz.kuzma@gmail.com
Reply-To: bartosz.kuzma@gmail.com
To: netbsd-bugs-owner@NetBSD.org
Subject: mail/mailgraph - mailgraph.cgi doesn't have a reasonable value for $rrd and $rrd_virus
X-Send-Pr-Version: www-1.0

>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:    kim
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 17 18:35:00 +0000 2007
>Last-Modified:  Thu Jul 19 19:24:33 +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'
 #

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->kim
Responsible-Changed-By: wiz@netbsd.org
Responsible-Changed-When: Thu, 19 Jul 2007 19:24:33 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.