From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 27 19:40:11 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0DCC1065670 for ; Sun, 27 Mar 2011 19:40:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7A68B8FC12 for ; Sun, 27 Mar 2011 19:40:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p2RJeBWL048824 for ; Sun, 27 Mar 2011 19:40:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2RJeBdZ048823; Sun, 27 Mar 2011 19:40:11 GMT (envelope-from gnats) Resent-Date: Sun, 27 Mar 2011 19:40:11 GMT Resent-Message-Id: <201103271940.p2RJeBdZ048823@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris Rees Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 341AF1065670 for ; Sun, 27 Mar 2011 19:30:43 +0000 (UTC) (envelope-from crees@zeus.bayofrum.net) Received: from relay.ptn-ipout01.plus.net (relay.ptn-ipout01.plus.net [212.159.7.35]) by mx1.freebsd.org (Postfix) with ESMTP id 16BB98FC18 for ; Sun, 27 Mar 2011 19:30:41 +0000 (UTC) Received: from outmx04.plus.net ([212.159.14.19]) by relay.ptn-ipout01.plus.net with ESMTP; 27 Mar 2011 20:30:40 +0100 Received: from [46.208.63.213] (helo=zeus.bayofrum.net) by outmx04.plus.net with esmtp (Exim) id 1Q3vfW-0002rI-1f for FreeBSD-gnats-submit@freebsd.org; Sun, 27 Mar 2011 20:30:40 +0100 Received: from zeus.bayofrum.net (crees@localhost [127.0.0.1]) by zeus.bayofrum.net (8.14.4/8.14.4) with ESMTP id p2RJTbKU045619 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Sun, 27 Mar 2011 19:29:37 GMT (envelope-from crees@zeus.bayofrum.net) Received: (from crees@localhost) by zeus.bayofrum.net (8.14.4/8.14.4/Submit) id p2RJTZrb045618; Sun, 27 Mar 2011 20:29:35 +0100 (BST) (envelope-from crees) Message-Id: <201103271929.p2RJTZrb045618@zeus.bayofrum.net> Date: Sun, 27 Mar 2011 20:29:35 +0100 (BST) From: Chris Rees To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/155976: [MAINTAINER] Update port: sysutils/monitorix to 2.1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Chris Rees List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2011 19:40:11 -0000 >Number: 155976 >Category: ports >Synopsis: [MAINTAINER] Update port: sysutils/monitorix to 2.1.0 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Sun Mar 27 19:40:11 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Chris Rees >Release: FreeBSD 8.2-RELEASE i386 >Organization: >Environment: System: FreeBSD zeus.bayofrum.net 8.2-RELEASE FreeBSD 8.2-RELEASE #1: Sun Feb 27 22:19:51 UTC 2011 root@zeus.bayofrum.net:/usr/obj/usr/src/sys/ZEUS i386 >Description: As discussed on #bsdports, private mail and sahil@ MJBrune has requested that he pass maintainership to me; hence the label and class of this PR. Monitorx has suffered a total rewrite since 1.5.0, and hence the changelog is long [1]. [1] http://www.monitorix.org/changelog.html >How-To-Repeat: >Fix: - Update to 2.1.0 - Pass maintainership to submitter - Rewrite rc script Submitted by: Chris Rees (utisoft_at_gmail.com) NB: I've forced command_interpreter to ".", since the script changes its procname once executed, greatly confusing rc.subr. I've tried many 'proper' ways to do it, but it seems the only way that works. --- monitorix-2.1.0.diff begins here --- Index: Makefile =================================================================== RCS file: /exports/cvsroot-freebsd/ports/sysutils/monitorix/Makefile,v retrieving revision 1.2 diff -u -r1.2 Makefile --- Makefile 5 Oct 2010 17:00:11 -0000 1.2 +++ Makefile 27 Mar 2011 16:50:51 -0000 @@ -6,15 +6,19 @@ # PORTNAME= monitorix -PORTVERSION= 1.5.1 +PORTVERSION= 2.1.0 CATEGORIES= sysutils -MASTER_SITES= http://www.monitorix.org/ +MASTER_SITES= http://www.monitorix.org/ \ + http://www.bayofrum.net/dist/${PORTNAME}/ -MAINTAINER= admin@mjbrune.org +MAINTAINER= utisoft@gmail.com COMMENT= A web based monitoring system LIB_DEPENDS= rrd:${PORTSDIR}/databases/rrdtool -BUILD_DEPENDS= ${SITE_PERL}/LWP/Parallel.pm:${PORTSDIR}/www/p5-ParallelUA +RUN_DEPENDS= ${SITE_PERL}/LWP/Parallel.pm:${PORTSDIR}/www/p5-ParallelUA \ + ${SITE_PERL}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm \ + ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \ + ${SITE_PERL}/MIME/Lite.pm:${PORTSDIR}/mail/p5-MIME-Lite LICENSE= GPLv2 @@ -22,30 +26,34 @@ .include +USE_PERL= 5.8+ MAN5= monitorix.conf.5 MANCOMPRESSED= no NO_BUILD= yes +USE_RC_SUBR= ${PORTNAME} CGIDIR?= ${PREFIX}/www/cgi-bin -#REPORTS?= true -# owner of $WWWROOT/imgs +CGIPATH?= ${CGIDIR:C,^.*/,/,} WWW_OWNER?= ${WWWOWN} WWW_GROUP?= ${WWWGRP} -DATADIR= ${INSTDIR} REPORT_LANG= ca de en it -INSTDIR= ${PREFIX}/${PORTNAME} -# WWWROOT: (WWWDIR - portname), we need the resulting path for a variable in monitorix.conf -WWWROOT= ${WWWDIR:S,${PORTNAME},,} +WWWROOT= ${WWWDIR:S,/${PORTNAME}$,,} SUB_FILES= pkg-message -SUB_LIST= PERL=${PERL} INSTDIR=${INSTDIR} -PLIST_SUB+= CGIDIR=${CGIDIR:S,${PREFIX}/,,} WWW_OWNER=${WWW_OWNER} WWW_GROUP=${WWW_GROUP} +SUB_LIST= PERL=${PERL} -WWW_FILES= logo_top.png logo_bot.png monitorixico.png -DOCS= COPYING Changes README README.FreeBSD README.nginx TODO \ - monitorix-alert.sh monitorix-apache.conf -REPORT_FILES= imgs_email/blank.png imgs_email/logo.jpg imgs_email/signature.png \ - imgs_email/title.jpg traffic_report.html traffic_report.sh +PLIST_SUB+= CGIDIR=${CGIDIR:C,^${PREFIX}/,,} + +WWW_FILES= logo_top.png \ + logo_bot.png \ + monitorixico.png + +PORTDOCS= COPYING \ + Changes \ + README \ + README.FreeBSD \ + monitorix-alert.sh \ + monitorix-apache.conf .if defined(WITH_REPORTS) RUN_DEPENDS+= metamail>=2.7:${PORTSDIR}/mail/metamail @@ -60,33 +68,26 @@ @${ECHO_MSG} "" @${ECHO_MSG} "DATADIR=${DATADIR} Where do you put RRD databases?" @${ECHO_MSG} "CGIDIR=${CGIDIR} Where do you put cgi?" + @${ECHO_MSG} "CGIPATH=${CGIPATH} What is the relative URL for cgi files?" @${ECHO_MSG} "WWWDIR=${WWWDIR} Where do you put httpd's document root?" @${ECHO_MSG} "" post-patch: -.for f in cgi conf pl - @${REINPLACE_CMD} -e "s|/usr/bin/perl|${PERL}|" ${WRKSRC}/monitorix.${f} -.endfor -# Notes about the adjustments for default configuration: -# - set FreeBSD as OSTYPE -# - set a generic WWWROOT, since we can include it in the webserver config -# - milter-greylist use a new database path on FreeBSD -# - FreeBSD's interface name came from the NIC, the lo0 interface is almost everytime present -# - file/directory handling outside ${PREFIX} with ports is silly. We don't want to rewrite -# monitorix.pl therefore we use ${PREFIX} instead /var/db/! - @${REINPLACE_CMD} -e 's|our \$$OSTYPE = \"Linux-RHFC\"|our \$$OSTYPE = \"FreeBSD\"|' \ - -e "s|/usr/local/www/apache22/data|${WWWROOT}|" \ - -e "s|/var/lib/milter-greylist/db/greylist.db|/var/milter-greylist/greylist.db|" \ - -e "s|eth0|lo0|g" -e "s|/var/db/monitorix/|${INSTDIR}/|" \ - -e "s|%%INSTDIR%%|${INSTDIR}|g" ${WRKSRC}/monitorix.conf -.for d in ${REPORT_LANG} - @${REINPLACE_CMD} -e "s|^rm|${RM}|g" -e "s|/bin/sed|${SED}|g" \ - -e "s|/usr/bin/metasend|${PREFIX}/bin/metasend|g" \ - -e "s|\"tmp|\"/tmp/${PORTNAME}_report|g" ${WRKSRC}/reports/${d}/traffic_report.sh +# Set FreeBSD path for perl in shebang +.for f in monitorix.cgi monitorix.conf monitorix reports/send_reports + @${REINPLACE_CMD} -e "1s|^\(#!\).*|\1${PERL}|" ${WRKSRC}/${f} .endfor +# eth0 doesn't exist in FreeBSD! Also let's set our own paths. + @${REINPLACE_CMD} \ + -e 's|\($$BASE_DIR = "\)[^"]*|\1${WWWDIR}|' \ + -e 's|\($$BASE_LIB = "\)[^"]*|\1${DATADIR}|' \ + -e 's|\($$BASE_CGI = "\)[^"]*|\1${CGIPATH}|' \ + -e "s|/var/lib/milter-greylist/db/|/var/milter-greylist/|" \ + -e "s|eth0|lo0|g" \ + ${WRKSRC}/monitorix.conf do-install: - @${INSTALL_SCRIPT} ${WRKSRC}/monitorix.pl ${PREFIX}/sbin/ + @${INSTALL_SCRIPT} ${WRKSRC}/monitorix ${PREFIX}/sbin/ @${MKDIR} ${WWWDIR}/imgs @${CHOWN} ${WWW_OWNER}:${WWW_GROUP} ${WWWDIR}/imgs @for f in ${WWW_FILES}; do \ @@ -95,19 +96,18 @@ @${MKDIR} ${CGIDIR} @${INSTALL_SCRIPT} ${WRKSRC}/monitorix.cgi ${CGIDIR}/ .for m in ${MAN5} - @${INSTALL_MAN} ${WRKSRC}/man/man5/$m ${PREFIX}/man/man5/ + @${INSTALL_MAN} ${WRKSRC}/man/man5/$m ${MAN5PREFIX}/man/man5/ .endfor .if defined(WITH_REPORTS) + @${MKDIR} ${WWWDIR}/reports . for l in ${REPORT_LANG} - @${MKDIR} ${PREFIX}/${PORTNAME}/reports/${l}/imgs_email -. for f in ${REPORT_FILES} - @${INSTALL_DATA} ${WRKSRC}/reports/${l}/${f} ${PREFIX}/${PORTNAME}/reports/${l}/${f} -. endfor + @${INSTALL_DATA} ${WRKSRC}/reports/${l}.html \ + ${WWWDIR}/reports/ . endfor .endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - @for doc in ${DOCS}; do \ + @for doc in ${PORTDOCS}; do \ ${INSTALL_DATA} ${WRKSRC}/$${doc} ${DOCSDIR}; \ done .endif @@ -115,9 +115,9 @@ post-install: @${INSTALL_DATA} ${WRKSRC}/monitorix.conf ${PREFIX}/etc/monitorix.conf.sample @if [ ! -f ${PREFIX}/etc/monitorix.conf ]; then \ - ${CP} -p ${PREFIX}/etc/monitorix.conf.sample ${PREFIX}/etc/monitorix.conf ; \ + ${CP} -p ${PREFIX}/etc/monitorix.conf.sample \ + ${PREFIX}/etc/monitorix.conf ; \ fi - @${MKDIR} ${DATADIR}/usage @${CAT} ${PKGMESSAGE} .include Index: distinfo =================================================================== RCS file: /exports/cvsroot-freebsd/ports/sysutils/monitorix/distinfo,v retrieving revision 1.2 diff -u -r1.2 distinfo --- distinfo 19 Mar 2011 12:32:53 -0000 1.2 +++ distinfo 27 Mar 2011 16:50:51 -0000 @@ -1,2 +1,2 @@ -SHA256 (monitorix-1.5.1.tar.gz) = e3bb853209e6fc56a883b34ab3a0395d3db0a8c512d87b40b6420620b102252b -SIZE (monitorix-1.5.1.tar.gz) = 141695 +SHA256 (monitorix-2.1.0.tar.gz) = 647b36ac80f15a805eecb68fc507334ebcbb0cb1fe7efd381eed6a7cf3bc0210 +SIZE (monitorix-2.1.0.tar.gz) = 85689 Index: pkg-plist =================================================================== RCS file: /exports/cvsroot-freebsd/ports/sysutils/monitorix/pkg-plist,v retrieving revision 1.1 diff -u -r1.1 pkg-plist --- pkg-plist 18 Aug 2010 17:43:31 -0000 1.1 +++ pkg-plist 27 Mar 2011 16:50:51 -0000 @@ -1,56 +1,16 @@ -@exec mkdir -p /var/db/monitorix/usage @exec mkdir -p %D/%%WWWDIR%%/imgs @exec chown %%WWW_OWNER%%:%%WWW_GROUP%% %D/%%WWWDIR%%/imgs @unexec if cmp -s %D/etc/monitorix.conf %D/etc/monitorix.conf.sample; then rm -f %D/etc/monitorix.conf; fi etc/monitorix.conf.sample @exec if [ ! -f %D/etc/monitorix.conf ]; then cp %B/%f %D/etc/monitorix.conf; fi -sbin/monitorix.pl +sbin/monitorix %%CGIDIR%%/monitorix.cgi @dirrmtry %%CGIDIR%% -%%PORTDOCS%%%%DOCSDIR%%/COPYING -%%PORTDOCS%%%%DOCSDIR%%/Changes -%%PORTDOCS%%%%DOCSDIR%%/README -%%PORTDOCS%%%%DOCSDIR%%/README.FreeBSD -%%PORTDOCS%%%%DOCSDIR%%/README.nginx -%%PORTDOCS%%%%DOCSDIR%%/TODO -%%PORTDOCS%%%%DOCSDIR%%/monitorix-alert.sh -%%PORTDOCS%%%%DOCSDIR%%/monitorix-apache.conf -%%PORTDOCS%%@dirrm %%DOCSDIR%% -%%REPORTS%%monitorix/reports/ca/imgs_email/blank.png -%%REPORTS%%monitorix/reports/ca/imgs_email/logo.jpg -%%REPORTS%%monitorix/reports/ca/imgs_email/signature.png -%%REPORTS%%monitorix/reports/ca/imgs_email/title.jpg -%%REPORTS%%monitorix/reports/ca/traffic_report.html -%%REPORTS%%monitorix/reports/ca/traffic_report.sh -%%REPORTS%%monitorix/reports/de/imgs_email/blank.png -%%REPORTS%%monitorix/reports/de/imgs_email/logo.jpg -%%REPORTS%%monitorix/reports/de/imgs_email/signature.png -%%REPORTS%%monitorix/reports/de/imgs_email/title.jpg -%%REPORTS%%monitorix/reports/de/traffic_report.html -%%REPORTS%%monitorix/reports/de/traffic_report.sh -%%REPORTS%%monitorix/reports/en/imgs_email/blank.png -%%REPORTS%%monitorix/reports/en/imgs_email/logo.jpg -%%REPORTS%%monitorix/reports/en/imgs_email/signature.png -%%REPORTS%%monitorix/reports/en/imgs_email/title.jpg -%%REPORTS%%monitorix/reports/en/traffic_report.html -%%REPORTS%%monitorix/reports/en/traffic_report.sh -%%REPORTS%%monitorix/reports/it/imgs_email/blank.png -%%REPORTS%%monitorix/reports/it/imgs_email/logo.jpg -%%REPORTS%%monitorix/reports/it/imgs_email/signature.png -%%REPORTS%%monitorix/reports/it/imgs_email/title.jpg -%%REPORTS%%monitorix/reports/it/traffic_report.html -%%REPORTS%%monitorix/reports/it/traffic_report.sh -%%REPORTS%%@dirrm monitorix/reports/it/imgs_email -%%REPORTS%%@dirrm monitorix/reports/it -%%REPORTS%%@dirrm monitorix/reports/en/imgs_email -%%REPORTS%%@dirrm monitorix/reports/en -%%REPORTS%%@dirrm monitorix/reports/de/imgs_email -%%REPORTS%%@dirrm monitorix/reports/de -%%REPORTS%%@dirrm monitorix/reports/ca/imgs_email -%%REPORTS%%@dirrm monitorix/reports/ca -%%REPORTS%%@dirrm monitorix/reports -@dirrmtry monitorix/usage -@dirrmtry monitorix +%%REPORTS%%%%WWWDIR%%/reports/ca.html +%%REPORTS%%%%WWWDIR%%/reports/de.html +%%REPORTS%%%%WWWDIR%%/reports/en.html +%%REPORTS%%%%WWWDIR%%/reports/it.html +%%REPORTS%%@dirrm %%WWWDIR%%/reports %%WWWDIR%%/logo_bot.png %%WWWDIR%%/logo_top.png %%WWWDIR%%/monitorixico.png Index: files/monitorix.in =================================================================== RCS file: /exports/cvsroot-freebsd/ports/sysutils/monitorix/files/monitorix.in,v retrieving revision 1.1 diff -u -r1.1 monitorix.in --- files/monitorix.in 18 Aug 2010 17:43:31 -0000 1.1 +++ files/monitorix.in 27 Mar 2011 16:50:51 -0000 @@ -1,11 +1,6 @@ #!/bin/sh # -# @(#) Fibranet NSP, SL -# Copyright (C) 2005-2010 by Jordi Sanfeliu -# -# /usr/local/etc/rc.d/monitorix -# -# Starts Monitorix on FreeBSD systems +# $FreeBSD$ # # PROVIDE: monitorix # REQUIRE: DAEMON @@ -18,20 +13,24 @@ name="monitorix" rcvar=`set_rcvar` -command_interpreter=%%PERL%% -start_cmd=monitorix_start -stop_cmd=monitorix_stop -monitorix_start() -{ # Creates RRDs files (if needed) - %%PREFIX%%/sbin/monitorix.pl create - %%PREFIX%%/sbin/monitorix.pl init -} +load_rc_config $name -monitorix_stop() +start_cmd="${name}_start" + +pidfile="/var/run/${name}.pid" +command_interpreter="." +procname="/usr/local/sbin/${name}" + +monitorix_start() { - %%PREFIX%%/sbin/monitorix.pl stop + if [ -z "$rc_fast" -a -n "$rc_pid" ]; then + echo 1>&2 "${name} already running? (pid=$rc_pid)." + return 1 + fi + echo "Starting ${name}." + rc_flags="-c %%PREFIX%%/etc/${name}.conf -p ${pidfile} ${rc_flags}" + %%PERL%% %%PREFIX%%/sbin/${name} ${rc_flags} ${command_args} } -load_rc_config $name run_rc_command "$1" Index: files/patch-monitorix =================================================================== RCS file: files/patch-monitorix diff -N files/patch-monitorix --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-monitorix 27 Mar 2011 16:50:51 -0000 @@ -0,0 +1,96 @@ +--- monitorix.orig 2011-03-09 16:59:52.000000000 +0000 ++++ monitorix 2011-03-27 15:57:13.322625798 +0100 +@@ -47,7 +47,7 @@ + use constant RELDATE => "09-Mar-2011"; + + my $pid; +-my ($opt_config, $opt_debug, $opt_version); ++my ($opt_config, $opt_pidfile, $opt_debug, $opt_version); + my @graphs; + my $root_disk; + my $root_disk_p; +@@ -138,7 +138,7 @@ + + sub usage { + print(STDERR << "EOF"); +-usage: monitorix -c|--config [-d|--debug] [-v|--version] ++usage: monitorix -c|--config [-p|--pidfile ] [-d|--debug] [-v|--version] + + EOF + exit(1); +@@ -1609,10 +1609,8 @@ + alarm $TIMEOUT; + open(IN, "df -P / |"); + while() { +- if(/dev/ && /\//) { +- ($root_disk) = split(' ', $_); +- last; +- } ++ next if /Filesystem/; ++ @tmp = split; + } + close(IN); + alarm 0; +@@ -1693,7 +1691,7 @@ + } + } elsif($os eq "FreeBSD") { + $root_disk =~ s/.*\///; # removes /dev/ +- $root_disk =~ s/...$//; # removes part number ++ $root_disk =~ s/[sp][0-9][a-z]?$//; # removes part number + } + our $fs_hist = 0; + +@@ -1710,10 +1708,8 @@ + alarm $TIMEOUT; + open(IN, "df -P / |"); + while() { +- if(/dev/ && /\//) { +- @tmp = split(' ', $_); +- last; +- } ++ next if /Filesystem/; ++ @tmp = split; + } + close(IN); + alarm 0; +@@ -3661,6 +3657,7 @@ + # ---------------------------------------------------------------------------- + GetOptions( + "config=s" => \$opt_config, ++ "pidfile=s" => \$opt_pidfile, + "debug" => \$opt_debug, + "version" => \$opt_version, + ); +@@ -3681,7 +3678,7 @@ + } + + # check configuration file syntax +-if(system("perl -wc $opt_config >/dev/null 2>&1")) { ++if(!system("perl -wc $opt_config >/dev/null 2>&1")) { + print("FATAL: configuration file '$opt_config' had compilation errors.\n"); + exit(1); + } +@@ -3698,14 +3695,22 @@ + exit(1); + } + +-$0 = sprintf("%s %s%s%s", ++$0 = sprintf("%s %s%s%s%s", + $^V lt 5.6.2 ? monitorix : abs_path($0), + $opt_config ? "-c $opt_config" : "", ++ $opt_pidfile ? "-p $opt_pidfile" : "", + $opt_debug ? " -d" : "", + $opt_version ? " -v" : ""); + daemonize(); + logger("Starting Monitorix version " . VERSION . " (pid $pid)."); + ++if($opt_pidfile = abs_path($opt_pidfile)) { ++ open(PIDFILE, ">", $opt_pidfile) ++ || die("could not open $opt_pidfile for writing."); ++ print(PIDFILE "$pid"); ++ close(PIDFILE); ++} ++ + if($opt_debug) { + logger("Entering in debug mode."); + logger("Changed process name to '$0'."); Index: files/patch-monitorix.pl =================================================================== RCS file: files/patch-monitorix.pl diff -N files/patch-monitorix.pl --- files/patch-monitorix.pl 18 Aug 2010 17:43:31 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,65 +0,0 @@ ---- ./monitorix.pl.orig 2010-06-21 10:54:38.000000000 +0200 -+++ ./monitorix.pl 2010-08-15 20:20:34.000000000 +0200 -@@ -733,20 +733,25 @@ - if($ENABLE_CROND_MAIL ne "Y") { - $mailto = "MAILTO=\"\""; - } -- open(OCRON, "> $O_CRON"); -- print OCRON < --# --PATH=/sbin:/bin:/usr/sbin:/usr/bin --$mailto -+# FreeBSD: -+# The crontab replacment was removed for the port, -+# we can not risc the damage of existing crontabs! -+ print <Release-Note: >Audit-Trail: >Unformatted: