NetBSD Problem Report #47189
From www@NetBSD.org Tue Nov 13 13:19:40 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id AD07D63E4AB
for <gnats-bugs@gnats.NetBSD.org>; Tue, 13 Nov 2012 13:19:39 +0000 (UTC)
Message-Id: <20121113131939.007A263E4AB@www.NetBSD.org>
Date: Tue, 13 Nov 2012 13:19:38 +0000 (UTC)
From: nils.netbsd@anotherhomepage.org
Reply-To: nils.netbsd@anotherhomepage.org
To: gnats-bugs@NetBSD.org
Subject: Cacti configuration file is overwritten
X-Send-Pr-Version: www-1.0
>Number: 47189
>Category: pkg
>Synopsis: Cacti configuration file is overwritten
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Nov 13 13:20:01 +0000 2012
>Last-Modified: Tue Nov 13 19:55:01 +0000 2012
>Originator: Nils Ratusznik
>Release: NetBSD-5.1.2
>Organization:
>Environment:
NetBSD <name_of_the_machine> 5.1.2 NetBSD 5.1.2 (XEN3PAE_DOMU) #0: Thu Feb 2 17:18:36 UTC 2012 builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-2-RELEASE/i386/201202021012Z-obj/home/builds/ab/netbsd-5-1-2-RELEASE/src/sys/arch/i386/compile/XEN3PAE_DOMU i386
>Description:
when updating net/cacti, /usr/pkg/share/cacti/include/config.php is overwritten. This configuration file contains the credentials to connect to MySQL server, and the url path to cacti.
>How-To-Repeat:
Install and configure any older version of cacti in pkgsrc. Don't use default credentials provided by /usr/pkg/share/cacti/include/config.php . Then, upgrade to a newer version of cacti in pkgsrc (with pkgin, pkg_add or make). Try to browse cacti on your server : it will complain it cannot connect to the MySQL server.
>Fix:
>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/47189: Cacti configuration file is overwritten
Date: Tue, 13 Nov 2012 19:52:24 +0000
On Tue, Nov 13, 2012 at 01:20:01PM +0000, nils.netbsd@anotherhomepage.org wrote:
> when updating net/cacti, /usr/pkg/share/cacti/include/config.php is
> overwritten. This configuration file contains the credentials to
> connect to MySQL server, and the url path to cacti.
The config file should be in /usr/pkg/etc and handled using the config
file framework; that will make this problem go away.
Getting that to happen will probably take some patching.
--
David A. Holland
dholland@netbsd.org
(Contact us)
$NetBSD: query-full-pr,v 1.36 2007/11/24 03:27:39 kano 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.