Mediation needed for munin-node and munin-main

Kris Kennaway kris at obsecurity.org
Wed Dec 8 13:35:38 PST 2004


On Wed, Dec 08, 2004 at 10:44:48AM +0100, Lupe Christoph wrote:

> The Munin node uses a daemon process that has a few config files, and a
> plugin directory. All files in that directory that fulfill some criteria
> are used as plugins. Since there is a lot of plugins, not all of them
> are useable or relevant for a given system. In order to be able to make
> all of them available for the user and let them choose, Munin uses
> symlinks that point to the plugins. Some plugins have names like xxx_.
> Those parse the name they are called with (e.g. xxx_yyy) and use the
> last part as an argument. This could be the name of an interface.
> 
> So the symlinks are configuration. The port follows the example of the
> Debian package in automatically installing plugins if there was no
> pre-existing set. It also installs a VERSION file that allows it to
> install recently added plugins on an upgrade.
> 
> I cannot remove the symlinks.

Why not?  The usual way to handle removing "configuration items" (be
they files, or in this case symlinks) is to test whether the installed
configuration is identical to the default configuration, and only
remove them if so.

For example, at install-time you'd create the symlinks if they don't
already exist (i.e. no previous installation of the package), and at
deinstall-time you'd read the destination of the symlinks, test
whether they're still pointing to the default location, and remove
them if so.  Thus, if the user has changed the defaults they'll remain
untouched, but if they haven't changed them then the system will be
cleaned up.

It's an important requirement that doing 'make install deinstall'
(alternatively pkg_add; pkg_delete) leaves the system in the same
state it was before the 'install', and not leave behind random cruft
in ${PREFIX}.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20041208/8e8aa95e/attachment.bin


More information about the freebsd-ports mailing list