mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Stage
- Move a few patches around to stay consistent - add a JAVA option to munin-node. Sponsored by: Absolight
This commit is contained in:
parent
6dd05dec15
commit
1fef7a32be
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=367046
14 changed files with 422 additions and 272 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
PORTNAME= munin
|
PORTNAME= munin
|
||||||
PORTVERSION= ${MUNIN_VERSION}
|
PORTVERSION= ${MUNIN_VERSION}
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= sysutils perl5
|
CATEGORIES= sysutils perl5
|
||||||
MASTER_SITES= ${MUNIN_SITES}
|
MASTER_SITES= ${MUNIN_SITES}
|
||||||
PKGNAMESUFFIX= -common
|
PKGNAMESUFFIX= -common
|
||||||
|
@ -17,24 +18,12 @@ RUN_DEPENDS= p5-Net-SSLeay>=0:${PORTSDIR}/security/p5-Net-SSLeay
|
||||||
USES= gmake perl5
|
USES= gmake perl5
|
||||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.r/rc/}
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/.r/rc/}
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
.include "${.CURDIR}/../munin-common/munin.mk"
|
.include "${.CURDIR}/../munin-common/munin.mk"
|
||||||
|
|
||||||
ALL_TARGET= build-common-prime
|
ALL_TARGET= build-common-prime
|
||||||
INSTALL_TARGET= install-common
|
INSTALL_TARGET= install-common
|
||||||
|
|
||||||
MAN3= Munin::Common::Config.3 \
|
|
||||||
Munin::Common::Defaults.3 \
|
|
||||||
Munin::Common::TLS.3 \
|
|
||||||
Munin::Common::TLSClient.3 \
|
|
||||||
Munin::Common::TLSServer.3 \
|
|
||||||
Munin::Common::Timeout.3
|
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@${MKDIR} ${LOGDIR} ${STATEDIR} ${SPOOLDIR}
|
${MKDIR} ${STAGEDIR}${LOGDIR} ${STAGEDIR}${STATEDIR} ${STAGEDIR}${SPOOLDIR}
|
||||||
@${CHOWN} ${USERS}:${GROUPS} ${LOGDIR} ${STADEDIR} ${SPOOLDIR}
|
|
||||||
@(cd ${WRKSRC}/common/blib/libdoc && for man in ${MAN3} ; do \
|
|
||||||
${INSTALL_MAN} -C $$man ${PREFIX}/man/man3; \
|
|
||||||
done)
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,27 +1,143 @@
|
||||||
--- Makefile.orig 2012-08-31 17:22:50.000000000 +0200
|
--- Makefile.orig 2013-07-19 16:30:03 UTC
|
||||||
+++ Makefile 2012-09-08 00:38:17.000000000 +0200
|
+++ Makefile
|
||||||
@@ -68,11 +68,11 @@
|
@@ -68,60 +68,48 @@
|
||||||
|
|
||||||
install-pre: Makefile Makefile.config
|
install-pre: Makefile Makefile.config
|
||||||
@$(CHECKUSER)
|
@$(CHECKUSER)
|
||||||
- mkdir -p $(LOGDIR)
|
- mkdir -p $(LOGDIR)
|
||||||
- mkdir -p $(STATEDIR)
|
- mkdir -p $(STATEDIR)
|
||||||
- mkdir -p $(SPOOLDIR)
|
- mkdir -p $(SPOOLDIR)
|
||||||
+# mkdir -p $(LOGDIR)
|
- mkdir -p $(CONFDIR)
|
||||||
+# mkdir -p $(STATEDIR)
|
|
||||||
+# mkdir -p $(SPOOLDIR)
|
|
||||||
mkdir -p $(CONFDIR)
|
|
||||||
- $(CHOWN) $(USER) $(LOGDIR) $(STATEDIR) $(SPOOLDIR)
|
- $(CHOWN) $(USER) $(LOGDIR) $(STATEDIR) $(SPOOLDIR)
|
||||||
+# $(CHOWN) $(USER) $(LOGDIR) $(STATEDIR) $(SPOOLDIR)
|
+ mkdir -p $(DESTDIR)$(CONFDIR)
|
||||||
|
|
||||||
install-master-prime: $(INFILES_MASTER) install-pre install-master
|
install-master-prime: $(INFILES_MASTER) install-pre install-master
|
||||||
mkdir -p $(CONFDIR)/templates
|
- mkdir -p $(CONFDIR)/templates
|
||||||
@@ -144,7 +144,7 @@
|
- mkdir -p $(CONFDIR)/static
|
||||||
mkdir -p $(LIBDIR)/plugins
|
- mkdir -p $(CONFDIR)/templates/partial
|
||||||
|
- mkdir -p $(CONFDIR)/munin-conf.d
|
||||||
|
- mkdir -p $(LIBDIR)
|
||||||
|
- mkdir -p $(BINDIR)
|
||||||
|
- mkdir -p $(PERLLIB)
|
||||||
|
- mkdir -p $(PERLLIB)/Munin/Master
|
||||||
|
- mkdir -p $(HTMLDIR)
|
||||||
|
- mkdir -p $(DBDIR)
|
||||||
|
- mkdir -p $(DBDIR)/cgi-tmp
|
||||||
|
- mkdir -p $(CGIDIR)
|
||||||
|
-
|
||||||
|
- $(CHOWN) $(USER) $(HTMLDIR) $(DBDIR)
|
||||||
|
- $(CHMOD) 0755 $(DBDIR)
|
||||||
|
-
|
||||||
|
- $(CHOWN) $(CGIUSER) $(DBDIR)/cgi-tmp
|
||||||
|
- $(CHMOD) 0755 $(DBDIR)/cgi-tmp
|
||||||
|
+ mkdir -p $(DESTDIR)$(CONFDIR)/templates
|
||||||
|
+ mkdir -p $(DESTDIR)$(CONFDIR)/static
|
||||||
|
+ mkdir -p $(DESTDIR)$(CONFDIR)/templates/partial
|
||||||
|
+ mkdir -p $(DESTDIR)$(CONFDIR)/munin-conf.d
|
||||||
|
+ mkdir -p $(DESTDIR)$(LIBDIR)
|
||||||
|
+ mkdir -p $(DESTDIR)$(BINDIR)
|
||||||
|
+ mkdir -p $(DESTDIR)$(HTMLDIR)
|
||||||
|
+ mkdir -p $(DESTDIR)$(DBDIR)
|
||||||
|
+ mkdir -p $(DESTDIR)$(DBDIR)/cgi-tmp
|
||||||
|
+ mkdir -p $(DESTDIR)$(CGIDIR)
|
||||||
|
|
||||||
|
for p in master/www/*.tmpl ; do \
|
||||||
|
- $(INSTALL) -m 0644 "$$p" $(CONFDIR)/templates/ ; \
|
||||||
|
+ $(INSTALL) -m 0644 "$$p" $(DESTDIR)$(CONFDIR)/templates/ ; \
|
||||||
|
done
|
||||||
|
|
||||||
|
for p in master/static/* ; do \
|
||||||
|
- $(INSTALL) -m 0644 "$$p" $(CONFDIR)/static/ ; \
|
||||||
|
+ $(INSTALL) -m 0644 "$$p" $(DESTDIR)$(CONFDIR)/static/ ; \
|
||||||
|
done
|
||||||
|
|
||||||
|
for p in master/www/partial/*.tmpl; do \
|
||||||
|
- $(INSTALL) -m 0644 "$$p" $(CONFDIR)/templates/partial/ ; \
|
||||||
|
+ $(INSTALL) -m 0644 "$$p" $(DESTDIR)$(CONFDIR)/templates/partial/ ; \
|
||||||
|
done
|
||||||
|
|
||||||
|
- $(INSTALL) -m 0644 master/DejaVuSansMono.ttf $(LIBDIR)/
|
||||||
|
- $(INSTALL) -m 0644 master/DejaVuSans.ttf $(LIBDIR)/
|
||||||
|
+ $(INSTALL) -m 0644 master/DejaVuSansMono.ttf $(DESTDIR)$(LIBDIR)/
|
||||||
|
+ $(INSTALL) -m 0644 master/DejaVuSans.ttf $(DESTDIR)$(LIBDIR)/
|
||||||
|
|
||||||
|
- test -f $(HTMLDIR)/.htaccess || $(INSTALL) -m 0644 build/master/www/munin-htaccess $(HTMLDIR)/.htaccess
|
||||||
|
- test -f "$(CONFDIR)/munin.conf" || $(INSTALL) -m 0644 build/master/munin.conf $(CONFDIR)/
|
||||||
|
+ $(INSTALL) -m 0644 build/master/www/munin-htaccess $(DESTDIR)$(HTMLDIR)/.htaccess
|
||||||
|
+ $(INSTALL) -m 0644 build/master/munin.conf $(DESTDIR)$(CONFDIR)/
|
||||||
|
|
||||||
|
- $(INSTALL) -m 0755 build/master/_bin/munin-cron $(BINDIR)/
|
||||||
|
- $(INSTALL) -m 0755 build/master/_bin/munin-check $(BINDIR)/
|
||||||
|
- $(INSTALL) -m 0755 build/master/_bin/munin-update $(LIBDIR)/
|
||||||
|
- $(INSTALL) -m 0755 build/master/_bin/munin-html $(LIBDIR)/
|
||||||
|
- $(INSTALL) -m 0755 build/master/_bin/munin-graph $(LIBDIR)/
|
||||||
|
- $(INSTALL) -m 0755 build/master/_bin/munin-limits $(LIBDIR)/
|
||||||
|
- $(INSTALL) -m 0755 build/master/_bin/munin-datafile2storable $(LIBDIR)/
|
||||||
|
- $(INSTALL) -m 0755 build/master/_bin/munin-storable2datafile $(LIBDIR)/
|
||||||
|
- $(INSTALL) -m 0755 build/master/_bin/munin-cgi-graph $(CGIDIR)/munin-cgi-graph
|
||||||
|
- $(INSTALL) -m 0755 build/master/_bin/munin-cgi-html $(CGIDIR)/munin-cgi-html
|
||||||
|
+ $(INSTALL) -m 0755 build/master/_bin/munin-cron $(DESTDIR)$(BINDIR)/
|
||||||
|
+ $(INSTALL) -m 0755 build/master/_bin/munin-check $(DESTDIR)$(BINDIR)/
|
||||||
|
+ $(INSTALL) -m 0755 build/master/_bin/munin-update $(DESTDIR)$(LIBDIR)/
|
||||||
|
+ $(INSTALL) -m 0755 build/master/_bin/munin-html $(DESTDIR)$(LIBDIR)/
|
||||||
|
+ $(INSTALL) -m 0755 build/master/_bin/munin-graph $(DESTDIR)$(LIBDIR)/
|
||||||
|
+ $(INSTALL) -m 0755 build/master/_bin/munin-limits $(DESTDIR)$(LIBDIR)/
|
||||||
|
+ $(INSTALL) -m 0755 build/master/_bin/munin-datafile2storable $(DESTDIR)$(LIBDIR)/
|
||||||
|
+ $(INSTALL) -m 0755 build/master/_bin/munin-storable2datafile $(DESTDIR)$(LIBDIR)/
|
||||||
|
+ $(INSTALL) -m 0755 build/master/_bin/munin-cgi-graph $(DESTDIR)$(CGIDIR)/munin-cgi-graph
|
||||||
|
+ $(INSTALL) -m 0755 build/master/_bin/munin-cgi-html $(DESTDIR)$(CGIDIR)/munin-cgi-html
|
||||||
|
|
||||||
|
# Not ready to be installed yet
|
||||||
|
# $(INSTALL) -m 0755 build/master/_bin/munin-gather $(LIBDIR)/
|
||||||
|
@@ -139,33 +127,29 @@
|
||||||
|
install-plugins-prime: install-plugins build $(PLUGINS) Makefile Makefile.config
|
||||||
|
@$(CHECKGROUP)
|
||||||
|
|
||||||
|
- mkdir -p $(CONFDIR)/plugins
|
||||||
|
- mkdir -p $(CONFDIR)/plugin-conf.d
|
||||||
|
- mkdir -p $(LIBDIR)/plugins
|
||||||
|
+ mkdir -p $(DESTDIR)$(CONFDIR)/plugins
|
||||||
|
+ mkdir -p $(DESTDIR)$(CONFDIR)/plugin-conf.d
|
||||||
|
+ mkdir -p $(DESTDIR)$(LIBDIR)/plugins
|
||||||
mkdir -p $(PLUGSTATE)
|
mkdir -p $(PLUGSTATE)
|
||||||
|
|
||||||
- $(CHOWN) root:root $(PLUGSTATE)
|
- $(CHOWN) root:root $(PLUGSTATE)
|
||||||
+ $(CHOWN) root:wheel $(PLUGSTATE)
|
- $(CHMOD) 0755 $(PLUGSTATE)
|
||||||
$(CHMOD) 0755 $(PLUGSTATE)
|
- $(CHMOD) 0755 $(CONFDIR)/plugin-conf.d
|
||||||
$(CHMOD) 0755 $(CONFDIR)/plugin-conf.d
|
-
|
||||||
|
for p in build/plugins/node.d/* build/plugins/node.d.$(OSTYPE)/* ; do \
|
||||||
|
if test -f "$$p" ; then \
|
||||||
|
echo Installing $$p; \
|
||||||
|
- $(INSTALL) -m 0755 $$p $(LIBDIR)/plugins/; \
|
||||||
|
+ $(INSTALL) -m 0755 $$p $(DESTDIR)$(LIBDIR)/plugins/; \
|
||||||
|
fi \
|
||||||
|
done
|
||||||
|
- $(HPUXONLY) mv $(LIBDIR)/plugins/*.adv $(LIBDIR)
|
||||||
|
- $(INSTALL) -m 0644 build/plugins/plugins.history $(LIBDIR)/plugins/
|
||||||
|
- $(INSTALL) -m 0644 build/plugins/plugin.sh $(LIBDIR)/plugins/
|
||||||
|
+ $(HPUXONLY) mv $(DESTDIR)$(LIBDIR)/plugins/*.adv $(DESTDIR)$(LIBDIR)
|
||||||
|
+ $(INSTALL) -m 0644 build/plugins/plugins.history $(DESTDIR)$(LIBDIR)/plugins/
|
||||||
|
+ $(INSTALL) -m 0644 build/plugins/plugin.sh $(DESTDIR)$(LIBDIR)/plugins/
|
||||||
|
|
||||||
|
install-plugins-java: build-plugins-java
|
||||||
|
mkdir -p $(JAVALIBDIR)
|
||||||
|
- $(INSTALL) -m 0644 build/plugins/javalib/munin-jmx-plugins.jar $(JAVALIBDIR)/
|
||||||
|
- mkdir -p $(LIBDIR)/plugins
|
||||||
|
+ $(INSTALL) -m 0644 build/plugins/javalib/munin-jmx-plugins.jar $(DESTDIR)$(JAVALIBDIR)/
|
||||||
|
+ mkdir -p $(DESTDIR)$(LIBDIR)/plugins
|
||||||
|
for p in build/plugins/node.d.java/*; do \
|
||||||
|
if test -f "$$p" ; then \
|
||||||
|
echo Installing $$p; \
|
||||||
|
- $(INSTALL) -m 0755 $$p $(LIBDIR)/plugins/; \
|
||||||
|
+ $(INSTALL) -m 0755 $$p $(DESTDIR)$(LIBDIR)/plugins/; \
|
||||||
|
fi \
|
||||||
|
done
|
||||||
|
|
||||||
|
@@ -426,6 +410,7 @@
|
||||||
|
--install_path sbin=$(SBINDIR) \
|
||||||
|
--install_path bindoc=$(MANDIR)/man1 \
|
||||||
|
--install_path libdoc=$(MANDIR)/man3 \
|
||||||
|
+ --destdir=$(DESTDIR)
|
||||||
|
|
||||||
|
test-%: %/Build
|
||||||
|
cd $* && $(PERL) Build test --verbose=0 || true
|
||||||
|
|
|
@ -1,6 +1,97 @@
|
||||||
--- Makefile.config.orig 2009-12-30 05:55:56.000000000 -0700
|
--- Makefile.config.orig 2013-07-19 16:30:03 UTC
|
||||||
+++ Makefile.config 2010-01-30 11:17:34.000000000 -0700
|
+++ Makefile.config
|
||||||
@@ -126,9 +129,8 @@
|
@@ -17,62 +17,62 @@
|
||||||
|
#
|
||||||
|
# the base of the Munin installation.
|
||||||
|
#
|
||||||
|
-PREFIX = $(DESTDIR)/opt/munin
|
||||||
|
+PREFIX ?= $(DESTDIR)/opt/munin
|
||||||
|
|
||||||
|
# Where Munin keeps its configurations (server.conf, client.conf, ++)
|
||||||
|
-CONFDIR = $(DESTDIR)/etc/opt/munin
|
||||||
|
+CONFDIR ?= $(DESTDIR)/etc/opt/munin
|
||||||
|
|
||||||
|
# Server only - where to put munin-cron
|
||||||
|
-BINDIR = $(PREFIX)/bin
|
||||||
|
+BINDIR ?= $(PREFIX)/bin
|
||||||
|
|
||||||
|
# Client only - where to put munin-node, munin-node-configure, and munin-run
|
||||||
|
-SBINDIR = $(PREFIX)/sbin
|
||||||
|
+SBINDIR ?= $(PREFIX)/sbin
|
||||||
|
|
||||||
|
# Where to put text and html documentation
|
||||||
|
-DOCDIR = $(PREFIX)/doc
|
||||||
|
+DOCDIR ?= $(PREFIX)/doc
|
||||||
|
|
||||||
|
# Where to put man pages
|
||||||
|
-MANDIR = $(PREFIX)/man
|
||||||
|
+MANDIR ?= $(PREFIX)/man
|
||||||
|
|
||||||
|
# Where to put internal binaries and plugin repository
|
||||||
|
-LIBDIR = $(PREFIX)/lib
|
||||||
|
+LIBDIR ?= $(PREFIX)/lib
|
||||||
|
|
||||||
|
# Server only - Output directory
|
||||||
|
-HTMLDIR = $(PREFIX)/www/docs
|
||||||
|
-CGIDIR = $(PREFIX)/www/cgi
|
||||||
|
+HTMLDIR ?= $(PREFIX)/www/docs
|
||||||
|
+CGIDIR ?= $(PREFIX)/www/cgi
|
||||||
|
|
||||||
|
# Where to put internal data for master (RRD, internal files, ...)
|
||||||
|
-DBDIR = $(DESTDIR)/var/opt/munin
|
||||||
|
+DBDIR ?= $(DESTDIR)/var/opt/munin
|
||||||
|
|
||||||
|
# Where to put internal data for node (plugin state, ...)
|
||||||
|
-DBDIRNODE = $(DESTDIR)/var/opt/munin-node
|
||||||
|
+DBDIRNODE ?= $(DESTDIR)/var/opt/munin-node
|
||||||
|
|
||||||
|
# Client only - Where the spool files are written. Must be writable by
|
||||||
|
# group "munin", and should be preserved between reboots
|
||||||
|
-SPOOLDIR = $(DBDIR)/spool
|
||||||
|
+SPOOLDIR ?= $(DBDIR)/spool
|
||||||
|
|
||||||
|
# Client only - Where plugins should put their states. Must be writable by
|
||||||
|
# group "munin", and should be preserved between reboots
|
||||||
|
-PLUGSTATE = $(DBDIRNODE)/plugin-state
|
||||||
|
+PLUGSTATE ?= $(DBDIRNODE)/plugin-state
|
||||||
|
|
||||||
|
# Where Munin should place its logs.
|
||||||
|
-LOGDIR = $(PREFIX)/log/munin
|
||||||
|
+LOGDIR ?= $(PREFIX)/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 ?= $(DESTDIR)/var/run/munin
|
||||||
|
|
||||||
|
# The perl interpreter to use
|
||||||
|
-PERL := $(shell which perl)
|
||||||
|
+PERL := /usr/local/bin/perl
|
||||||
|
|
||||||
|
# The python interpreter to use (used by some plugins)
|
||||||
|
-PYTHON := /usr/bin/env python
|
||||||
|
+PYTHON := /usr/local/bin/python
|
||||||
|
|
||||||
|
# The ruby interpreter to use (used by some plugins)
|
||||||
|
-RUBY := /usr/bin/env ruby
|
||||||
|
+RUBY := /usr/local/bin/ruby
|
||||||
|
|
||||||
|
# The java runtime to use (used by some plugins)
|
||||||
|
-JAVARUN := /usr/bin/java
|
||||||
|
+JAVARUN := /usr/local/bin/java
|
||||||
|
|
||||||
|
# The java library dir to use (used by some plugins)
|
||||||
|
# this is needed in order to be able to install
|
||||||
|
@@ -92,7 +92,7 @@
|
||||||
|
GOODSH := $(shell PATH=`getconf PATH 2>/dev/null || echo $(PATH)` LANG=C sh -c 'type sh | sed "s/.* //"')
|
||||||
|
|
||||||
|
# Path of bash for bash specific plugins
|
||||||
|
-BASH := /bin/bash
|
||||||
|
+BASH := /usr/local/bin/bash
|
||||||
|
|
||||||
|
# Server only - Where to install the perl libraries
|
||||||
|
PERLSITELIB := $(shell $(PERL) -V:sitelib | cut -d"'" -f2)
|
||||||
|
@@ -129,9 +129,8 @@
|
||||||
# Which command to use to check if the USER and GROUP to run Munin as, exists.
|
# Which command to use to check if the USER and GROUP to run Munin as, exists.
|
||||||
# These will work on most modern OSes:
|
# These will work on most modern OSes:
|
||||||
#
|
#
|
||||||
|
|
|
@ -6,8 +6,14 @@
|
||||||
%%SITE_PERL%%/Munin/Common/TLSClient.pm
|
%%SITE_PERL%%/Munin/Common/TLSClient.pm
|
||||||
%%SITE_PERL%%/Munin/Common/TLSServer.pm
|
%%SITE_PERL%%/Munin/Common/TLSServer.pm
|
||||||
%%SITE_PERL%%/Munin/Common/Timeout.pm
|
%%SITE_PERL%%/Munin/Common/Timeout.pm
|
||||||
@dirrm %%SITE_PERL%%/Munin/Common
|
man/man3/Munin::Common::Config.3.gz
|
||||||
@dirrm %%SITE_PERL%%/Munin
|
man/man3/Munin::Common::Defaults.3.gz
|
||||||
@exec mkdir -p %%LOGDIR%% %%STATEDIR%% %%SPOOLDIR%%
|
man/man3/Munin::Common::TLS.3.gz
|
||||||
@exec chown %%USER%%:%%GROUP%% %%LOGDIR%% %%STATEDIR%% %%SPOOLDIR%%
|
man/man3/Munin::Common::TLSClient.3.gz
|
||||||
@unexec rmdir %%DBDIR%% %%LOGDIR%% %%STATEDIR%% %%SPOOLDIR%% 2>/dev/null || /usr/bin/true
|
man/man3/Munin::Common::TLSServer.3.gz
|
||||||
|
man/man3/Munin::Common::Timeout.3.gz
|
||||||
|
@dirrmtry %%SITE_PERL%%/Munin/Common
|
||||||
|
@dirrmtry %%SITE_PERL%%/Munin
|
||||||
|
@dirrmtry(%%USER%%,%%GROUP%%,) %%LOGDIR%%
|
||||||
|
@dirrmtry(%%USER%%,%%GROUP%%,) %%STATEDIR%%
|
||||||
|
@dirrmtry(%%USER%%,%%GROUP%%,) %%SPOOLDIR%%
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
PORTNAME= munin
|
PORTNAME= munin
|
||||||
PORTVERSION= ${MUNIN_VERSION}
|
PORTVERSION= ${MUNIN_VERSION}
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= sysutils perl5
|
CATEGORIES= sysutils perl5
|
||||||
MASTER_SITES= ${MUNIN_SITES}
|
MASTER_SITES= ${MUNIN_SITES}
|
||||||
PKGNAMESUFFIX= -master
|
PKGNAMESUFFIX= -master
|
||||||
|
@ -45,7 +46,6 @@ USES= gmake perl5
|
||||||
|
|
||||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
.include "${.CURDIR}/../munin-common/munin.mk"
|
.include "${.CURDIR}/../munin-common/munin.mk"
|
||||||
|
|
||||||
EXTRA_PATCHES= ${MUNIN_PATCHES}
|
EXTRA_PATCHES= ${MUNIN_PATCHES}
|
||||||
|
@ -53,51 +53,15 @@ DISTINFO_FILE= ${MUNIN_DISTINFO}
|
||||||
ALL_TARGET= infiles build-master build-man
|
ALL_TARGET= infiles build-master build-man
|
||||||
INSTALL_TARGET= install-master-prime
|
INSTALL_TARGET= install-master-prime
|
||||||
|
|
||||||
MAN3= Munin::Master::Config.3 \
|
|
||||||
Munin::Master::Group.3 \
|
|
||||||
Munin::Master::GroupRepository.3 \
|
|
||||||
Munin::Master::HTMLOld.3 \
|
|
||||||
Munin::Master::Host.3 \
|
|
||||||
Munin::Master::LimitsOld.3 \
|
|
||||||
Munin::Master::Logger.3 \
|
|
||||||
Munin::Master::Node.3 \
|
|
||||||
Munin::Master::ProcessManager.3 \
|
|
||||||
Munin::Master::Update.3 \
|
|
||||||
Munin::Master::UpdateWorker.3 \
|
|
||||||
Munin::Master::Utils.3 \
|
|
||||||
Munin::Master::Worker.3
|
|
||||||
MAN5= munin.conf.5
|
|
||||||
MAN8= munin-cron.8 \
|
|
||||||
munin-graph.8 \
|
|
||||||
munin-html.8 \
|
|
||||||
munin-limits.8 \
|
|
||||||
munin-update.8
|
|
||||||
|
|
||||||
PLIST_SUB= DBDIR=${DBDIR}
|
|
||||||
SUB_FILES= pkg-message
|
SUB_FILES= pkg-message
|
||||||
|
PLIST_SUB+= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
||||||
.include <bsd.port.pre.mk>
|
|
||||||
|
|
||||||
pre-install:
|
|
||||||
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
|
|
||||||
${SH} ${PKGDIR}/pkg-install ${PKGNAME} PRE-INSTALL
|
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@${CHOWN} ${USERS}:${GROUPS} ${DBDIR} ${STATEDIR} ${WWWDIR}
|
(cd ${WRKSRC}/build/doc; \
|
||||||
@${CHOWN} ${WWWOWN} ${DBDIR}/cgi-tmp
|
${INSTALL_MAN} munin.conf.5 ${STAGEDIR}${MAN5PREFIX}/man/man5; \
|
||||||
@${INSTALL_DATA} ${WRKSRC}/build/master/munin.conf \
|
${INSTALL_MAN} munin-cron.8 munin-graph.8 munin-html.8 munin-limits.8 munin-update.8 ${STAGEDIR}${MAN8PREFIX}/man/man8; \
|
||||||
${PREFIX}/etc/munin/munin.conf.sample
|
)
|
||||||
@(cd ${WRKSRC}/master/blib/libdoc && for man in ${MAN3}; do \
|
(cd ${STAGEDIR}${ETCDIR}; for i in `find . -type f`; do mv $$i $$i.sample; done)
|
||||||
${INSTALL_MAN} -C $$man ${PREFIX}/man/man3; \
|
${MV} ${STAGEDIR}${WWWDIR}/.htaccess ${STAGEDIR}${WWWDIR}/.htaccess.sample
|
||||||
done)
|
|
||||||
@(cd ${WRKSRC}/build/doc && for man in ${MAN5}; do \
|
|
||||||
${INSTALL_MAN} -C $$man ${PREFIX}/man/man5; \
|
|
||||||
done)
|
|
||||||
@(cd ${WRKSRC}/build/doc && for man in ${MAN8}; do \
|
|
||||||
${INSTALL_MAN} -C $$man ${PREFIX}/man/man8; \
|
|
||||||
done)
|
|
||||||
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
|
|
||||||
${SH} ${PKGDIR}/pkg-install ${PKGNAME} POST-INSTALL
|
|
||||||
@${CAT} ${PKGMESSAGE}
|
|
||||||
|
|
||||||
.include <bsd.port.post.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,40 +1,38 @@
|
||||||
bin/munin-check
|
bin/munin-check
|
||||||
bin/munin-cron
|
bin/munin-cron
|
||||||
@unexec if cmp -s %D/%%ETCDIR%%/munin.conf.sample %D/%%ETCDIR%%/munin.conf ; then rm -f %D/%%ETCDIR%%/munin.conf ; fi
|
@sample %%ETCDIR%%/munin.conf.sample
|
||||||
%%ETCDIR%%/munin.conf.sample
|
@sample %%ETCDIR%%/static/definitions.html.sample
|
||||||
@exec if [ ! -f %D/%%ETCDIR%%/munin.conf ] ; then cp -p %D/%%ETCDIR%%/munin.conf.sample %D/%%ETCDIR%%/munin.conf ; fi
|
@sample %%ETCDIR%%/static/dynazoom.html.sample
|
||||||
%%ETCDIR%%/static/definitions.html
|
@sample %%ETCDIR%%/static/favicon.ico.sample
|
||||||
%%ETCDIR%%/static/dynazoom.html
|
@sample %%ETCDIR%%/static/formatdate.js.sample
|
||||||
%%ETCDIR%%/static/favicon.ico
|
@sample %%ETCDIR%%/static/logo-h.png.sample
|
||||||
%%ETCDIR%%/static/formatdate.js
|
@sample %%ETCDIR%%/static/logo.png.sample
|
||||||
%%ETCDIR%%/static/logo-h.png
|
@sample %%ETCDIR%%/static/querystring.js.sample
|
||||||
%%ETCDIR%%/static/logo.png
|
@sample %%ETCDIR%%/static/style-1.2.css.sample
|
||||||
%%ETCDIR%%/static/querystring.js
|
@sample %%ETCDIR%%/static/style-new.css.sample
|
||||||
%%ETCDIR%%/static/style-1.2.css
|
@sample %%ETCDIR%%/static/style.css.sample
|
||||||
%%ETCDIR%%/static/style-new.css
|
@sample %%ETCDIR%%/static/zoom.js.sample
|
||||||
%%ETCDIR%%/static/style.css
|
@sample %%ETCDIR%%/templates/munin-categoryview.tmpl.sample
|
||||||
%%ETCDIR%%/static/zoom.js
|
@sample %%ETCDIR%%/templates/munin-comparison-day.tmpl.sample
|
||||||
%%ETCDIR%%/templates/munin-comparison-day.tmpl
|
@sample %%ETCDIR%%/templates/munin-comparison-month.tmpl.sample
|
||||||
%%ETCDIR%%/templates/munin-comparison-month.tmpl
|
@sample %%ETCDIR%%/templates/munin-comparison-week.tmpl.sample
|
||||||
%%ETCDIR%%/templates/munin-comparison-week.tmpl
|
@sample %%ETCDIR%%/templates/munin-comparison-year.tmpl.sample
|
||||||
%%ETCDIR%%/templates/munin-comparison-year.tmpl
|
@sample %%ETCDIR%%/templates/munin-domainview.tmpl.sample
|
||||||
%%ETCDIR%%/templates/munin-categoryview.tmpl
|
@sample %%ETCDIR%%/templates/munin-dynazoom.tmpl.sample
|
||||||
%%ETCDIR%%/templates/munin-dynazoom.tmpl
|
@sample %%ETCDIR%%/templates/munin-nodeview.tmpl.sample
|
||||||
%%ETCDIR%%/templates/munin-domainview.tmpl
|
@sample %%ETCDIR%%/templates/munin-overview.tmpl.sample
|
||||||
%%ETCDIR%%/templates/munin-nodeview.tmpl
|
@sample %%ETCDIR%%/templates/munin-problemview.tmpl.sample
|
||||||
%%ETCDIR%%/templates/munin-overview.tmpl
|
@sample %%ETCDIR%%/templates/munin-serviceview.tmpl.sample
|
||||||
%%ETCDIR%%/templates/munin-problemview.tmpl
|
@sample %%ETCDIR%%/templates/partial/bottom_navigation.tmpl.sample
|
||||||
%%ETCDIR%%/templates/munin-serviceview.tmpl
|
@sample %%ETCDIR%%/templates/partial/footer.tmpl.sample
|
||||||
%%ETCDIR%%/templates/partial/bottom_navigation.tmpl
|
@sample %%ETCDIR%%/templates/partial/generated_by.tmpl.sample
|
||||||
%%ETCDIR%%/templates/partial/footer.tmpl
|
@sample %%ETCDIR%%/templates/partial/head.tmpl.sample
|
||||||
%%ETCDIR%%/templates/partial/generated_by.tmpl
|
@sample %%ETCDIR%%/templates/partial/logo_navigation.tmpl.sample
|
||||||
%%ETCDIR%%/templates/partial/head.tmpl
|
@sample %%ETCDIR%%/templates/partial/logo_navigation_comparison.tmpl.sample
|
||||||
%%ETCDIR%%/templates/partial/logo_navigation.tmpl
|
@sample %%ETCDIR%%/templates/partial/logo_navigation_problem.tmpl.sample
|
||||||
%%ETCDIR%%/templates/partial/logo_navigation_comparison.tmpl
|
@sample %%ETCDIR%%/templates/partial/logo_path.tmpl.sample
|
||||||
%%ETCDIR%%/templates/partial/logo_navigation_problem.tmpl
|
@sample %%ETCDIR%%/templates/partial/navigation.tmpl.sample
|
||||||
%%ETCDIR%%/templates/partial/logo_path.tmpl
|
@sample %%ETCDIR%%/templates/partial/path.tmpl.sample
|
||||||
%%ETCDIR%%/templates/partial/navigation.tmpl
|
|
||||||
%%ETCDIR%%/templates/partial/path.tmpl
|
|
||||||
%%SITE_PERL%%/Munin/Master/Config.pm
|
%%SITE_PERL%%/Munin/Master/Config.pm
|
||||||
%%SITE_PERL%%/Munin/Master/GraphOld.pm
|
%%SITE_PERL%%/Munin/Master/GraphOld.pm
|
||||||
%%SITE_PERL%%/Munin/Master/Group.pm
|
%%SITE_PERL%%/Munin/Master/Group.pm
|
||||||
|
@ -50,6 +48,25 @@ bin/munin-cron
|
||||||
%%SITE_PERL%%/Munin/Master/UpdateWorker.pm
|
%%SITE_PERL%%/Munin/Master/UpdateWorker.pm
|
||||||
%%SITE_PERL%%/Munin/Master/Utils.pm
|
%%SITE_PERL%%/Munin/Master/Utils.pm
|
||||||
%%SITE_PERL%%/Munin/Master/Worker.pm
|
%%SITE_PERL%%/Munin/Master/Worker.pm
|
||||||
|
man/man3/Munin::Master::Config.3.gz
|
||||||
|
man/man3/Munin::Master::Group.3.gz
|
||||||
|
man/man3/Munin::Master::GroupRepository.3.gz
|
||||||
|
man/man3/Munin::Master::HTMLOld.3.gz
|
||||||
|
man/man3/Munin::Master::Host.3.gz
|
||||||
|
man/man3/Munin::Master::LimitsOld.3.gz
|
||||||
|
man/man3/Munin::Master::Logger.3.gz
|
||||||
|
man/man3/Munin::Master::Node.3.gz
|
||||||
|
man/man3/Munin::Master::ProcessManager.3.gz
|
||||||
|
man/man3/Munin::Master::Update.3.gz
|
||||||
|
man/man3/Munin::Master::UpdateWorker.3.gz
|
||||||
|
man/man3/Munin::Master::Utils.3.gz
|
||||||
|
man/man3/Munin::Master::Worker.3.gz
|
||||||
|
man/man5/munin.conf.5.gz
|
||||||
|
man/man8/munin-cron.8.gz
|
||||||
|
man/man8/munin-graph.8.gz
|
||||||
|
man/man8/munin-html.8.gz
|
||||||
|
man/man8/munin-limits.8.gz
|
||||||
|
man/man8/munin-update.8.gz
|
||||||
%%DATADIR%%/DejaVuSans.ttf
|
%%DATADIR%%/DejaVuSans.ttf
|
||||||
%%DATADIR%%/DejaVuSansMono.ttf
|
%%DATADIR%%/DejaVuSansMono.ttf
|
||||||
%%DATADIR%%/munin-datafile2storable
|
%%DATADIR%%/munin-datafile2storable
|
||||||
|
@ -58,19 +75,16 @@ bin/munin-cron
|
||||||
%%DATADIR%%/munin-limits
|
%%DATADIR%%/munin-limits
|
||||||
%%DATADIR%%/munin-storable2datafile
|
%%DATADIR%%/munin-storable2datafile
|
||||||
%%DATADIR%%/munin-update
|
%%DATADIR%%/munin-update
|
||||||
%%WWWDIR%%/.htaccess
|
|
||||||
www/cgi-bin/munin-cgi-graph
|
www/cgi-bin/munin-cgi-graph
|
||||||
www/cgi-bin/munin-cgi-html
|
www/cgi-bin/munin-cgi-html
|
||||||
@dirrmtry www/cgi-bin
|
@sample %%WWWDIR%%/.htaccess.sample
|
||||||
@dirrmtry %%WWWDIR%%
|
@dirrmtry %%ETCDIR%%/munin-conf.d
|
||||||
@dirrmtry %%DATADIR%%
|
|
||||||
@dirrm %%SITE_PERL%%/Munin/Master
|
|
||||||
@dirrmtry %%SITE_PERL%%/Munin
|
|
||||||
@dirrmtry %%ETCDIR%%/static
|
@dirrmtry %%ETCDIR%%/static
|
||||||
@dirrmtry %%ETCDIR%%/templates/partial
|
@dirrmtry %%ETCDIR%%/templates/partial
|
||||||
@dirrmtry %%ETCDIR%%/templates
|
@dirrmtry %%ETCDIR%%/templates
|
||||||
@exec mkdir -p %D/%%ETCDIR%%/munin-conf.d
|
|
||||||
@dirrmtry %%ETCDIR%%/munin-conf.d
|
|
||||||
@dirrmtry %%ETCDIR%%
|
@dirrmtry %%ETCDIR%%
|
||||||
@cwd /var
|
@dirrmtry %%SITE_PERL%%/Munin/Master
|
||||||
@dirrmtry munin/cgi-tmp
|
@dirrmtry %%DATADIR%%
|
||||||
|
@dirrmtry www/cgi-bin
|
||||||
|
@dirrmtry(%%USER%%,%%GROUP%%,) %%WWWDIR%%
|
||||||
|
@dirrmtry(%%WWWOWN%%,%%WWWGRP%%,) %%DBDIRNODE%%/cgi-tmp
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
PORTNAME= munin
|
PORTNAME= munin
|
||||||
PORTVERSION= ${MUNIN_VERSION}
|
PORTVERSION= ${MUNIN_VERSION}
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= sysutils perl5
|
CATEGORIES= sysutils perl5
|
||||||
MASTER_SITES= ${MUNIN_SITES}
|
MASTER_SITES= ${MUNIN_SITES}
|
||||||
PKGNAMESUFFIX= -node
|
PKGNAMESUFFIX= -node
|
||||||
|
@ -23,57 +23,30 @@ RUN_DEPENDS= p5-Cache-Cache>=0:${PORTSDIR}/devel/p5-Cache-Cache \
|
||||||
p5-Net-CIDR>=0:${PORTSDIR}/net-mgmt/p5-Net-CIDR \
|
p5-Net-CIDR>=0:${PORTSDIR}/net-mgmt/p5-Net-CIDR \
|
||||||
bash:${PORTSDIR}/shells/bash
|
bash:${PORTSDIR}/shells/bash
|
||||||
|
|
||||||
DISTINFO_FILE= ${MUNIN_DISTINFO}
|
|
||||||
EXTRA_PATCHES+= ${MUNIN_PATCHES}
|
|
||||||
USES= gmake perl5 shebangfix
|
USES= gmake perl5 shebangfix
|
||||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||||
REINPLACE_ARGS= -i ""
|
REINPLACE_ARGS= -i ""
|
||||||
SHEBANG_FILES= node/sbin/munin-node
|
SHEBANG_FILES= node/sbin/munin-node node/sbin/munin-sched \
|
||||||
|
node/sbin/munin-run node/sbin/munin-node-configure
|
||||||
|
|
||||||
NO_STAGE= yes
|
|
||||||
.include "${.CURDIR}/../munin-common/munin.mk"
|
.include "${.CURDIR}/../munin-common/munin.mk"
|
||||||
|
|
||||||
|
DISTINFO_FILE= ${MUNIN_DISTINFO}
|
||||||
|
EXTRA_PATCHES+= ${MUNIN_PATCHES}
|
||||||
ALL_TARGET= build-node build-plugins
|
ALL_TARGET= build-node build-plugins
|
||||||
INSTALL_TARGET= install-node-prime install-plugins-prime
|
INSTALL_TARGET= install-node-prime install-plugins-prime
|
||||||
|
|
||||||
OPTIONS_DEFINE= SNMP
|
OPTIONS_DEFINE= SNMP JAVA
|
||||||
OPTIONS_DEFAULT= SNMP
|
OPTIONS_DEFAULT= SNMP
|
||||||
SNMP_DESC= Include support for SNMP plugins
|
OPTIONS_SUB= yes
|
||||||
|
SNMP_DESC= Include SNMP plugins
|
||||||
|
JAVA_DESC= Include JAVA plugins
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
SNMP_BUILD_DEPENDS+= p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP
|
||||||
|
SNMP_RUN_DEPENDS+= p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP
|
||||||
.if ${PORT_OPTIONS:MSNMP}
|
JAVA_USE= java=yes
|
||||||
BUILD_DEPENDS+= p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP
|
JAVA_INSTALL_TARGET= install-plugins-java
|
||||||
RUN_DEPENDS+= p5-Net-SNMP>=0:${PORTSDIR}/net-mgmt/p5-Net-SNMP
|
JAVA_BUILD= yes
|
||||||
.endif
|
|
||||||
|
|
||||||
MAN1= munin-node-configure.1 \
|
|
||||||
munin-node.1 \
|
|
||||||
munin-run.1 \
|
|
||||||
munin-sched.1 \
|
|
||||||
munindoc.1
|
|
||||||
MAN3_NODE= Munin::Node::Config.3 \
|
|
||||||
Munin::Node::Configure::Debug.3 \
|
|
||||||
Munin::Node::Configure::History.3 \
|
|
||||||
Munin::Node::Configure::HostEnumeration.3 \
|
|
||||||
Munin::Node::Configure::Plugin.3 \
|
|
||||||
Munin::Node::Configure::PluginList.3 \
|
|
||||||
Munin::Node::Logger.3 \
|
|
||||||
Munin::Node::OS.3 \
|
|
||||||
Munin::Node::ProxySpooler.3 \
|
|
||||||
Munin::Node::SNMPConfig.3 \
|
|
||||||
Munin::Node::Server.3 \
|
|
||||||
Munin::Node::Service.3 \
|
|
||||||
Munin::Node::Session.3 \
|
|
||||||
Munin::Node::SpoolReader.3 \
|
|
||||||
Munin::Node::SpoolWriter.3 \
|
|
||||||
Munin::Node::Utils.3
|
|
||||||
MAN3_PLUGIN= Munin::Plugin.3 \
|
|
||||||
Munin::Plugin::Pgsql.3 \
|
|
||||||
Munin::Plugin::SNMP.3
|
|
||||||
MAN3= ${MAN3_NODE} ${MAN3_PLUGIN}
|
|
||||||
MAN5= munin-node.conf.5
|
|
||||||
MAN8= munin.8
|
|
||||||
|
|
||||||
SUB_FILES= pkg-message
|
SUB_FILES= pkg-message
|
||||||
USE_RC_SUBR= munin-node munin-sched
|
USE_RC_SUBR= munin-node munin-sched
|
||||||
|
@ -92,43 +65,20 @@ post-patch:
|
||||||
${WRKSRC}/Makefile.config
|
${WRKSRC}/Makefile.config
|
||||||
@${FIND} ${WRKSRC}/node/sbin -type f -name "*.orig" -delete
|
@${FIND} ${WRKSRC}/node/sbin -type f -name "*.orig" -delete
|
||||||
|
|
||||||
pre-su-install:
|
|
||||||
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
|
|
||||||
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
@${INSTALL_SCRIPT} ${WRKDIR}/munin-node \
|
${MKDIR} ${STAGEDIR}${DBDIR}/plugin-state
|
||||||
${PREFIX}/etc/rc.d/munin-node
|
${INSTALL_SCRIPT} ${WRKDIR}/munin-node \
|
||||||
@${INSTALL_DATA} ${WRKSRC}/build/node/munin-node.conf \
|
${STAGEDIR}${PREFIX}/etc/rc.d/munin-node
|
||||||
${ETCDIR}/munin-node.conf.sample
|
${INSTALL_DATA} ${WRKSRC}/build/node/munin-node.conf \
|
||||||
@if [ ! -f ${ETCDIR}/munin-node.conf ]; then \
|
${STAGEDIR}${ETCDIR}/munin-node.conf.sample
|
||||||
${INSTALL_DATA} ${ETCDIR}/munin-node.conf.sample \
|
${INSTALL_DATA} ${FILESDIR}/plugins.conf \
|
||||||
${ETCDIR}/munin-node.conf; \
|
${STAGEDIR}${ETCDIR}/plugin-conf.d/plugins.conf.sample
|
||||||
fi
|
(cd ${WRKSRC}/node/blib/bindoc; \
|
||||||
@${INSTALL_DATA} ${FILESDIR}/plugins.conf \
|
${INSTALL_MAN} munin-node-configure.1 munin-node.1 munin-run.1 munin-sched.1 munindoc.1 ${STAGEDIR}${MAN1PREFIX}/man/man1; \
|
||||||
${ETCDIR}/plugin-conf.d/plugins.conf.sample
|
)
|
||||||
@if [ ! -f ${ETCDIR}/plugin-conf.d/plugins.conf ]; then \
|
(cd ${WRKSRC}/build/doc; \
|
||||||
${INSTALL_DATA} ${ETCDIR}/plugin-conf.d/plugins.conf.sample \
|
${INSTALL_MAN} munin-node.conf.5 ${STAGEDIR}${MAN5PREFIX}/man/man5; \
|
||||||
${ETCDIR}/plugin-conf.d/plugins.conf; \
|
${INSTALL_MAN} munin.8 ${STAGEDIR}${MAN8PREFIX}/man/man8; \
|
||||||
fi
|
)
|
||||||
@(cd ${WRKSRC}/node/blib/bindoc && for man in ${MAN1}; do \
|
|
||||||
${INSTALL_MAN} -C $$man ${PREFIX}/man/man1; \
|
|
||||||
done)
|
|
||||||
@(cd ${WRKSRC}/node/blib/libdoc && for man in ${MAN3_NODE}; do \
|
|
||||||
${INSTALL_MAN} -C $$man ${PREFIX}/man/man3; \
|
|
||||||
done)
|
|
||||||
@(cd ${WRKSRC}/plugins/blib/libdoc && for man in ${MAN3_PLUGIN}; do \
|
|
||||||
${INSTALL_MAN} -C $$man ${PREFIX}/man/man3; \
|
|
||||||
done)
|
|
||||||
@(cd ${WRKSRC}/build/doc && for man in ${MAN5}; do \
|
|
||||||
${INSTALL_MAN} -C $$man ${PREFIX}/man/man5; \
|
|
||||||
done)
|
|
||||||
@(cd ${WRKSRC}/build/doc && for man in ${MAN8}; do \
|
|
||||||
${INSTALL_MAN} -C $$man ${PREFIX}/man/man8; \
|
|
||||||
done)
|
|
||||||
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
|
|
||||||
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
||||||
@${ECHO} ${PORTVERSION} > /tmp/.munin-node.version
|
|
||||||
@${CAT} ${PKGMESSAGE}
|
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
--- ./node/munin-node.conf.in.orig 2011-02-17 00:25:32.000000000 +0100
|
--- node/munin-node.conf.in.orig 2013-07-19 16:30:03 UTC
|
||||||
+++ ./node/munin-node.conf.in 2011-02-17 00:25:47.000000000 +0100
|
+++ node/munin-node.conf.in
|
||||||
@@ -10,7 +10,7 @@
|
@@ -10,7 +10,7 @@
|
||||||
setsid 1
|
setsid 1
|
||||||
|
|
||||||
|
@ -7,9 +7,9 @@
|
||||||
-group root
|
-group root
|
||||||
+group wheel
|
+group wheel
|
||||||
|
|
||||||
# Regexps for files to ignore
|
# This is the timeout for the whole transaction.
|
||||||
|
# Units are in sec. Default is 15 min
|
||||||
@@ -22,6 +22,7 @@
|
@@ -30,6 +30,7 @@
|
||||||
ignore_file \.dpkg-(tmp|new|old|dist)$
|
ignore_file \.dpkg-(tmp|new|old|dist)$
|
||||||
ignore_file \.rpm(save|new)$
|
ignore_file \.rpm(save|new)$
|
||||||
ignore_file \.pod$
|
ignore_file \.pod$
|
|
@ -1,6 +1,6 @@
|
||||||
--- plugins/node.d.freebsd/if_.in.orig 2009-12-30 13:55:55.000000000 +0100
|
--- plugins/node.d.freebsd/if_.in.orig 2013-07-19 16:30:03 UTC
|
||||||
+++ plugins/node.d.freebsd/if_.in 2010-02-24 18:59:15.670282185 +0100
|
+++ plugins/node.d.freebsd/if_.in
|
||||||
@@ -81,9 +81,12 @@
|
@@ -83,9 +83,12 @@
|
||||||
if (NF == 10) {
|
if (NF == 10) {
|
||||||
print "rbytes.value", $6;
|
print "rbytes.value", $6;
|
||||||
print "obytes.value", $9;
|
print "obytes.value", $9;
|
|
@ -1,5 +1,5 @@
|
||||||
--- plugins/node.d.freebsd/if_errcoll_.in.orig 2009-12-30 13:55:55.000000000 +0100
|
--- plugins/node.d.freebsd/if_errcoll_.in.orig 2013-07-19 16:30:03 UTC
|
||||||
+++ plugins/node.d.freebsd/if_errcoll_.in 2010-02-24 19:00:26.026407278 +0100
|
+++ plugins/node.d.freebsd/if_errcoll_.in
|
||||||
@@ -59,9 +59,13 @@
|
@@ -59,9 +59,13 @@
|
||||||
print "ierrors.value", $5;
|
print "ierrors.value", $5;
|
||||||
print "oerrors.value", $8;
|
print "oerrors.value", $8;
|
|
@ -1,5 +1,5 @@
|
||||||
--- ./plugins/node.d.freebsd/iostat.in.orig 2012-07-11 14:14:27.841196443 +0200
|
--- plugins/node.d.freebsd/iostat.in.orig 2013-07-19 16:30:03 UTC
|
||||||
+++ ./plugins/node.d.freebsd/iostat.in 2012-07-11 14:14:32.619552027 +0200
|
+++ plugins/node.d.freebsd/iostat.in
|
||||||
@@ -56,13 +56,11 @@
|
@@ -56,13 +56,11 @@
|
||||||
for d in $drives; do
|
for d in $drives; do
|
||||||
echo "${d}_read.label ${d}"
|
echo "${d}_read.label ${d}"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
--- plugins/node.d/hddtemp_smartctl.in.orig 2012-09-11 11:26:15.928249255 +0200
|
--- plugins/node.d/hddtemp_smartctl.in.orig 2013-07-19 16:30:03 UTC
|
||||||
+++ plugins/node.d/hddtemp_smartctl.in 2012-09-11 11:26:48.947249274 +0200
|
+++ plugins/node.d/hddtemp_smartctl.in
|
||||||
@@ -151,7 +151,7 @@
|
@@ -162,7 +162,7 @@
|
||||||
# without probing them.
|
|
||||||
} elsif ($^O eq 'freebsd') {
|
} elsif ($^O eq 'freebsd') {
|
||||||
opendir(DEV, '/dev');
|
opendir(DEV, '/dev');
|
||||||
- @drives = grep /^ad[0-9]+$/, readdir DEV;
|
- @drives = grep /^ad[0-9]+$/, readdir DEV;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- ./plugins/node.d/squeezebox_.in.orig 2012-08-14 17:19:40.000000000 +0200
|
--- plugins/node.d/squeezebox_.in.orig 2013-07-19 16:30:03 UTC
|
||||||
+++ ./plugins/node.d/squeezebox_.in 2012-08-27 13:55:40.573530762 +0200
|
+++ plugins/node.d/squeezebox_.in
|
||||||
@@ -156,7 +156,7 @@
|
@@ -157,7 +157,7 @@
|
||||||
printf "graph_order y"
|
printf "graph_order y"
|
||||||
echo $years_array | sed 's/ / y/g'
|
echo $years_array | sed 's/ / y/g'
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
year=$(echo ${arr1[$i]})
|
year=$(echo ${arr1[$i]})
|
||||||
if [ $year = 0 ]; then
|
if [ $year = 0 ]; then
|
||||||
echo y0.label No year
|
echo y0.label No year
|
||||||
@@ -171,7 +171,7 @@
|
@@ -172,7 +172,7 @@
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
year=$(echo ${arr1[$i]})
|
year=$(echo ${arr1[$i]})
|
||||||
printf "y%s.value " ${year}
|
printf "y%s.value " ${year}
|
||||||
printf "%b" "albums 0 0 year:${year}\nexit\n" | $NC $HOST $PORT | sed 's/%3A/:/g' | cut -d ':' -f 3
|
printf "%b" "albums 0 0 year:${year}\nexit\n" | $NC $HOST $PORT | sed 's/%3A/:/g' | cut -d ':' -f 3
|
||||||
@@ -182,7 +182,7 @@
|
@@ -183,7 +183,7 @@
|
||||||
echo "graph_category Squeezebox"
|
echo "graph_category Squeezebox"
|
||||||
COUNT=$(printf "%b" "player count ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 3)
|
COUNT=$(printf "%b" "player count ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 3)
|
||||||
(( COUNT-- ))
|
(( COUNT-- ))
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
MAC=$(printf "%b" "player id $ID ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 4 | sed 's/%3A/:/g')
|
MAC=$(printf "%b" "player id $ID ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 4 | sed 's/%3A/:/g')
|
||||||
NAME=$(printf "%b" "player name $MAC ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 4 | sed 's/%20/ /g')
|
NAME=$(printf "%b" "player name $MAC ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 4 | sed 's/%20/ /g')
|
||||||
MAC2=$(echo $MAC | sed 's/://g; s/\./_/g')
|
MAC2=$(echo $MAC | sed 's/://g; s/\./_/g')
|
||||||
@@ -192,7 +192,7 @@
|
@@ -193,7 +193,7 @@
|
||||||
fi
|
fi
|
||||||
COUNT=$(printf "%b" "player count ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 3)
|
COUNT=$(printf "%b" "player count ?\nexit\n" | $NC $HOST $PORT | cut -d " " -f 3)
|
||||||
(( COUNT-- ))
|
(( COUNT-- ))
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
@stopdaemon munin-node
|
|
||||||
bin/munindoc
|
bin/munindoc
|
||||||
@unexec if cmp -s %D/%%ETCDIR%%/munin-node.conf.sample %D/%%ETCDIR%%/munin-node.conf ; then rm -f %D/%%ETCDIR%%/munin-node.conf ; fi
|
@sample %%ETCDIR%%/munin-node.conf.sample
|
||||||
%%ETCDIR%%/munin-node.conf.sample
|
@sample %%ETCDIR%%/plugin-conf.d/plugins.conf.sample
|
||||||
@exec if [ ! -f %D/%%ETCDIR%%/munin-node.conf ] ; then cp -p %D/%%ETCDIR%%/munin-node.conf.sample %D/%%ETCDIR%%/munin-node.conf ; fi
|
|
||||||
@unexec if cmp -s %D/%%ETCDIR%%/plugin-conf.d/plugins.conf.sample %D/%%ETCDIR%%/plugin-conf.d/plugins.conf ; then rm -f %D/%%ETCDIR%%/plugin-conf.d/plugins.conf ; fi
|
|
||||||
%%ETCDIR%%/plugin-conf.d/plugins.conf.sample
|
|
||||||
@exec if [ ! -f %D/%%ETCDIR%%/plugin-conf.d/plugins.conf ] ; then cp -p %D/%%ETCDIR%%/plugin-conf.d/plugins.conf.sample %D/%%ETCDIR%%/plugin-conf.d/plugins.conf ; fi
|
|
||||||
%%SITE_PERL%%/Munin/Node/Config.pm
|
%%SITE_PERL%%/Munin/Node/Config.pm
|
||||||
%%SITE_PERL%%/Munin/Node/Configure/Debug.pm
|
%%SITE_PERL%%/Munin/Node/Configure/Debug.pm
|
||||||
%%SITE_PERL%%/Munin/Node/Configure/History.pm
|
%%SITE_PERL%%/Munin/Node/Configure/History.pm
|
||||||
|
@ -25,10 +20,37 @@ bin/munindoc
|
||||||
%%SITE_PERL%%/Munin/Plugin.pm
|
%%SITE_PERL%%/Munin/Plugin.pm
|
||||||
%%SITE_PERL%%/Munin/Plugin/Pgsql.pm
|
%%SITE_PERL%%/Munin/Plugin/Pgsql.pm
|
||||||
%%SITE_PERL%%/Munin/Plugin/SNMP.pm
|
%%SITE_PERL%%/Munin/Plugin/SNMP.pm
|
||||||
|
man/man1/munin-node-configure.1.gz
|
||||||
|
man/man1/munin-node.1.gz
|
||||||
|
man/man1/munin-run.1.gz
|
||||||
|
man/man1/munin-sched.1.gz
|
||||||
|
man/man1/munindoc.1.gz
|
||||||
|
man/man3/Munin::Node::Config.3.gz
|
||||||
|
man/man3/Munin::Node::Configure::Debug.3.gz
|
||||||
|
man/man3/Munin::Node::Configure::History.3.gz
|
||||||
|
man/man3/Munin::Node::Configure::HostEnumeration.3.gz
|
||||||
|
man/man3/Munin::Node::Configure::Plugin.3.gz
|
||||||
|
man/man3/Munin::Node::Configure::PluginList.3.gz
|
||||||
|
man/man3/Munin::Node::Logger.3.gz
|
||||||
|
man/man3/Munin::Node::OS.3.gz
|
||||||
|
man/man3/Munin::Node::ProxySpooler.3.gz
|
||||||
|
man/man3/Munin::Node::SNMPConfig.3.gz
|
||||||
|
man/man3/Munin::Node::Server.3.gz
|
||||||
|
man/man3/Munin::Node::Service.3.gz
|
||||||
|
man/man3/Munin::Node::Session.3.gz
|
||||||
|
man/man3/Munin::Node::SpoolReader.3.gz
|
||||||
|
man/man3/Munin::Node::SpoolWriter.3.gz
|
||||||
|
man/man3/Munin::Node::Utils.3.gz
|
||||||
|
man/man3/Munin::Plugin.3.gz
|
||||||
|
man/man3/Munin::Plugin::Pgsql.3.gz
|
||||||
|
man/man3/Munin::Plugin::SNMP.3.gz
|
||||||
|
man/man5/munin-node.conf.5.gz
|
||||||
|
man/man8/munin.8.gz
|
||||||
sbin/munin-node
|
sbin/munin-node
|
||||||
sbin/munin-node-configure
|
sbin/munin-node-configure
|
||||||
sbin/munin-run
|
sbin/munin-run
|
||||||
sbin/munin-sched
|
sbin/munin-sched
|
||||||
|
%%JAVA%%%%DATADIR%%/munin-jmx-plugins.jar
|
||||||
%%DATADIR%%/plugins/amavis
|
%%DATADIR%%/plugins/amavis
|
||||||
%%DATADIR%%/plugins/apache_accesses
|
%%DATADIR%%/plugins/apache_accesses
|
||||||
%%DATADIR%%/plugins/apache_processes
|
%%DATADIR%%/plugins/apache_processes
|
||||||
|
@ -86,6 +108,8 @@ sbin/munin-sched
|
||||||
%%DATADIR%%/plugins/ipmi_
|
%%DATADIR%%/plugins/ipmi_
|
||||||
%%DATADIR%%/plugins/ipmi_sensor_
|
%%DATADIR%%/plugins/ipmi_sensor_
|
||||||
%%DATADIR%%/plugins/ircu
|
%%DATADIR%%/plugins/ircu
|
||||||
|
%%JAVA%%%%DATADIR%%/plugins/jmx_
|
||||||
|
%%JAVA%%%%DATADIR%%/plugins/jmx_tomcat_dbpools
|
||||||
%%DATADIR%%/plugins/load
|
%%DATADIR%%/plugins/load
|
||||||
%%DATADIR%%/plugins/loggrep
|
%%DATADIR%%/plugins/loggrep
|
||||||
%%DATADIR%%/plugins/lpstat
|
%%DATADIR%%/plugins/lpstat
|
||||||
|
@ -168,35 +192,35 @@ sbin/munin-sched
|
||||||
%%DATADIR%%/plugins/slapd_bdb_cache_
|
%%DATADIR%%/plugins/slapd_bdb_cache_
|
||||||
%%DATADIR%%/plugins/slony_lag_
|
%%DATADIR%%/plugins/slony_lag_
|
||||||
%%DATADIR%%/plugins/smart_
|
%%DATADIR%%/plugins/smart_
|
||||||
%%DATADIR%%/plugins/snmp__cpuload
|
%%SNMP%%%%DATADIR%%/plugins/snmp__cpuload
|
||||||
%%DATADIR%%/plugins/snmp__df
|
%%SNMP%%%%DATADIR%%/plugins/snmp__df
|
||||||
%%DATADIR%%/plugins/snmp__df_ram
|
%%SNMP%%%%DATADIR%%/plugins/snmp__df_ram
|
||||||
%%DATADIR%%/plugins/snmp__fc_if_
|
%%SNMP%%%%DATADIR%%/plugins/snmp__fc_if_
|
||||||
%%DATADIR%%/plugins/snmp__fc_if_err_
|
%%SNMP%%%%DATADIR%%/plugins/snmp__fc_if_err_
|
||||||
%%DATADIR%%/plugins/snmp__if_
|
%%SNMP%%%%DATADIR%%/plugins/snmp__if_
|
||||||
%%DATADIR%%/plugins/snmp__if_err_
|
%%SNMP%%%%DATADIR%%/plugins/snmp__if_err_
|
||||||
%%DATADIR%%/plugins/snmp__if_multi
|
%%SNMP%%%%DATADIR%%/plugins/snmp__if_multi
|
||||||
%%DATADIR%%/plugins/snmp__load
|
%%SNMP%%%%DATADIR%%/plugins/snmp__load
|
||||||
%%DATADIR%%/plugins/snmp__memory
|
%%SNMP%%%%DATADIR%%/plugins/snmp__memory
|
||||||
%%DATADIR%%/plugins/snmp__netapp_diskusage_
|
%%SNMP%%%%DATADIR%%/plugins/snmp__netapp_diskusage_
|
||||||
%%DATADIR%%/plugins/snmp__netapp_inodeusage_
|
%%SNMP%%%%DATADIR%%/plugins/snmp__netapp_inodeusage_
|
||||||
%%DATADIR%%/plugins/snmp__netstat
|
%%SNMP%%%%DATADIR%%/plugins/snmp__netstat
|
||||||
%%DATADIR%%/plugins/snmp__print_pages
|
%%SNMP%%%%DATADIR%%/plugins/snmp__print_pages
|
||||||
%%DATADIR%%/plugins/snmp__print_supplies
|
%%SNMP%%%%DATADIR%%/plugins/snmp__print_supplies
|
||||||
%%DATADIR%%/plugins/snmp__processes
|
%%SNMP%%%%DATADIR%%/plugins/snmp__processes
|
||||||
%%DATADIR%%/plugins/snmp__rdp_users
|
%%SNMP%%%%DATADIR%%/plugins/snmp__rdp_users
|
||||||
%%DATADIR%%/plugins/snmp__sensors_fsc_bx_fan
|
%%SNMP%%%%DATADIR%%/plugins/snmp__sensors_fsc_bx_fan
|
||||||
%%DATADIR%%/plugins/snmp__sensors_fsc_bx_temp
|
%%SNMP%%%%DATADIR%%/plugins/snmp__sensors_fsc_bx_temp
|
||||||
%%DATADIR%%/plugins/snmp__sensors_fsc_fan
|
%%SNMP%%%%DATADIR%%/plugins/snmp__sensors_fsc_fan
|
||||||
%%DATADIR%%/plugins/snmp__sensors_fsc_temp
|
%%SNMP%%%%DATADIR%%/plugins/snmp__sensors_fsc_temp
|
||||||
%%DATADIR%%/plugins/snmp__sensors_mbm_fan
|
%%SNMP%%%%DATADIR%%/plugins/snmp__sensors_mbm_fan
|
||||||
%%DATADIR%%/plugins/snmp__sensors_mbm_temp
|
%%SNMP%%%%DATADIR%%/plugins/snmp__sensors_mbm_temp
|
||||||
%%DATADIR%%/plugins/snmp__sensors_mbm_volt
|
%%SNMP%%%%DATADIR%%/plugins/snmp__sensors_mbm_volt
|
||||||
%%DATADIR%%/plugins/snmp__swap
|
%%SNMP%%%%DATADIR%%/plugins/snmp__swap
|
||||||
%%DATADIR%%/plugins/snmp__uptime
|
%%SNMP%%%%DATADIR%%/plugins/snmp__uptime
|
||||||
%%DATADIR%%/plugins/snmp__users
|
%%SNMP%%%%DATADIR%%/plugins/snmp__users
|
||||||
%%DATADIR%%/plugins/snmp__winload
|
%%SNMP%%%%DATADIR%%/plugins/snmp__winload
|
||||||
%%DATADIR%%/plugins/snmp__winmem
|
%%SNMP%%%%DATADIR%%/plugins/snmp__winmem
|
||||||
%%DATADIR%%/plugins/snort_alerts
|
%%DATADIR%%/plugins/snort_alerts
|
||||||
%%DATADIR%%/plugins/snort_bytes_pkt
|
%%DATADIR%%/plugins/snort_bytes_pkt
|
||||||
%%DATADIR%%/plugins/snort_drop_rate
|
%%DATADIR%%/plugins/snort_drop_rate
|
||||||
|
@ -224,16 +248,12 @@ sbin/munin-sched
|
||||||
%%DATADIR%%/plugins/varnish_
|
%%DATADIR%%/plugins/varnish_
|
||||||
%%DATADIR%%/plugins/vmstat
|
%%DATADIR%%/plugins/vmstat
|
||||||
%%DATADIR%%/plugins/zimbra_
|
%%DATADIR%%/plugins/zimbra_
|
||||||
@dirrm %%DATADIR%%/plugins
|
|
||||||
@dirrmtry %%DATADIR%%
|
|
||||||
@dirrm %%SITE_PERL%%/Munin/Plugin
|
|
||||||
@dirrm %%SITE_PERL%%/Munin/Node/Configure
|
|
||||||
@dirrm %%SITE_PERL%%/Munin/Node
|
|
||||||
@dirrmtry %%SITE_PERL%%/Munin
|
|
||||||
@exec mkdir -p %D/%%ETCDIR%%/plugins
|
|
||||||
@dirrmtry %%ETCDIR%%/plugins
|
|
||||||
@exec mkdir -p %D/%%ETCDIR%%/plugin-conf.d
|
|
||||||
@dirrmtry %%ETCDIR%%/plugin-conf.d
|
@dirrmtry %%ETCDIR%%/plugin-conf.d
|
||||||
|
@dirrmtry %%ETCDIR%%/plugins
|
||||||
@dirrmtry %%ETCDIR%%
|
@dirrmtry %%ETCDIR%%
|
||||||
@cwd /var
|
@dirrmtry %%SITE_PERL%%/Munin/Node/Configure
|
||||||
@dirrmtry munin/plugin-state
|
@dirrmtry %%SITE_PERL%%/Munin/Node
|
||||||
|
@dirrmtry %%SITE_PERL%%/Munin/Plugin
|
||||||
|
@dirrmtry %%DATADIR%%/plugins
|
||||||
|
@dirrmtry %%DATADIR%%
|
||||||
|
@dirrmtry(%%USER%%,%%GROUP%%,) %%DBDIR%%/plugin-state
|
||||||
|
|
Loading…
Add table
Reference in a new issue