Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Apr 2005 11:44:37 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        "Haulmark, Chris" <chris@sigd.net>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Cacti..
Message-ID:  <790a9fff0504260944704d2700@mail.gmail.com>
In-Reply-To: <6FC9F9894A9F8C49A722CF9F2132FC2203CE19E3@ms05.mailstreet2003.net>
References:  <6FC9F9894A9F8C49A722CF9F2132FC2203CE19E3@ms05.mailstreet2003.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/25/05, Haulmark, Chris <chris@sigd.net> wrote:
> Is this port supposed to overwrite the include/config.php.
>=20
> What I did was set up a virtual host in apache's httpd.conf to point to
> /usr/local/share/cacti and then when it was time to upgrade cacti...doing
> that caused mysql permission errors.  A quick fix was done by restoring t=
he
> mysql settings in include/config.php.
>=20
> I thought that ports files were to be checked via md5 sums to make sure i=
t
> was the original and then it would be overwritten unless it was modified.
>=20
When you delete a port, it checks the md5 sum of the file, and if it
doesn't match it might leave the file.

When you install the port, the port will overwrite the config file,
unless the port maintainer has identified the configuration files, and
made changes to the ports sources to install the file with an
extension (i.e. -dist, -sample, ...), and then makes a check to see if
the file without an extension (i.e. -dist) exists, and if it doesn't
then copy the file wiwth the extension to the original file name.

You could try to create a patch to address this problem (and send PR
it), or ask the maintainer to fix the port to not overwrite the
configuration files.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0504260944704d2700>