svn commit: r312351 - in head/sysutils: munin-common munin-master munin-node munin-node/files
Florian Smeets
flo at FreeBSD.org
Sat Feb 16 13:30:44 UTC 2013
Author: flo
Date: Sat Feb 16 13:30:41 2013
New Revision: 312351
URL: http://svnweb.freebsd.org/changeset/ports/312351
Log:
- update to 2.0.11.1
- a couple of rc script fixes [1]
Submitted by: crees [1]
Deleted:
head/sysutils/munin-node/files/munin-node-revive.sh.in
Modified:
head/sysutils/munin-common/distinfo
head/sysutils/munin-common/munin.mk
head/sysutils/munin-master/Makefile
head/sysutils/munin-master/pkg-plist
head/sysutils/munin-node/Makefile
head/sysutils/munin-node/files/munin-node.in (contents, props changed)
head/sysutils/munin-node/files/munin-sched.in (contents, props changed)
head/sysutils/munin-node/pkg-deinstall (contents, props changed)
head/sysutils/munin-node/pkg-install (contents, props changed)
head/sysutils/munin-node/pkg-plist
Modified: head/sysutils/munin-common/distinfo
==============================================================================
--- head/sysutils/munin-common/distinfo Sat Feb 16 13:22:37 2013 (r312350)
+++ head/sysutils/munin-common/distinfo Sat Feb 16 13:30:41 2013 (r312351)
@@ -1,2 +1,2 @@
-SHA256 (munin-2.0.9.tar.gz) = 6bb2b42de29a438ad80f1d6c53f4a35e9a74cb5a2103ea7a9530cba2d75c7309
-SIZE (munin-2.0.9.tar.gz) = 1328972
+SHA256 (munin-2.0.11.1.tar.gz) = 89ac6a46e82471206c37ed11a9fe2023cbf4c7482517f70a67d5aa5f32366c18
+SIZE (munin-2.0.11.1.tar.gz) = 1331839
Modified: head/sysutils/munin-common/munin.mk
==============================================================================
--- head/sysutils/munin-common/munin.mk Sat Feb 16 13:22:37 2013 (r312350)
+++ head/sysutils/munin-common/munin.mk Sat Feb 16 13:30:41 2013 (r312351)
@@ -1,5 +1,5 @@
-MUNIN_VERSION= 2.0.9
-MUNIN_SITES= SF/${PORTNAME}/stable/${PORTVERSION}
+MUNIN_VERSION= 2.0.11.1
+MUNIN_SITES= SF/${PORTNAME}/stable/2.0.11
MUNIN_DISTINFO= ${PORTSDIR}/sysutils/munin-common/distinfo
MUNIN_PATCHES= ${PORTSDIR}/sysutils/munin-common/files/patch-Makefile \
${PORTSDIR}/sysutils/munin-common/files/patch-Makefile.config
Modified: head/sysutils/munin-master/Makefile
==============================================================================
--- head/sysutils/munin-master/Makefile Sat Feb 16 13:22:37 2013 (r312350)
+++ head/sysutils/munin-master/Makefile Sat Feb 16 13:30:41 2013 (r312351)
@@ -57,6 +57,7 @@ MAN3= Munin::Master::Config.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 \
Modified: head/sysutils/munin-master/pkg-plist
==============================================================================
--- head/sysutils/munin-master/pkg-plist Sat Feb 16 13:22:37 2013 (r312350)
+++ head/sysutils/munin-master/pkg-plist Sat Feb 16 13:30:41 2013 (r312351)
@@ -64,8 +64,6 @@ www/cgi-bin/munin-cgi-html
@dirrmtry www/cgi-bin
@dirrmtry %%WWWDIR%%
@dirrmtry %%DATADIR%%
- at dirrmtry %%DBDIR%%/cgi-tmp
- at dirrmtry %%DBDIR%%
@dirrm %%SITE_PERL%%/Munin/Master
@dirrmtry %%SITE_PERL%%/Munin
@dirrmtry %%ETCDIR%%/static
@@ -74,3 +72,5 @@ www/cgi-bin/munin-cgi-html
@exec mkdir -p %D/%%ETCDIR%%/munin-conf.d
@dirrmtry %%ETCDIR%%/munin-conf.d
@dirrmtry %%ETCDIR%%
+ at cwd /var
+ at dirrm munin/cgi-tmp
Modified: head/sysutils/munin-node/Makefile
==============================================================================
--- head/sysutils/munin-node/Makefile Sat Feb 16 13:22:37 2013 (r312350)
+++ head/sysutils/munin-node/Makefile Sat Feb 16 13:30:41 2013 (r312351)
@@ -63,7 +63,7 @@ MAN3= ${MAN3_NODE} ${MAN3_PLUGIN}
MAN5= munin-node.conf.5
MAN8= munin.8
-SUB_FILES= pkg-message munin-node-revive.sh
+SUB_FILES= pkg-message
USE_RC_SUBR= munin-node munin-sched
post-patch:
@@ -109,7 +109,7 @@ post-install:
done)
@${SETENV} ${SCRIPTS_ENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
- @${ECHO} ${PORTVERSION} > ${PREFIX}/etc/munin/VERSION.node
+ @${ECHO} ${PORTVERSION} > /tmp/.munin-node.version
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
Modified: head/sysutils/munin-node/files/munin-node.in
==============================================================================
--- head/sysutils/munin-node/files/munin-node.in Sat Feb 16 13:22:37 2013 (r312350)
+++ head/sysutils/munin-node/files/munin-node.in Sat Feb 16 13:30:41 2013 (r312351)
@@ -1,10 +1,11 @@
#!/bin/sh
#
-
+# $FreeBSD$
+#
# PROVIDE: munin-node
# REQUIRE: DAEMON
# BEFORE: cron
-
+# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable munin-node:
# munin_node_enable (bool): Set to "NO" by default.
@@ -17,12 +18,25 @@
name="munin_node"
rcvar=munin_node_enable
-[ -z "$munin_node_enable" ] && munin_node_enable="NO"
-[ -z "$munin_node_config" ] && munin_node_config="%%PREFIX%%/etc/munin/munin-node.conf"
+load_rc_config $name
+
+: ${munin_node_enable:=NO}
+: ${munin_node_config="%%PREFIX%%/etc/munin/munin-node.conf"}
command="%%PREFIX%%/sbin/munin-node"
-command_interpreter="%%PERL%%"
-pidfile=`awk '$1 == "pid_file" { print $2 }' $munin_node_config`
+command_interpreter="/usr/bin/perl"
+start_precmd=find_pidfile
+status_precmd=find_pidfile
+stop_precmd=find_pidfile
+
+find_pidfile()
+{
+ if type get_pidfile_from_conf >/dev/null 2>&1 &&
+ get_pidfile_from_conf pid_file $munin_node_config; then
+ pidfile="$_pidfile_from_conf"
+ else
+ pidfile=`awk '$1 == "pid_file" { print $2 }' $munin_node_config`
+ fi
+}
-load_rc_config $name
run_rc_command "$1"
Modified: head/sysutils/munin-node/files/munin-sched.in
==============================================================================
--- head/sysutils/munin-node/files/munin-sched.in Sat Feb 16 13:22:37 2013 (r312350)
+++ head/sysutils/munin-node/files/munin-sched.in Sat Feb 16 13:30:41 2013 (r312351)
@@ -1,10 +1,11 @@
#!/bin/sh
#
-
+# $FreeBSD$
+#
# PROVIDE: munin-sched
# REQUIRE: DAEMON
# BEFORE: cron
-
+# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable munin-sched:
# munin_sched_enable (bool): Set to "NO" by default.
@@ -17,11 +18,25 @@
name="munin_sched"
rcvar=munin_sched_enable
-[ -z "$munin_sched_enable" ] && munin_sched_enable="NO"
-[ -z "$munin_sched_config" ] && munin_sched_config="%%PREFIX%%/etc/munin/munin-node.conf"
+load_rc_config $name
+
+: ${munin_sched_enable:=NO}
+: ${munin_sched_config="%%PREFIX%%/etc/munin/munin-node.conf"}
command="%%PREFIX%%/sbin/munin-sched"
-pidfile=`awk '$1 == "pid_file" { gsub("node","sched",$2); print $2; }' $munin_sched_config`
+start_precmd=find_pidfile
+status_precmd=find_pidfile
+stop_precmd=find_pidfile
+
+find_pidfile()
+{
+ if type get_pidfile_from_conf >/dev/null 2>&1 &&
+ get_pidfile_from_conf pid_file $munin_node_config; then
+ pidfile="${_pidfile_from_conf%node*}sched"
+ pidfile="${pidfile}${_pidfile_from_conf#*node}"
+ else
+ pidfile=`awk '$1 == "pid_file" { gsub("node","sched",$2); print $2; }' $munin_sched_config`
+ fi
+}
-load_rc_config $name
run_rc_command "$1"
Modified: head/sysutils/munin-node/pkg-deinstall
==============================================================================
--- head/sysutils/munin-node/pkg-deinstall Sat Feb 16 13:22:37 2013 (r312350)
+++ head/sysutils/munin-node/pkg-deinstall Sat Feb 16 13:30:41 2013 (r312351)
@@ -37,18 +37,6 @@ stop_process() {
fi
}
-delete_crontab_entries() {
- local prog
- prog=$1
-
- if grep -q "^[^#]*$prog" /etc/crontab; then
- TMPFILE=`mktemp -t munin` || exit 1
- grep -v $prog /etc/crontab > $TMPFILE
- cat $TMPFILE > /etc/crontab
- rm $/etc/crontab
- fi
-}
-
delnewsyslog() {
tmp="/etc/#munin-node$$"
sed -e '/^\/var\/log\/munin\/munin-node.log[ ]/d' /etc/newsyslog.conf >${tmp}
@@ -74,7 +62,6 @@ Do you want me to delete it?" y; then
case $2 in
DEINSTALL)
if [ -z "${PACKAGE_BUILDING}" ]; then
- delete_crontab_entries ${PKG_PREFIX}/bin/munin-node-revive
stop_process
newsyslog
fi
Modified: head/sysutils/munin-node/pkg-install
==============================================================================
--- head/sysutils/munin-node/pkg-install Sat Feb 16 13:22:37 2013 (r312350)
+++ head/sysutils/munin-node/pkg-install Sat Feb 16 13:30:41 2013 (r312351)
@@ -30,8 +30,8 @@ yesno() {
}
init_plugins() {
- if [ -f ${PKG_PREFIX}/etc/munin/VERSION.node ]; then
- prevver=$(cat ${PKG_PREFIX}/etc/munin/VERSION.node)
+ if [ -f /tmp/.munin-node.version ]; then
+ prevver=$(cat /tmp/.munin-node.version)
fi
if [ -n "$prevver" ]; then
@@ -73,9 +73,6 @@ newsyslog() {
/var/log/munin/munin-node.log 644 7 * @T00 Z /var/run/munin/munin-node.pid
EOT
fi
- if [ -f ${PKG_PREFIX}/bin/munin-node-revive ]; then
- create_crontab_entries '4 * * * *' ${PKG_PREFIX}/bin/munin-node-revive
- fi
else
echo "/var/log/munin-node.log will grow without bounds."
fi
Modified: head/sysutils/munin-node/pkg-plist
==============================================================================
--- head/sysutils/munin-node/pkg-plist Sat Feb 16 13:22:37 2013 (r312350)
+++ head/sysutils/munin-node/pkg-plist Sat Feb 16 13:30:41 2013 (r312351)
@@ -224,8 +224,6 @@ sbin/munin-sched
%%DATADIR%%/plugins/varnish_
%%DATADIR%%/plugins/vmstat
%%DATADIR%%/plugins/zimbra_
- at dirrmtry %%DBDIR%%/plugin-state
- at dirrmtry %%DBDIR%%
@dirrm %%DATADIR%%/plugins
@dirrmtry %%DATADIR%%
@dirrm %%SITE_PERL%%/Munin/Plugin
@@ -237,3 +235,5 @@ sbin/munin-sched
@exec mkdir -p %D/%%ETCDIR%%/plugin-conf.d
@dirrmtry %%ETCDIR%%/plugin-conf.d
@dirrmtry %%ETCDIR%%
+ at cwd /var
+ at dirrmtry munin/plugin-state
More information about the svn-ports-head
mailing list