summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2006-11-13 10:52:33 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2006-11-13 10:52:33 +0000
commit2db9c9309041bcfa3c119b5138125846cbc4672e (patch)
treea95edb5b774ebb4bf4832607014478f9470be5f2 /net-analyzer
parentstable x86, for KDE 3.5.5, see bug #147570 (diff)
downloadhistorical-2db9c9309041bcfa3c119b5138125846cbc4672e.tar.gz
historical-2db9c9309041bcfa3c119b5138125846cbc4672e.tar.bz2
historical-2db9c9309041bcfa3c119b5138125846cbc4672e.zip
Bug #153878 - correct mandir location.
Package-Manager: portage-2.1.2_rc1-r5
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/munin/ChangeLog8
-rw-r--r--net-analyzer/munin/Manifest19
-rw-r--r--net-analyzer/munin/files/digest-munin-1.3.2-r33
-rw-r--r--net-analyzer/munin/files/munin-1.3.2-r3-Makefile.patch248
-rw-r--r--net-analyzer/munin/munin-1.3.2-r3.ebuild120
5 files changed, 393 insertions, 5 deletions
diff --git a/net-analyzer/munin/ChangeLog b/net-analyzer/munin/ChangeLog
index e86310c7770e..2c6fdcb9cb94 100644
--- a/net-analyzer/munin/ChangeLog
+++ b/net-analyzer/munin/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-analyzer/munin
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/ChangeLog,v 1.4 2006/10/19 10:29:07 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/ChangeLog,v 1.5 2006/11/13 10:52:33 robbat2 Exp $
+
+*munin-1.3.2-r3 (13 Nov 2006)
+
+ 13 Nov 2006; Robin H. Johnson <robbat2@gentoo.org>
+ +files/munin-1.3.2-r3-Makefile.patch, +munin-1.3.2-r3.ebuild:
+ Bug #153878 - correct mandir location.
*munin-1.3.2-r2 (19 Oct 2006)
diff --git a/net-analyzer/munin/Manifest b/net-analyzer/munin/Manifest
index 02c7e30d2f98..4f428a7ed1cc 100644
--- a/net-analyzer/munin/Manifest
+++ b/net-analyzer/munin/Manifest
@@ -14,6 +14,10 @@ AUX munin-1.3.2-plugins.conf 1587 RMD160 9f98bfdfb4a22c1962bd49b54d3c92cfcae9b8f
MD5 268b1b9946495755adb013be4c934099 files/munin-1.3.2-plugins.conf 1587
RMD160 9f98bfdfb4a22c1962bd49b54d3c92cfcae9b8f4 files/munin-1.3.2-plugins.conf 1587
SHA256 7df7caf134f00f0ebf0f5246895084a894f851a5a57f1c158b280adcc8182064 files/munin-1.3.2-plugins.conf 1587
+AUX munin-1.3.2-r3-Makefile.patch 10374 RMD160 32beb7f56fe7255d7f025f520e5551ef13b72950 SHA1 3c33d89b8a200c8d1b16f1d2b4c0dcddf4be4fa9 SHA256 19d1d38f91b0fb7ff36916506567c0331a45346bb47cfcb76f2869e65cd62864
+MD5 7f6e515ba8f2be17d4fedcce6e4a842f files/munin-1.3.2-r3-Makefile.patch 10374
+RMD160 32beb7f56fe7255d7f025f520e5551ef13b72950 files/munin-1.3.2-r3-Makefile.patch 10374
+SHA256 19d1d38f91b0fb7ff36916506567c0331a45346bb47cfcb76f2869e65cd62864 files/munin-1.3.2-r3-Makefile.patch 10374
AUX munin-1.3.2-rrdtool-comments.patch 4002 RMD160 2a0697f5b1f6e66f94b857248f346cc2e706b36f SHA1 d75bbbeb54cad301051709728ce281bb538d275c SHA256 e4c0a50189ddb54c603c6e83973c58ed7e78af4e6933c2dd2fe1d4699a0945e2
MD5 d838d13be7814a89be4f3df5cb8be61a files/munin-1.3.2-rrdtool-comments.patch 4002
RMD160 2a0697f5b1f6e66f94b857248f346cc2e706b36f files/munin-1.3.2-rrdtool-comments.patch 4002
@@ -31,14 +35,18 @@ EBUILD munin-1.3.2-r2.ebuild 3851 RMD160 5598a82d8f03582346e5a895e14bc15d54a35f7
MD5 18d292219a6617ee26bdf9dccb13247d munin-1.3.2-r2.ebuild 3851
RMD160 5598a82d8f03582346e5a895e14bc15d54a35f72 munin-1.3.2-r2.ebuild 3851
SHA256 3e452c03a007767cef941e99dcb3f67a04905f173781a0aa55aefa5b0cb67cc0 munin-1.3.2-r2.ebuild 3851
+EBUILD munin-1.3.2-r3.ebuild 3875 RMD160 da1dc4c2e12bdbfbc1b7909122da78a4062545f3 SHA1 9528749c0f9269bf5baabe6d1853fc66a3bb469f SHA256 801ca7aa8cdb912ec7fb20cd5aa23590bc9f7754d63763d679d23abedb719719
+MD5 23a7eaaf5fbb26f3569fc16baaf1bc15 munin-1.3.2-r3.ebuild 3875
+RMD160 da1dc4c2e12bdbfbc1b7909122da78a4062545f3 munin-1.3.2-r3.ebuild 3875
+SHA256 801ca7aa8cdb912ec7fb20cd5aa23590bc9f7754d63763d679d23abedb719719 munin-1.3.2-r3.ebuild 3875
EBUILD munin-1.3.2.ebuild 3485 RMD160 94f2957fcde45418cbf2d7f88b7cc27fadddce38 SHA1 197e46516649331e495b40bd8419034214b7960e SHA256 a4fd76456f2bda0cc8e60f1eb045a42e6edf557c0d963b6b672f599374868b1e
MD5 ae39f2774e7bf379307670cb0a4f6e67 munin-1.3.2.ebuild 3485
RMD160 94f2957fcde45418cbf2d7f88b7cc27fadddce38 munin-1.3.2.ebuild 3485
SHA256 a4fd76456f2bda0cc8e60f1eb045a42e6edf557c0d963b6b672f599374868b1e munin-1.3.2.ebuild 3485
-MISC ChangeLog 1228 RMD160 616071f4a25cbf308a1c938f00d74256ea25a14e SHA1 a314313bc8d1863d9cdb3405279ab24669d93489 SHA256 b796f4ed45f50eaa7f0cd4270422d32e73f4deb5781c44bd6a78910e8e67b7fc
-MD5 2f3d52c76980b0052ec43d99930e0e9f ChangeLog 1228
-RMD160 616071f4a25cbf308a1c938f00d74256ea25a14e ChangeLog 1228
-SHA256 b796f4ed45f50eaa7f0cd4270422d32e73f4deb5781c44bd6a78910e8e67b7fc ChangeLog 1228
+MISC ChangeLog 1418 RMD160 f4ead8c1aecaf25146fd823723074490c808e763 SHA1 dde0d15fde91aabe54226713aff4f292aa4e24da SHA256 bda3c75ebd64351534084667a53e7edb1d6579fd7ef69a4ca1e67fc8bf9cd07e
+MD5 4eb9061dd0962b0bf514fe29d4441296 ChangeLog 1418
+RMD160 f4ead8c1aecaf25146fd823723074490c808e763 ChangeLog 1418
+SHA256 bda3c75ebd64351534084667a53e7edb1d6579fd7ef69a4ca1e67fc8bf9cd07e ChangeLog 1418
MISC metadata.xml 914 RMD160 0076c2be4c5a72a26639eb531925b4585d905060 SHA1 3b92ce6a0b1aefa369262ca69b485c280dac068b SHA256 16e3a247509483b481b8c8a038bd13f872ad48b91aade8795158a9c304749ff7
MD5 9299a4cbbf52bdd70903df755a77f0cd metadata.xml 914
RMD160 0076c2be4c5a72a26639eb531925b4585d905060 metadata.xml 914
@@ -52,3 +60,6 @@ SHA256 c8f9315ca064bb4486acd4b20b0b0dc914ecae94dd4db7739bee529017d30701 files/di
MD5 9e54d7960ffe54d8c894151aae3b80f8 files/digest-munin-1.3.2-r2 235
RMD160 684b4825ee54ec7dd4825ebe63efb012bcde2325 files/digest-munin-1.3.2-r2 235
SHA256 c8f9315ca064bb4486acd4b20b0b0dc914ecae94dd4db7739bee529017d30701 files/digest-munin-1.3.2-r2 235
+MD5 9e54d7960ffe54d8c894151aae3b80f8 files/digest-munin-1.3.2-r3 235
+RMD160 684b4825ee54ec7dd4825ebe63efb012bcde2325 files/digest-munin-1.3.2-r3 235
+SHA256 c8f9315ca064bb4486acd4b20b0b0dc914ecae94dd4db7739bee529017d30701 files/digest-munin-1.3.2-r3 235
diff --git a/net-analyzer/munin/files/digest-munin-1.3.2-r3 b/net-analyzer/munin/files/digest-munin-1.3.2-r3
new file mode 100644
index 000000000000..3bc37b06a1a9
--- /dev/null
+++ b/net-analyzer/munin/files/digest-munin-1.3.2-r3
@@ -0,0 +1,3 @@
+MD5 9eef4a53626cee0e088391c5deb8bd51 munin_1.3.2.tar.gz 309319
+RMD160 7bcc16d00ad28731041015ef240144ed0c4fdeb4 munin_1.3.2.tar.gz 309319
+SHA256 964887d3af5b5b1fadbabb4c887095820613ea06c768251d6a9c37fa35efcc40 munin_1.3.2.tar.gz 309319
diff --git a/net-analyzer/munin/files/munin-1.3.2-r3-Makefile.patch b/net-analyzer/munin/files/munin-1.3.2-r3-Makefile.patch
new file mode 100644
index 000000000000..cfef6aa0c6ab
--- /dev/null
+++ b/net-analyzer/munin/files/munin-1.3.2-r3-Makefile.patch
@@ -0,0 +1,248 @@
+diff -Nuar --exclude '*~' munin-1.3.2.orig/Makefile munin-1.3.2/Makefile
+--- munin-1.3.2.orig/Makefile 2005-04-15 13:37:29.000000000 -0700
++++ munin-1.3.2/Makefile 2006-07-10 13:03:36.000000000 -0700
+@@ -17,64 +17,65 @@
+
+ install-main: build
+ $(CHECKUSER)
+- mkdir -p $(CONFDIR)/templates
+- mkdir -p $(LIBDIR)
+- mkdir -p $(BINDIR)
+- mkdir -p $(PERLLIB)
+-
+- mkdir -p $(LOGDIR)
+- mkdir -p $(STATEDIR)
+- mkdir -p $(HTMLDIR)
+- mkdir -p $(DBDIR)
+- mkdir -p $(CGIDIR)
++ mkdir -p $(DESTDIR)$(CONFDIR)/templates
++ mkdir -p $(DESTDIR)$(LIBDIR)
++ mkdir -p $(DESTDIR)$(BINDIR)
++ mkdir -p $(DESTDIR)$(PERLLIB)
++
++ mkdir -p $(DESTDIR)$(LOGDIR)
++ mkdir -p $(DESTDIR)$(STATEDIR)
++ mkdir -p $(DESTDIR)$(HTMLDIR)
++ mkdir -p $(DESTDIR)$(DBDIR)
++ mkdir -p $(DESTDIR)$(CGIDIR)
+
+- $(CHOWN) $(USER) $(LOGDIR) $(STATEDIR) $(RUNDIR) $(HTMLDIR) $(DBDIR)
++ $(CHOWN) $(USER) $(DESTDIR)$(LOGDIR) $(DESTDIR)$(STATEDIR) $(DESTDIR)$(RUNDIR) $(DESTDIR)$(HTMLDIR) $(DESTDIR)$(DBDIR)
+
+ for p in build/server/*.tmpl; do \
+- $(INSTALL) -m 0644 "$$p" $(CONFDIR)/templates/ ; \
++ $(INSTALL) -m 0644 "$$p" $(DESTDIR)$(CONFDIR)/templates/ ; \
+ done
+- $(INSTALL) -m 0644 server/logo.png $(CONFDIR)/templates/
+- $(INSTALL) -m 0644 server/style.css $(CONFDIR)/templates/
+- $(INSTALL) -m 0644 server/definitions.html $(CONFDIR)/templates/
++ $(INSTALL) -m 0644 server/logo.png $(DESTDIR)$(CONFDIR)/templates/
++ $(INSTALL) -m 0644 server/style.css $(DESTDIR)$(CONFDIR)/templates/
++ $(INSTALL) -m 0644 server/definitions.html $(DESTDIR)$(CONFDIR)/templates/
+
+- test -f "$(CONFDIR)/munin.conf" || $(INSTALL) -m 0644 build/server/munin.conf $(CONFDIR)/
++ test -f "$(DESTDIR)$(CONFDIR)/munin.conf" || $(INSTALL) -m 0644 build/server/munin.conf $(DESTDIR)$(CONFDIR)/
+
+- $(INSTALL) -m 0755 build/server/munin-cron $(BINDIR)/
++ $(INSTALL) -m 0755 build/server/munin-cron $(DESTDIR)$(BINDIR)/
+
+- $(INSTALL) -m 0755 build/server/munin-update $(LIBDIR)/
+- $(INSTALL) -m 0755 build/server/munin-graph $(LIBDIR)/
+- $(INSTALL) -m 0755 build/server/munin-html $(LIBDIR)/
+- $(INSTALL) -m 0755 build/server/munin-limits $(LIBDIR)/
+- $(INSTALL) -m 0755 build/server/munin-cgi-graph $(CGIDIR)/
++ $(INSTALL) -m 0755 build/server/munin-update $(DESTDIR)$(LIBDIR)/
++ $(INSTALL) -m 0755 build/server/munin-graph $(DESTDIR)$(LIBDIR)/
++ $(INSTALL) -m 0755 build/server/munin-html $(DESTDIR)$(LIBDIR)/
++ $(INSTALL) -m 0755 build/server/munin-limits $(DESTDIR)$(LIBDIR)/
++ $(INSTALL) -m 0755 build/server/munin-cgi-graph $(DESTDIR)$(CGIDIR)/
+
+- $(INSTALL) -m 0644 build/server/Munin.pm $(PERLLIB)/
++ $(INSTALL) -m 0644 build/server/Munin.pm $(DESTDIR)$(PERLLIB)/
+
+ install-node: build install-node-non-snmp install-node-snmp
+ echo Done.
+
+ install-node-snmp: build
+- $(INSTALL) -m 0755 build/node/munin-node-configure-snmp $(SBINDIR)/
++ mkdir -p $(DESTDIR)$(SBINDIR)
++ $(INSTALL) -m 0755 build/node/munin-node-configure-snmp $(DESTDIR)$(SBINDIR)/
+
+ install-node-non-snmp: build
+ $(CHECKGROUP)
+- mkdir -p $(CONFDIR)/plugins
+- mkdir -p $(CONFDIR)/plugin-conf.d
+- mkdir -p $(LIBDIR)/plugins
+- mkdir -p $(SBINDIR)
+- mkdir -p $(PERLLIB)/Munin/Plugin
+-
+- mkdir -p $(LOGDIR)
+- mkdir -p $(STATEDIR)
+- mkdir -p $(PLUGSTATE)
+-
+- $(CHGRP) $(GROUP) $(PLUGSTATE)
+- $(CHMOD) 775 $(PLUGSTATE)
+- $(CHMOD) 755 $(CONFDIR)/plugin-conf.d
+-
+- $(INSTALL) -m 0755 build/node/munin-node $(SBINDIR)/
+- $(INSTALL) -m 0755 build/node/munin-node-configure $(SBINDIR)/
+- test -f "$(CONFDIR)/munin-node.conf" || $(INSTALL) -m 0644 build/node/munin-node.conf $(CONFDIR)/
+- $(INSTALL) -m 0755 build/node/munin-run $(SBINDIR)/
++ mkdir -p $(DESTDIR)$(CONFDIR)/plugins
++ mkdir -p $(DESTDIR)$(CONFDIR)/plugin-conf.d
++ mkdir -p $(DESTDIR)$(LIBDIR)/plugins
++ mkdir -p $(DESTDIR)$(SBINDIR)
++ mkdir -p $(DESTDIR)$(PERLLIB)/Munin/Plugin
++
++ mkdir -p $(DESTDIR)$(LOGDIR)
++ mkdir -p $(DESTDIR)$(STATEDIR)
++ mkdir -p $(DESTDIR)$(PLUGSTATE)
++
++ $(CHGRP) $(GROUP) $(DESTDIR)$(PLUGSTATE)
++ $(CHMOD) 775 $(DESTDIR)$(PLUGSTATE)
++ $(CHMOD) 755 $(DESTDIR)$(CONFDIR)/plugin-conf.d
++
++ $(INSTALL) -m 0755 build/node/munin-node $(DESTDIR)$(SBINDIR)/
++ $(INSTALL) -m 0755 build/node/munin-node-configure $(DESTDIR)$(SBINDIR)/
++ test -f "$(CONFDIR)/munin-node.conf" || $(INSTALL) -m 0644 build/node/munin-node.conf $(DESTDIR)$(CONFDIR)/
++ $(INSTALL) -m 0755 build/node/munin-run $(DESTDIR)$(SBINDIR)/
+
+ install-node-plugins: build
+ for p in build/node/node.d.$(OSTYPE)/* build/node/node.d/*; do \
+@@ -82,41 +83,41 @@
+ family=`sed -n 's/^#%# family=\(.*\)$$/\1/p' $$p`; \
+ test "$$family" || family=contrib; \
+ if echo $(INSTALL_PLUGINS) | grep $$family >/dev/null; then \
+- test -f "$(LIBDIR)/plugins/`basename $$p`" \
+- || $(INSTALL) -m 0755 $$p $(LIBDIR)/plugins/; \
++ test -f "$(DESTDIR)$(LIBDIR)/plugins/`basename $$p`" \
++ || $(INSTALL) -m 0755 $$p $(DESTDIR)$(LIBDIR)/plugins/; \
+ fi; \
+ fi \
+ done
+- $(INSTALL) -m 0644 build/node/plugins.history $(LIBDIR)/plugins/
++ $(INSTALL) -m 0644 build/node/plugins.history $(DESTDIR)$(LIBDIR)/plugins/
+
+ #TODO:
+ #configure plugins.
+
+ install-man: build-man
+- mkdir -p $(MANDIR)/man1 $(MANDIR)/man5 $(MANDIR)/man8
+- $(INSTALL) -m 0644 build/doc/munin-node.conf.5 $(MANDIR)/man5/
+- $(INSTALL) -m 0644 build/doc/munin.conf.5 $(MANDIR)/man5/
+- $(INSTALL) -m 0644 build/doc/munin-node.8 $(MANDIR)/man8/
+- $(INSTALL) -m 0644 build/doc/munin-node-configure.8 $(MANDIR)/man8/
+- $(INSTALL) -m 0644 build/doc/munin-node-configure-snmp.8 $(MANDIR)/man8/
+- $(INSTALL) -m 0644 build/doc/munin-run.8 $(MANDIR)/man8/
+- $(INSTALL) -m 0644 build/doc/munin-graph.8 $(MANDIR)/man8/
+- $(INSTALL) -m 0644 build/doc/munin-update.8 $(MANDIR)/man8/
+- $(INSTALL) -m 0644 build/doc/munin-limits.8 $(MANDIR)/man8/
+- $(INSTALL) -m 0644 build/doc/munin-html.8 $(MANDIR)/man8/
+- $(INSTALL) -m 0644 build/doc/munin-cron.8 $(MANDIR)/man8/
++ mkdir -p $(DESTDIR)$(MANDIR)/man1 $(DESTDIR)$(MANDIR)/man5 $(DESTDIR)$(MANDIR)/man8
++ $(INSTALL) -m 0644 build/doc/munin-node.conf.5 $(DESTDIR)$(MANDIR)/man5/
++ $(INSTALL) -m 0644 build/doc/munin.conf.5 $(DESTDIR)$(MANDIR)/man5/
++ $(INSTALL) -m 0644 build/doc/munin-node.8 $(DESTDIR)$(MANDIR)/man8/
++ $(INSTALL) -m 0644 build/doc/munin-node-configure.8 $(DESTDIR)$(MANDIR)/man8/
++ $(INSTALL) -m 0644 build/doc/munin-node-configure-snmp.8 $(DESTDIR)$(MANDIR)/man8/
++ $(INSTALL) -m 0644 build/doc/munin-run.8 $(DESTDIR)$(MANDIR)/man8/
++ $(INSTALL) -m 0644 build/doc/munin-graph.8 $(DESTDIR)$(MANDIR)/man8/
++ $(INSTALL) -m 0644 build/doc/munin-update.8 $(DESTDIR)$(MANDIR)/man8/
++ $(INSTALL) -m 0644 build/doc/munin-limits.8 $(DESTDIR)$(MANDIR)/man8/
++ $(INSTALL) -m 0644 build/doc/munin-html.8 $(DESTDIR)$(MANDIR)/man8/
++ $(INSTALL) -m 0644 build/doc/munin-cron.8 $(DESTDIR)$(MANDIR)/man8/
+
+ install-doc: build-doc
+- mkdir -p $(DOCDIR)
+- $(INSTALL) -m 0644 build/doc/munin-doc.html $(DOCDIR)/
+- $(INSTALL) -m 0644 build/doc/munin-doc.pdf $(DOCDIR)/
+- $(INSTALL) -m 0644 build/doc/munin-doc.txt $(DOCDIR)/
+- $(INSTALL) -m 0644 build/doc/munin-faq.html $(DOCDIR)/
+- $(INSTALL) -m 0644 build/doc/munin-faq.pdf $(DOCDIR)/
+- $(INSTALL) -m 0644 build/doc/munin-faq.txt $(DOCDIR)/
+- $(INSTALL) -m 0644 README.* $(DOCDIR)/
+- $(INSTALL) -m 0644 COPYING $(DOCDIR)/
+- $(INSTALL) -m 0644 node/node.d/README $(DOCDIR)/README.plugins
++ mkdir -p $(DESTDIR)$(DOCDIR)
++ $(INSTALL) -m 0644 build/doc/munin-doc.html $(DESTDIR)$(DOCDIR)/
++ $(INSTALL) -m 0644 build/doc/munin-doc.pdf $(DESTDIR)$(DOCDIR)/
++ $(INSTALL) -m 0644 build/doc/munin-doc.txt $(DESTDIR)$(DOCDIR)/
++ $(INSTALL) -m 0644 build/doc/munin-faq.html $(DESTDIR)$(DOCDIR)/
++ $(INSTALL) -m 0644 build/doc/munin-faq.pdf $(DESTDIR)$(DOCDIR)/
++ $(INSTALL) -m 0644 build/doc/munin-faq.txt $(DESTDIR)$(DOCDIR)/
++ $(INSTALL) -m 0644 README.* $(DESTDIR)$(DOCDIR)/
++ $(INSTALL) -m 0644 COPYING $(DESTDIR)$(DOCDIR)/
++ $(INSTALL) -m 0644 node/node.d/README $(DESTDIR)$(DOCDIR)/README.plugins
+
+ build: build-stamp
+
+diff -Nuar --exclude '*~' munin-1.3.2.orig/Makefile.config munin-1.3.2/Makefile.config
+--- munin-1.3.2.orig/Makefile.config 2005-04-15 13:29:18.000000000 -0700
++++ munin-1.3.2/Makefile.config 2006-07-10 13:04:07.000000000 -0700
+@@ -7,10 +7,10 @@
+ #
+ # the base of the Munin installation.
+ #
+-PREFIX = $(DESTDIR)/opt/munin
++PREFIX = /usr
+
+ # Where Munin keeps its configurations (server.conf, client.conf, ++)
+-CONFDIR = $(DESTDIR)/etc/opt/munin
++CONFDIR = /etc/munin
+
+ # Server only - where to put munin-cron
+ BINDIR = $(PREFIX)/bin
+@@ -19,31 +19,31 @@
+ SBINDIR = $(PREFIX)/sbin
+
+ # Where to put text and html documentation
+-DOCDIR = $(PREFIX)/doc
++DOCDIR = $(PREFIX)/share/doc/munin-$(VERSION)
+
+ # Where to put man pages
+-MANDIR = $(PREFIX)/man
++MANDIR = $(PREFIX)/share/man
+
+ # Where to put internal binaries and plugin repository
+-LIBDIR = $(PREFIX)/lib
++LIBDIR = $(PREFIX)/libexec/munin
+
+ # Server only - Output directory
+-HTMLDIR = $(PREFIX)/var/www
+-CGIDIR = $(HTMLDIR)/cgi
++HTMLDIR = /var/www/localhost/htdocs/munin
++CGIDIR = /var/www/localhost/cgi-bin
+
+ # Client only - Where to put RRD files and other intenal data
+-DBDIR = $(DESTDIR)/var/opt/munin
++DBDIR = /var/lib/munin
+
+ # Client only - Where plugins should put their states. Must be writable by
+ # group "munin", and should be preserved between reboots
+ PLUGSTATE = $(DBDIR)/plugin-state
+
+ # Where Munin should place its logs.
+-LOGDIR = $(DESTDIR)/var/log/munin
++LOGDIR = /var/log/munin
+
+ # Location of PID files and other statefiles. On the server, must be
+ # writable by the user "munin".
+-STATEDIR = $(DESTDIR)/var/run/munin
++STATEDIR = /var/run/munin
+
+ # The perl interpreter to use
+ PERL = $(shell which perl)
+@@ -52,10 +52,11 @@
+ PYTHON = /usr/bin/env python
+
+ # Server only - Where to install the perl libraries
+-PERLLIB = $(DESTDIR)$(shell $(PERL) -V:sitelib | cut -d= -f2 | sed "s/[\';]//g")
++PERLLIB = $(shell $(PERL) -V:sitelib | cut -d= -f2 | sed "s/[\';]//g")
+
+ # Client only - Install plugins for this architecture
+-OSTYPE = $(shell uname | tr '[A-Z]' '[a-z]')
++# LANG=C is because some locales are a bit different in their alphabet (eg ee_EE).
++OSTYPE = $(shell uname | LANG=C tr '[A-Z]' '[a-z]')
+
+ # How to figure out the hostname. (Only used in default configuration
+ # files)
diff --git a/net-analyzer/munin/munin-1.3.2-r3.ebuild b/net-analyzer/munin/munin-1.3.2-r3.ebuild
new file mode 100644
index 000000000000..42ce8a971b5c
--- /dev/null
+++ b/net-analyzer/munin/munin-1.3.2-r3.ebuild
@@ -0,0 +1,120 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/munin-1.3.2-r3.ebuild,v 1.1 2006/11/13 10:52:33 robbat2 Exp $
+
+inherit eutils
+
+DESCRIPTION="Munin Server Monitoring Tool"
+HOMEPAGE="http://munin.sourceforge.net"
+SRC_URI="mirror://sourceforge/munin/${PN}_${PV}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE="doc minimal munin-irc munin-dhcp munin-surfboard munin-apache munin-squid ssl"
+
+# Upstream's listing of required modules is NOT correct!
+DEPEND_COM="dev-lang/perl
+ dev-perl/net-server
+ sys-process/procps
+ ssl? ( dev-perl/Net-SSLeay )
+ dev-perl/Net-SNMP
+ dev-perl/DateManip
+ virtual/perl-Time-HiRes
+ virtual/perl-Digest-MD5
+ virtual/perl-Getopt-Long
+ virtual/perl-Storable
+ virtual/perl-Text-Balanced
+ !minimal? ( dev-perl/HTML-Template
+ net-analyzer/rrdtool )
+ munin-irc? ( dev-perl/Net-IRC )
+ munin-dhcp? ( dev-perl/Net-Netmask dev-perl/libwww-perl )
+ munin-surfboard? ( dev-perl/libwww-perl )
+ munin-apache? ( dev-perl/libwww-perl )
+ munin-squid? ( virtual/perl-MIME-Base64 )"
+ # Sybase isn't supported in Gentoo
+ #munin-sybase? ( dev-perl/DBD-Sybase )
+
+DEPEND="${DEPEND_COM}
+ doc? ( app-text/htmldoc
+ app-text/html2text )"
+RDEPEND="${DEPEND_COM}
+ virtual/cron"
+
+pkg_setup() {
+ enewgroup munin
+ enewuser munin 177 -1 /var/lib/munin munin
+}
+
+src_unpack() {
+ if use !minimal; then
+ if ! built_with_use net-analyzer/rrdtool perl ; then
+ die 'Sorry, munin needs net-analyzer/rrdtool built with USE=perl.'
+ fi
+ fi
+ unpack ${A}
+ # upstream needs a lot of DESTDIR loving
+ # and Gentoo location support
+ EPATCH_OPTS="-p1 -d ${S}" epatch ${FILESDIR}/${PN}-1.3.2-r3-Makefile.patch
+ # Fix noise in the plugins
+ EPATCH_OPTS="-p1 -d ${S}" epatch ${FILESDIR}/${PN}-1.3.2-plugin-cleanup.patch
+ # Make it work with new versions of Rrdtool where : in COMMENT blocks must
+ # be escaped!
+ EPATCH_OPTS="-p1 -d ${S}" epatch ${FILESDIR}/${PN}-1.3.2-rrdtool-comments.patch
+}
+
+src_compile() {
+ emake build build-man || die "build/build-man failed"
+ if use doc; then
+ emake build-doc || die "build-doc failed"
+ fi
+}
+
+src_install() {
+ local dirs
+ dirs="/var/log/munin /var/lib/munin"
+ dirs="${dirs} /var/lib/munin/plugin-state"
+ dirs="${dirs} /var/run/munin/plugin-state"
+ keepdir ${dirs}
+
+ emake DESTDIR="${D}" install-main install-man install-node install-node-plugins || die "install failed"
+ fowners munin:munin ${dirs}
+
+ if use doc; then
+ emake DESTDIR="${D}" install-doc install-man || die "install docs failed"
+ fi
+
+ insinto /etc/munin/plugin-conf.d/
+ newins ${FILESDIR}/${P}-plugins.conf munin-node
+
+ # ensure TLS is disabled is built without SSL
+ use ssl || echo "tls disabled" >>${D}/etc/munin/munin-node.conf
+
+ # make sure we've got everything in the correct directory
+ insinto /var/lib/munin
+ newins ${FILESDIR}/${P}-crontab crontab
+ newinitd ${FILESDIR}/munin-init.d munin-node
+ dodoc ChangeLog INSTALL README-apache-cgi.in README.api logo.eps
+ munin-doc-base.html munin-faq-base.html TODO.plugins
+ newdoc server/TODO TODO.server
+ newdoc node/TODO TODO.node
+}
+
+pkg_config() {
+ crontab -l -u munin 2>/dev/null | grep --silent '.*'
+ if [ $? -eq 0 ]; then
+ die "Crontab already install for user munin. Not overwriting."
+ fi
+ einfo "Press enter to install the default crontab for the munin master"
+ einfo "installation from /var/lib/munin/crontab"
+ einfo "If you have a large site, you may wish to customize it."
+ read
+ crontab -u munin /var/lib/munin/crontab
+}
+
+pkg_postinst() {
+ einfo "Please follow the munin documentation to set up the plugins you"
+ einfo "need, afterwards start munin-node via /etc/init.d/munin-node."
+ einfo "To have munin's cronjob automatically configured for you if this is"
+ einfo "your munin master installation, please:"
+ einfo "emerge --config net-analyzer/munin"
+}