summaryrefslogtreecommitdiff
path: root/sysutils/munin-doc
diff options
context:
space:
mode:
authorhe <he>2006-06-08 19:03:34 +0000
committerhe <he>2006-06-08 19:03:34 +0000
commit8a4cbc2b670f749174cf588bf74cfbfd0a83b694 (patch)
tree8a0fb703a6afa5a9a0e3599fb34ab9fcc9540c1f /sysutils/munin-doc
parenta5292e481842719b9861bc690876d175df32b5cf (diff)
downloadpkgsrc-8a4cbc2b670f749174cf588bf74cfbfd0a83b694.tar.gz
Import a package to install the documentation to munin-node and the
soon-to-be-committed munin-server package.
Diffstat (limited to 'sysutils/munin-doc')
-rw-r--r--sysutils/munin-doc/DESCR7
-rw-r--r--sysutils/munin-doc/Makefile29
-rw-r--r--sysutils/munin-doc/PLIST20
-rw-r--r--sysutils/munin-doc/distinfo7
-rw-r--r--sysutils/munin-doc/patches/patch-aa89
-rw-r--r--sysutils/munin-doc/patches/patch-ad21
6 files changed, 173 insertions, 0 deletions
diff --git a/sysutils/munin-doc/DESCR b/sysutils/munin-doc/DESCR
new file mode 100644
index 00000000000..73694b6a6ff
--- /dev/null
+++ b/sysutils/munin-doc/DESCR
@@ -0,0 +1,7 @@
+Munin is a tool for graphing all sorts of information about one or
+more servers and displaying it in a web interface. It uses the
+execellent RRDTool (written by Tobi Oetiker) and is written in Perl.
+Munin has a master/node architecture. The master connects to all the
+nodes at regular intervals, and asks them for data. It then stores
+the data in RRD-files, and (if needed) updates the graphs. One of the
+main goals has been ease of creating own "plugins" (graphs).
diff --git a/sysutils/munin-doc/Makefile b/sysutils/munin-doc/Makefile
new file mode 100644
index 00000000000..8f140466c4b
--- /dev/null
+++ b/sysutils/munin-doc/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/06/08 19:03:34 he Exp $
+#
+
+DISTNAME= ${PKGNAME:S:-doc-:_:}
+PKGNAME= munin-doc-1.3.1
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=munin/}
+
+MAINTAINER= he@NetBSD.org
+HOMEPAGE= http://munin.sourceforge.net/
+COMMENT= System monitoring tool, documentation
+
+BUILD_DEPENDS+= htmldoc>=0:../../www/htmldoc
+BUILD_DEPENDS+= html2text>=0:../../textproc/html2text
+
+USE_TOOLS+= perl
+USE_TOOLS+= gmake
+USE_PKGINSTALL= YES
+
+WRKSRC= ${WRKDIR}/${DISTNAME:S:_:-:}
+
+INSTALL_TARGET= install-doc install-man
+
+BUILD_TARGET= build-doc build-man
+
+MAKE_ENV+= PERL5=${PERL5:Q}
+
+.include "../../mk/bsd.pkg.mk"
+.include "../../lang/python/application.mk"
diff --git a/sysutils/munin-doc/PLIST b/sysutils/munin-doc/PLIST
new file mode 100644
index 00000000000..9628f127dbe
--- /dev/null
+++ b/sysutils/munin-doc/PLIST
@@ -0,0 +1,20 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/06/08 19:03:34 he Exp $
+man/man5/munin-node.conf.5
+man/man5/munin.conf.5
+man/man8/munin-cron.8
+man/man8/munin-graph.8
+man/man8/munin-html.8
+man/man8/munin-limits.8
+man/man8/munin-node.8
+man/man8/munin-run.8
+man/man8/munin-update.8
+share/doc/munin/COPYING
+share/doc/munin/README.api
+share/doc/munin/README.plugins
+share/doc/munin/munin-doc.html
+share/doc/munin/munin-doc.pdf
+share/doc/munin/munin-doc.txt
+share/doc/munin/munin-faq.html
+share/doc/munin/munin-faq.pdf
+share/doc/munin/munin-faq.txt
+@dirrm share/doc/munin
diff --git a/sysutils/munin-doc/distinfo b/sysutils/munin-doc/distinfo
new file mode 100644
index 00000000000..812b7c2212c
--- /dev/null
+++ b/sysutils/munin-doc/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/06/08 19:03:34 he Exp $
+
+SHA1 (munin_1.3.1.tar.gz) = f7783b645abbb25524c3f1b6e0fe27185f1de3db
+RMD160 (munin_1.3.1.tar.gz) = a6ea4e1839f4c787457e4051d55007b7bcebd1d4
+Size (munin_1.3.1.tar.gz) = 315743 bytes
+SHA1 (patch-aa) = f4c75a11a5fa026d968a2685f55061c74f51e537
+SHA1 (patch-ad) = 8accd3875324035f2c95903fc37cee4b4a55948a
diff --git a/sysutils/munin-doc/patches/patch-aa b/sysutils/munin-doc/patches/patch-aa
new file mode 100644
index 00000000000..d14df88234e
--- /dev/null
+++ b/sysutils/munin-doc/patches/patch-aa
@@ -0,0 +1,89 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/06/08 19:03:34 he Exp $
+
+--- Makefile.config.orig 2005-01-10 11:38:22.000000000 +0100
++++ Makefile.config
+@@ -7,32 +7,36 @@
+ #
+ # the base of the Munin installation.
+ #
+-PREFIX = $(DESTDIR)/opt/munin
++ifdef $(PREFIX)
++UPREFIX=$(PREFIX)
++else
++UPREFIX=/usr/pkg
++endif
+
+ # Where Munin keeps its configurations (server.conf, client.conf, ++)
+-CONFDIR = $(DESTDIR)/etc/opt/munin
++CONFDIR = $(UPREFIX)/etc/munin
+
+ # Server only - where to put munin-cron
+-BINDIR = $(PREFIX)/bin
++BINDIR = $(UPREFIX)/bin
+
+ # Client only - where to put munin-node, munin-node-configure, and munin-run
+-SBINDIR = $(PREFIX)/sbin
++SBINDIR = $(UPREFIX)/sbin
+
+ # Where to put text and html documentation
+-DOCDIR = $(PREFIX)/doc
++DOCDIR = $(UPREFIX)/share/doc/munin
+
+ # Where to put man pages
+-MANDIR = $(PREFIX)/man
++MANDIR = $(UPREFIX)/man
+
+ # Where to put internal binaries and plugin repository
+-LIBDIR = $(PREFIX)/lib
++LIBDIR = $(UPREFIX)/lib/munin
+
+ # Server only - Output directory
+-HTMLDIR = $(PREFIX)/var/www
++HTMLDIR = $(UPREFIX)/www/munin/data
+ CGIDIR = $(HTMLDIR)/cgi
+
+ # Client only - Where to put RRD files and other intenal data
+-DBDIR = $(DESTDIR)/var/opt/munin
++DBDIR = $(DESTDIR)/var/munin
+
+ # Client only - Where plugins should put their states. Must be writable by
+ # group "munin", and should be preserved between reboots
+@@ -45,14 +49,14 @@ LOGDIR = $(DESTDIR)/var/log/munin
+ # writable by the user "munin".
+ STATEDIR = $(DESTDIR)/var/run/munin
+
+-# The perl interpreter to use
+-PERL = $(shell which perl)
++# The perl interpreter to use (passed in by pkgsrc)
++PERL = ${PERL5}
+
+ # The python interpreter to use (used by some plugins)
+ 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 = ${PERL5_SITELIB}
+
+ # Client only - Install plugins for this architecture
+ OSTYPE = $(shell uname | tr '[A-Z]' '[a-z]')
+@@ -65,16 +69,15 @@ HOSTNAME = $(shell hostname)
+ VERSION = $(shell cat RELEASE)
+
+ # User to run munin as
+-USER = munin
+-GROUP = munin
++USER = ${MUNIN_USER}
++GROUP = ${MUNIN_GROUP}
+
+ # Default user to run the plugins as
+ PLUGINUSER = nobody
+
+ # Which command to use to check if the USER and GROUP to run Munin as, exists.
+-GETENT = $(shell which getent || which true 2>/dev/null)
+-CHECKUSER = $(shell $(GETENT) passwd $(USER) >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistant. Create the user and retry; exit 2"))
+-CHECKGROUP = $(shell $(GETENT) group $(GROUP) >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistant. Create the group and retry; exit 2"))
++CHECKUSER = $(shell grep $(USER) /etc/passwd >/dev/null 2>/dev/null || (echo "echo User $(USER) nonexistent. Create the user and retry; exit 2"))
++CHECKGROUP = $(shell grep $(GROUP) /etc/group >/dev/null 2>/dev/null || (echo "echo Group $(GROUP) nonexistent. Create the group and retry; exit 2"))
+
+ CHOWN = chown
+ CHMOD = chmod
diff --git a/sysutils/munin-doc/patches/patch-ad b/sysutils/munin-doc/patches/patch-ad
new file mode 100644
index 00000000000..4d45c353e49
--- /dev/null
+++ b/sysutils/munin-doc/patches/patch-ad
@@ -0,0 +1,21 @@
+$NetBSD: patch-ad,v 1.1.1.1 2006/06/08 19:03:34 he Exp $
+
+--- Makefile.orig 2004-12-22 22:33:47.000000000 +0100
++++ Makefile
+@@ -35,8 +35,6 @@ install-main: build
+ $(INSTALL) -m 0644 server/style.css $(CONFDIR)/templates/
+ $(INSTALL) -m 0644 server/definitions.html $(CONFDIR)/templates/
+
+- test -f "$(CONFDIR)/munin.conf" || $(INSTALL) -m 0644 build/server/munin.conf $(CONFDIR)/
+-
+ $(INSTALL) -m 0755 build/server/munin-cron $(BINDIR)/
+
+ $(INSTALL) -m 0755 build/server/munin-update $(LIBDIR)/
+@@ -71,7 +69,6 @@ install-node-non-snmp: build
+
+ $(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)/
+
+ install-node-plugins: build