Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303843 - net-analyzer/munin-1.4.3 htmldir defaults to /usr/var instead of /var
Summary: net-analyzer/munin-1.4.3 htmldir defaults to /usr/var instead of /var
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-07 10:34 UTC by Juan Francisco Giordana
Modified: 2010-03-28 05:24 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juan Francisco Giordana 2010-02-07 10:34:54 UTC
The commented htmldir option in /etc/munin/munin.conf points to

/usr/var/www/localhost/htdocs/munin

Uncommenting this option puts munin data in this directory which doesn't seem to be appropriate.

sed -i \
-e 's#htmldir /usr/var/www/localhost/htdocs/munin#htmldir /var/www/localhost/htdocs/munin#' \
/etc/munin/.conf

Should fix it.

Reproducible: Always

Steps to Reproduce:
Comment 1 Juan Francisco Giordana 2010-02-07 10:37:42 UTC
Sorry, there's a typo in the previous command

sed -i \
-e 's#htmldir /usr/var/www/localhost/htdocs/munin#htmldir
/var/www/localhost/htdocs/munin#' \
/etc/munin/munin.conf
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-02-09 17:05:26 UTC
I saw this too but assumed that the end user would be sensible enough to change it to suit their needs.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-02-10 16:33:37 UTC
After sleeping on it, I don't agree with the change. Upstream provides that default (for whatever reason) and the comment above it says "default values are listed here." So, I feel like the end user should *know* what the defaults are and we should not change them.

In short, if the change is applied, Gentoo users will not immediately know why data is being written to /usr/var/www/localhost/htdocs/munin because they will think the default is /var/...
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2010-02-10 23:58:16 UTC
This should be fixed because every other distro I've got munin on has set this path up correctly. Previous versions (1.3.4) did the right thing as well.
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-02-11 01:52:15 UTC
Ah, I did some more research. If I can figure out the build system...just set HTMLDIR/CGIDIR
Comment 6 Juan Francisco Giordana 2010-02-23 22:53:34 UTC
This is what upstream said:

"The bug is probably in the gentoo package. Unlike what the ticket say the "upstream" default is /opt/munin/www/docs. I have commented on the gentoo bug."

I don't see the comment here so you can also check on the munin mailing list:

http://sourceforge.net/mailarchive/forum.php?thread_name=4B83CEF5.6070306%40redpill-linpro.com&forum_name=munin-users
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-03-28 05:24:30 UTC
fixed in 1.4.4, thanks.