From b9b43b47cf7942d92e2497107167a365796325c1 Mon Sep 17 00:00:00 2001 From: Florian Smeets Date: Sat, 26 Oct 2013 10:33:34 +0000 Subject: [PATCH] Add sysutils/minimunin A tiny munin-node implementation for FreeBSD written in pure bourne shell providing basic plugin support WWW: http://erdgeist.org/arts/software/minimunin/ PR: ports/182487 Submitted by: Dirk Engling --- sysutils/Makefile | 1 + sysutils/minimunin/Makefile | 19 +++++++++++++++++++ sysutils/minimunin/distinfo | 2 ++ sysutils/minimunin/files/pkg-message.in | 23 +++++++++++++++++++++++ sysutils/minimunin/pkg-descr | 4 ++++ sysutils/minimunin/pkg-install | 8 ++++++++ 6 files changed, 57 insertions(+) create mode 100644 sysutils/minimunin/Makefile create mode 100644 sysutils/minimunin/distinfo create mode 100644 sysutils/minimunin/files/pkg-message.in create mode 100644 sysutils/minimunin/pkg-descr create mode 100644 sysutils/minimunin/pkg-install diff --git a/sysutils/Makefile b/sysutils/Makefile index fe883b7af2bb..11e554d44c8e 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -512,6 +512,7 @@ SUBDIR += metalog SUBDIR += mfid SUBDIR += mgeupsd + SUBDIR += minimunin SUBDIR += minirsyslogd SUBDIR += mixer SUBDIR += mkfile diff --git a/sysutils/minimunin/Makefile b/sysutils/minimunin/Makefile new file mode 100644 index 000000000000..02615aa2eb23 --- /dev/null +++ b/sysutils/minimunin/Makefile @@ -0,0 +1,19 @@ +# Created by: Dirk Engling +# $FreeBSD$ + +PORTNAME= minimunin +PORTVERSION= 0.1 +CATEGORIES= sysutils +MASTER_SITES= http://erdgeist.org/arts/software/minimunin/ + +MAINTAINER= erdgeist@erdgeist.org +COMMENT= Tiny munin-node implementation written in pure bourne shell + +USE_BZIP2= yes +PLIST_FILES= bin/minimunin +SUB_FILES= pkg-message + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/minimunin ${STAGEDIR}${PREFIX}/bin + +.include diff --git a/sysutils/minimunin/distinfo b/sysutils/minimunin/distinfo new file mode 100644 index 000000000000..479f856dbdc9 --- /dev/null +++ b/sysutils/minimunin/distinfo @@ -0,0 +1,2 @@ +SHA256 (minimunin-0.1.tar.bz2) = 0792db2b5cfde82d27eb5707253a776c26bea35b50e36be48a9c85c17ea3da64 +SIZE (minimunin-0.1.tar.bz2) = 4611 diff --git a/sysutils/minimunin/files/pkg-message.in b/sysutils/minimunin/files/pkg-message.in new file mode 100644 index 000000000000..a9ab3440e93e --- /dev/null +++ b/sysutils/minimunin/files/pkg-message.in @@ -0,0 +1,23 @@ +***************************************************************** +To activate minimunin, add the line + + munin stream tcp nowait nobody /usr/libexec/tcpd %%PREFIX%%/bin/minimunin + +to your /etc/inetd.conf. Alternatively, if you plan to run plugins that require +root permissions (e.g. for changing to a different user via the plugin config), +add + + munin stream tcp nowait root /usr/libexec/tcpd %%PREFIX%%/bin/minimunin + +to your /etc/inetd.conf. In both cases you need to enable inetd by setting + + inetd_enable="YES" + +in your /etc/rc.conf and restart inetd with the + + service inetd start + +command. You may also want to restrict access to your munin node via the +/etc/hosts.allow and /etc/hosts.deny configuration files. + +***************************************************************** diff --git a/sysutils/minimunin/pkg-descr b/sysutils/minimunin/pkg-descr new file mode 100644 index 000000000000..42210d0b6d29 --- /dev/null +++ b/sysutils/minimunin/pkg-descr @@ -0,0 +1,4 @@ +A tiny munin-node implementation for FreeBSD written in pure bourne shell +providing basic plugin support + +WWW: http://erdgeist.org/arts/software/minimunin/ diff --git a/sysutils/minimunin/pkg-install b/sysutils/minimunin/pkg-install new file mode 100644 index 000000000000..1733abbac0b7 --- /dev/null +++ b/sysutils/minimunin/pkg-install @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ "$2" = POSTINSTALL ]; then + echo "updating /etc/services" + (grep -q '^munin ' /etc/services || \ + echo "munin 4949/tcp #munin node"; ) \ + >> /etc/services +fi