summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2006-07-11 09:18:47 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2006-07-11 09:18:47 +0000
commita211441861283ece0c97a946e7fc3f2cb545ac0f (patch)
tree381f3d87950afe7f3e884af9dbf0f843bbcc21c1 /net-analyzer/munin
parentStable on x86 for modular X. (diff)
downloadgentoo-2-a211441861283ece0c97a946e7fc3f2cb545ac0f.tar.gz
gentoo-2-a211441861283ece0c97a946e7fc3f2cb545ac0f.tar.bz2
gentoo-2-a211441861283ece0c97a946e7fc3f2cb545ac0f.zip
Initial commit. Bug #76018. Final ebuild by Robin H. Johnson <robbat2@gentoo.org>, with signicent contributions by Allen Parker <infowolfe@gmail.com>.
(Portage version: 2.1.1_pre1-r5)
Diffstat (limited to 'net-analyzer/munin')
-rw-r--r--net-analyzer/munin/ChangeLog15
-rw-r--r--net-analyzer/munin/Manifest40
-rw-r--r--net-analyzer/munin/files/digest-munin-1.3.23
-rw-r--r--net-analyzer/munin/files/munin-1.3.2-Makefile.patch247
-rw-r--r--net-analyzer/munin/files/munin-1.3.2-crontab16
-rw-r--r--net-analyzer/munin/files/munin-1.3.2-plugin-cleanup.patch26
-rw-r--r--net-analyzer/munin/files/munin-1.3.2-plugins.conf64
-rw-r--r--net-analyzer/munin/files/munin-1.3.2-rrdtool-comments.patch78
-rw-r--r--net-analyzer/munin/files/munin-init.d26
-rw-r--r--net-analyzer/munin/metadata.xml19
-rw-r--r--net-analyzer/munin/munin-1.3.2.ebuild112
11 files changed, 646 insertions, 0 deletions
diff --git a/net-analyzer/munin/ChangeLog b/net-analyzer/munin/ChangeLog
new file mode 100644
index 000000000000..7b6f71d6d199
--- /dev/null
+++ b/net-analyzer/munin/ChangeLog
@@ -0,0 +1,15 @@
+# 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.1 2006/07/11 09:18:47 robbat2 Exp $
+
+*munin-1.3.2 (11 Jul 2006)
+
+ 11 Jul 2006; Robin H. Johnson <robbat2@gentoo.org>
+ +files/munin-1.3.2-Makefile.patch, +files/munin-1.3.2-crontab,
+ +files/munin-1.3.2-plugin-cleanup.patch, +files/munin-1.3.2-plugins.conf,
+ +files/munin-1.3.2-rrdtool-comments.patch, +files/munin-init.d,
+ +metadata.xml, +munin-1.3.2.ebuild:
+ Initial commit. Bug #76018. Final ebuild by Robin H. Johnson
+ <robbat2@gentoo.org>, with signicent contributions by Allen Parker
+ <infowolfe@gmail.com>.
+
diff --git a/net-analyzer/munin/Manifest b/net-analyzer/munin/Manifest
new file mode 100644
index 000000000000..d735b12ac8d7
--- /dev/null
+++ b/net-analyzer/munin/Manifest
@@ -0,0 +1,40 @@
+AUX munin-1.3.2-Makefile.patch 10340 RMD160 b6be2b774137b17c8218b3dfe86b5dcfe22bac92 SHA1 b8ef6cf0c36a6dbd34359d3645d53b9396cc821b SHA256 698a005d37380194b5d8bed7e554387ec82c58cea6fb0a53bfb5795da778b98a
+MD5 139f371f6734932eda365fb52b5e4454 files/munin-1.3.2-Makefile.patch 10340
+RMD160 b6be2b774137b17c8218b3dfe86b5dcfe22bac92 files/munin-1.3.2-Makefile.patch 10340
+SHA256 698a005d37380194b5d8bed7e554387ec82c58cea6fb0a53bfb5795da778b98a files/munin-1.3.2-Makefile.patch 10340
+AUX munin-1.3.2-crontab 797 RMD160 bfbc246928e4397d789a64e3adb43b7423a73cca SHA1 1d835ed5d000de54670a3181d7204f7de2a6e548 SHA256 e901fd7ee5848d0ef1a3e8310261545059d583850fad5a1ba610fbec303120b7
+MD5 7380ead1388e794ebf8c069e796b2864 files/munin-1.3.2-crontab 797
+RMD160 bfbc246928e4397d789a64e3adb43b7423a73cca files/munin-1.3.2-crontab 797
+SHA256 e901fd7ee5848d0ef1a3e8310261545059d583850fad5a1ba610fbec303120b7 files/munin-1.3.2-crontab 797
+AUX munin-1.3.2-plugin-cleanup.patch 1014 RMD160 55e3af25844ee5ee162e7f0dea850a7b06c8d623 SHA1 3bddfe2ff6e85327b55d5d6548530ca16dd9a31f SHA256 7c44850aa9bd34d6a165acbe094d940a4f89bce436eb28e99688641ace52df8c
+MD5 d7a43693355a04b46037764e9196ea58 files/munin-1.3.2-plugin-cleanup.patch 1014
+RMD160 55e3af25844ee5ee162e7f0dea850a7b06c8d623 files/munin-1.3.2-plugin-cleanup.patch 1014
+SHA256 7c44850aa9bd34d6a165acbe094d940a4f89bce436eb28e99688641ace52df8c files/munin-1.3.2-plugin-cleanup.patch 1014
+AUX munin-1.3.2-plugins.conf 1475 RMD160 9ce4a2437934e508f69ed320d68e6e3d70d940f5 SHA1 d573ec0a54374cd8d1114b1c6520641b1c5e90bc SHA256 98c5e4723b564d997e97d437b8beddaa17706700c310ec5d34dc9bca66e16894
+MD5 7027db0e2f443c9e00d7380714d785f6 files/munin-1.3.2-plugins.conf 1475
+RMD160 9ce4a2437934e508f69ed320d68e6e3d70d940f5 files/munin-1.3.2-plugins.conf 1475
+SHA256 98c5e4723b564d997e97d437b8beddaa17706700c310ec5d34dc9bca66e16894 files/munin-1.3.2-plugins.conf 1475
+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
+SHA256 e4c0a50189ddb54c603c6e83973c58ed7e78af4e6933c2dd2fe1d4699a0945e2 files/munin-1.3.2-rrdtool-comments.patch 4002
+AUX munin-init.d 481 RMD160 881495121c3e9c5df8ca52b7e499df59263ed98e SHA1 24b94b3c36125123273e2f46e1a8d28db7a6fe44 SHA256 80ad792d54b42be6400325e9a6a506ffb9aca2822ccfb6389253ecda54f57dd6
+MD5 94cfc3e6cd7ef41b5fc6e345092ec826 files/munin-init.d 481
+RMD160 881495121c3e9c5df8ca52b7e499df59263ed98e files/munin-init.d 481
+SHA256 80ad792d54b42be6400325e9a6a506ffb9aca2822ccfb6389253ecda54f57dd6 files/munin-init.d 481
+DIST munin_1.3.2.tar.gz 309319 RMD160 7bcc16d00ad28731041015ef240144ed0c4fdeb4 SHA1 575c1dc3373e2e001accd1920fd815d9b875c95a SHA256 964887d3af5b5b1fadbabb4c887095820613ea06c768251d6a9c37fa35efcc40
+EBUILD munin-1.3.2.ebuild 3387 RMD160 0e06c79ae3fe8b68601eaf4d30187f4fe479945b SHA1 c2720b8f2ab0dc2bf5d8157d862c88552aec27d1 SHA256 ec02c70623a42b7bbc9c1830d36e1fb04c46cb5b9d02a4c872164e6d3bff4eee
+MD5 a9118f202a150d6d620b2b46c73bd764 munin-1.3.2.ebuild 3387
+RMD160 0e06c79ae3fe8b68601eaf4d30187f4fe479945b munin-1.3.2.ebuild 3387
+SHA256 ec02c70623a42b7bbc9c1830d36e1fb04c46cb5b9d02a4c872164e6d3bff4eee munin-1.3.2.ebuild 3387
+MISC ChangeLog 603 RMD160 d3baf474b9bd928e00b6e28eaf187d6cf197d1c1 SHA1 f5c78d2c038f7d2c8809492fd1e6fb75222c5d9b SHA256 ef669b219a07235ffa11f6b3b70958c5c020dc4be03fa82280b042aa3c2bbd1c
+MD5 e16415fe1fe505da62746f53f72b35ce ChangeLog 603
+RMD160 d3baf474b9bd928e00b6e28eaf187d6cf197d1c1 ChangeLog 603
+SHA256 ef669b219a07235ffa11f6b3b70958c5c020dc4be03fa82280b042aa3c2bbd1c ChangeLog 603
+MISC metadata.xml 914 RMD160 0076c2be4c5a72a26639eb531925b4585d905060 SHA1 3b92ce6a0b1aefa369262ca69b485c280dac068b SHA256 16e3a247509483b481b8c8a038bd13f872ad48b91aade8795158a9c304749ff7
+MD5 9299a4cbbf52bdd70903df755a77f0cd metadata.xml 914
+RMD160 0076c2be4c5a72a26639eb531925b4585d905060 metadata.xml 914
+SHA256 16e3a247509483b481b8c8a038bd13f872ad48b91aade8795158a9c304749ff7 metadata.xml 914
+MD5 9e54d7960ffe54d8c894151aae3b80f8 files/digest-munin-1.3.2 235
+RMD160 684b4825ee54ec7dd4825ebe63efb012bcde2325 files/digest-munin-1.3.2 235
+SHA256 c8f9315ca064bb4486acd4b20b0b0dc914ecae94dd4db7739bee529017d30701 files/digest-munin-1.3.2 235
diff --git a/net-analyzer/munin/files/digest-munin-1.3.2 b/net-analyzer/munin/files/digest-munin-1.3.2
new file mode 100644
index 000000000000..3bc37b06a1a9
--- /dev/null
+++ b/net-analyzer/munin/files/digest-munin-1.3.2
@@ -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-Makefile.patch b/net-analyzer/munin/files/munin-1.3.2-Makefile.patch
new file mode 100644
index 000000000000..2eec3a4f2e7b
--- /dev/null
+++ b/net-analyzer/munin/files/munin-1.3.2-Makefile.patch
@@ -0,0 +1,247 @@
+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
+
+ # 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/files/munin-1.3.2-crontab b/net-analyzer/munin/files/munin-1.3.2-crontab
new file mode 100644
index 000000000000..804971a31a50
--- /dev/null
+++ b/net-analyzer/munin/files/munin-1.3.2-crontab
@@ -0,0 +1,16 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/munin-1.3.2-crontab,v 1.1 2006/07/11 09:18:47 robbat2 Exp $
+#
+# This runs the munin task every 5 minutes.
+*/5 * * * * [ -x /usr/bin/munin-cron ] && /usr/bin/munin-cron
+
+# Alternatively, this route works differently
+# Update once a minute (for busy sites)
+#*/1 * * * * [ -x /usr/libexec/munin/munin-update ] && /usr/libexec/munin/munin-update
+## Check for limit excess every 2 minutes
+#*/2 * * * * [ -x /usr/libexec/munin/munin-limits ] && /usr/libexec/munin/munin-limits
+## Update graphs every 5 minutes
+#*/5 * * * * [ -x /usr/libexec/munin/munin-graph ] && nice /usr/libexec/munin/munin-graph --cron
+## Update HTML pages every 15 minutes
+#*/15 * * * * [ -x /usr/libexec/munin/munin-html ] && nice /usr/libexec/munin/munin-html
diff --git a/net-analyzer/munin/files/munin-1.3.2-plugin-cleanup.patch b/net-analyzer/munin/files/munin-1.3.2-plugin-cleanup.patch
new file mode 100644
index 000000000000..c22547adec94
--- /dev/null
+++ b/net-analyzer/munin/files/munin-1.3.2-plugin-cleanup.patch
@@ -0,0 +1,26 @@
+diff -Nuar --exclude '*~' munin-1.3.2.orig/node/node.d.linux/iostat_ios.in munin-1.3.2/node/node.d.linux/iostat_ios.in
+--- munin-1.3.2.orig/node/node.d.linux/iostat_ios.in 2005-04-15 13:29:18.000000000 -0700
++++ munin-1.3.2/node/node.d.linux/iostat_ios.in 2006-07-11 02:05:50.618754305 -0700
+@@ -53,12 +53,16 @@
+
+ sub filter {
+ my ($major, $minor, $tmpnam);
+- return 0 if ($major == 1); # RAM devices
+- return 0 if ($major == 9); # MD devices
+- return 0 if ($major == 58); # LVM devices
+- return 0 if ($major == 254); # LVM2 devices
+- return 0 if ($tmpnam =~ /part\d+$/);
+- return 0 if ($tmpnam =~ /^\s*(?:sd|hd)[a-z]\d+\s*$/);
++ if(defined($major)) {
++ return 0 if ($major == 1); # RAM devices
++ return 0 if ($major == 9); # MD devices
++ return 0 if ($major == 58); # LVM devices
++ return 0 if ($major == 254); # LVM2 devices
++ }
++ if(defined($tmpnam)) {
++ return 0 if ($tmpnam =~ /part\d+$/);
++ return 0 if ($tmpnam =~ /^\s*(?:sd|hd)[a-z]\d+\s*$/);
++ }
+
+ return 1;
+ }
diff --git a/net-analyzer/munin/files/munin-1.3.2-plugins.conf b/net-analyzer/munin/files/munin-1.3.2-plugins.conf
new file mode 100644
index 000000000000..977f8b49c3d5
--- /dev/null
+++ b/net-analyzer/munin/files/munin-1.3.2-plugins.conf
@@ -0,0 +1,64 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/munin-1.3.2-plugins.conf,v 1.1 2006/07/11 09:18:47 robbat2 Exp $
+#
+# This file contains configuration options for the plugins. Three
+# options are understood by munin-node itself:
+#
+# user <user> # Set the user to run the plugin as
+# group <group> # Set the group to run the plugin as
+# command <command> # Run <command> instead of the plugin. %c
+# expands to what would normally be run.
+# env.<variable> # Sets <variable> in the plugin's environment, see the
+# individual plugins to find out which variables they
+# care about.
+#
+#
+
+[smart_*]
+user root
+group disk
+
+# Example for a 3ware 8000-series card, with 2 disks
+# use /dev/twe0 as the actual device
+# and replicate this entry for each drive, increasing the number in -d
+#[smart_3ware-0_twe0]
+#user root
+#group root
+#env.smartargs -H -i -c -l error -l selftest -l selective -a -d 3ware,0
+#[smart_3ware-1_twe0]
+#user root
+#group root
+#env.smartargs -H -i -c -l error -l selftest -l selective -a -d 3ware,1
+
+[bind9*]
+user root
+
+[iostat*]
+user munin
+group munin
+
+[vlan*]
+user root
+
+[postfix*]
+user root
+env.logfile maillog
+
+[sendmail*]
+env.mspqueue /var/spool/clientmqueue
+
+[mysql*]
+#env.mysqlopts -u someuser
+
+[exim*]
+group mail
+
+[cps*]
+user root
+
+# More 3ware examples
+#[hddtemp_smartctl]
+#env.drives twe0_0 twe0_1 hda
+#env.type_twe0_0 3ware,0
+#env.type_twe0_1 3ware,1
diff --git a/net-analyzer/munin/files/munin-1.3.2-rrdtool-comments.patch b/net-analyzer/munin/files/munin-1.3.2-rrdtool-comments.patch
new file mode 100644
index 000000000000..100352b4354e
--- /dev/null
+++ b/net-analyzer/munin/files/munin-1.3.2-rrdtool-comments.patch
@@ -0,0 +1,78 @@
+diff -Nuar --exclude '*~' munin-1.3.2.orig/server/munin-graph.in munin-1.3.2/server/munin-graph.in
+--- munin-1.3.2.orig/server/munin-graph.in 2005-04-15 13:31:22.000000000 -0700
++++ munin-1.3.2/server/munin-graph.in 2006-07-10 21:41:42.000000000 -0700
+@@ -649,10 +649,10 @@
+ elsif ($global_headers == 1)
+ {
+ push (@rrd, "COMMENT:" . (" " x $max_field_len));
+- push (@rrd, "COMMENT: Cur:");
+- push (@rrd, "COMMENT:Min:");
+- push (@rrd, "COMMENT:Avg:");
+- push (@rrd, "COMMENT:Max: \\j");
++ push (@rrd, "COMMENT: Cur\\:");
++ push (@rrd, "COMMENT:Min\\:");
++ push (@rrd, "COMMENT:Avg\\:");
++ push (@rrd, "COMMENT:Max\\: \\j");
+ $global_headers++;
+ }
+
+@@ -725,13 +725,13 @@
+ }
+ else
+ {
+- push (@rrd, "COMMENT: Cur:") unless $global_headers;
++ push (@rrd, "COMMENT: Cur\\:") unless $global_headers;
+ push (@rrd, "GPRINT:c$rrdname:LAST:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, "yes")?"%s":"") . "");
+- push (@rrd, "COMMENT: Min:") unless $global_headers;
++ push (@rrd, "COMMENT: Min\\:") unless $global_headers;
+ push (@rrd, "GPRINT:i$rrdname:MIN:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . "");
+- push (@rrd, "COMMENT: Avg:") unless $global_headers;
++ push (@rrd, "COMMENT: Avg\\:") unless $global_headers;
+ push (@rrd, "GPRINT:g$rrdname:AVERAGE:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . "");
+- push (@rrd, "COMMENT: Max:") unless $global_headers;
++ push (@rrd, "COMMENT: Max\\:") unless $global_headers;
+ push (@rrd, "GPRINT:a$rrdname:MAX:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . "\\j");
+ push (@{$total_pos{'min'}}, "i$rrdname");
+ push (@{$total_pos{'avg'}}, "g$rrdname");
+@@ -792,13 +792,13 @@
+
+ push (@rrd, "CDEF:dpostotal=ipostotal,UN,ipostotal,UNKN,IF");
+ push (@rrd, "LINE1:dpostotal#000000:" . $node->{client}->{$service}->{graph_total} . (" " x ($max_field_len - length ($node->{client}->{$service}->{graph_total}) + 1)));
+- push (@rrd, "COMMENT: Cur:") unless $global_headers;
++ push (@rrd, "COMMENT: Cur\\:") unless $global_headers;
+ push (@rrd, "GPRINT:gpostotal:LAST:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . "");
+- push (@rrd, "COMMENT: Min:") unless $global_headers;
++ push (@rrd, "COMMENT: Min\\:") unless $global_headers;
+ push (@rrd, "GPRINT:ipostotal:MIN:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . "");
+- push (@rrd, "COMMENT: Avg:") unless $global_headers;
++ push (@rrd, "COMMENT: Avg\\:") unless $global_headers;
+ push (@rrd, "GPRINT:gpostotal:AVERAGE:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . "");
+- push (@rrd, "COMMENT: Max:") unless $global_headers;
++ push (@rrd, "COMMENT: Max\\:") unless $global_headers;
+ push (@rrd, "GPRINT:apostotal:MAX:%6.2lf" . (munin_get_bool_val ($node->{client}->{$service}->{graph_scale}, 1)?"%s":"") . "\\j");
+ }
+
+@@ -810,8 +810,10 @@
+ # Do the header (title, vtitle, size, etc...)
+ push @complete, @{&get_header ($node, $config, $domain, $name, $service, $time)};
+ push @complete, @rrd;
+-
+- push (@complete, "COMMENT:Last update: " . localtime($lastupdate) . "\\r");
++
++ my $commentstr = "Last update: " . localtime($lastupdate) . "\\r";
++ $commentstr =~ s/:/\\:/g;
++ push (@complete, "COMMENT:".$commentstr);
+
+ if (time - 300 < $lastupdate)
+ {
+@@ -841,7 +843,9 @@
+ push @rrd_sum, "--end",(int($lastupdate/$resolutions{$time}))*$resolutions{$time};
+ }
+ push @rrd_sum, @rrd;
+- push (@rrd_sum, "COMMENT:Last update: " . localtime($lastupdate) . "\\r");
++ my $commentstr = ("Last update: " . localtime($lastupdate) . "\\r");
++ $commentstr =~ s/:/\\:/g;
++ push (@rrd_sum, "COMMENT:".$commentstr);
+
+ my $labelled = 0;
+ my @defined = ();
diff --git a/net-analyzer/munin/files/munin-init.d b/net-analyzer/munin/files/munin-init.d
new file mode 100644
index 000000000000..ae6ae7a1216c
--- /dev/null
+++ b/net-analyzer/munin/files/munin-init.d
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/munin/files/munin-init.d,v 1.1 2006/07/11 09:18:47 robbat2 Exp $
+
+NAME="munin-node"
+PIDFILE=/var/run/munin/$NAME.pid
+
+depend() {
+ need net
+ after cron
+}
+
+start() {
+ ebegin "Starting $NAME"
+ start-stop-daemon --quiet --start --pidfile $PIDFILE --exec /usr/sbin/$NAME
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping $NAME"
+ start-stop-daemon --quiet --stop --pidfile $PIDFILE
+ eend $?
+}
+
+# vim: filetype=gentoo-init-d:
diff --git a/net-analyzer/munin/metadata.xml b/net-analyzer/munin/metadata.xml
new file mode 100644
index 000000000000..420120d6dfa4
--- /dev/null
+++ b/net-analyzer/munin/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>netmon</herd>
+ <maintainer>
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+ <longdescription lang="en">
+ Munin the tool surveys all your computers and remembers what it saw. It
+ presents all the information in in graphs through a web interface. Its
+ emphasis is on plug and play capabilities. After completing a installation a
+ high number of monitoring plugins will be playing with no more effort. Using
+ Munin you can easily monitor the performance of your computers, networks,
+ SANs, and quite possibly applications as well. It makes it easy to determine
+ "what's different today" when a performance problem crops up. It makes it
+ easy to see how you're doing capacity wise on all limited resources.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-analyzer/munin/munin-1.3.2.ebuild b/net-analyzer/munin/munin-1.3.2.ebuild
new file mode 100644
index 000000000000..9fbcd2f73d03
--- /dev/null
+++ b/net-analyzer/munin/munin-1.3.2.ebuild
@@ -0,0 +1,112 @@
+# 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.ebuild,v 1.1 2006/07/11 09:18:47 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 munin-irc munin-dhcp munin-surfboard munin-apache munin-squid"
+
+# Upstream's listing of required modules is NOT correct!
+DEPEND_COM="dev-lang/perl
+ net-analyzer/rrdtool
+ dev-perl/net-server
+ sys-process/procps
+ 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-MIME-Base64
+ virtual/perl-Storable
+ virtual/perl-Text-Balanced
+ dev-perl/HTML-Template
+ 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() {
+ unpack ${A}
+ # upstream needs a lot of DESTDIR loving
+ # and Gentoo location support
+ EPATCH_OPTS="-p1 -d ${S}" epatch ${FILESDIR}/${P}-Makefile.patch
+ # Fix noise in the plugins
+ EPATCH_OPTS="-p1 -d ${S}" epatch ${FILESDIR}/${P}-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}/${P}-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
+
+ # 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 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"
+}