From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Nov 7 00:00:20 2010 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 25A6C1065674 for ; Sun, 7 Nov 2010 00:00:20 +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 D307D8FC18 for ; Sun, 7 Nov 2010 00:00:19 +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 oA700J7N068174 for ; Sun, 7 Nov 2010 00:00:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id oA700JCC068161; Sun, 7 Nov 2010 00:00:19 GMT (envelope-from gnats) Resent-Date: Sun, 7 Nov 2010 00:00:19 GMT Resent-Message-Id: <201011070000.oA700JCC068161@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, Olli Hauer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDD51106566C for ; Sat, 6 Nov 2010 23:55:41 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from u18-124.dslaccess.de (unknown [194.231.39.124]) by mx1.freebsd.org (Postfix) with ESMTP id 3E95D8FC0A for ; Sat, 6 Nov 2010 23:55:41 +0000 (UTC) Received: by u18-124.dslaccess.de (Postfix, from userid 1100) id F0CD32049A; Sun, 7 Nov 2010 00:55:37 +0100 (CET) Message-Id: <20101106235537.F0CD32049A@u18-124.dslaccess.de> Date: Sun, 7 Nov 2010 00:55:37 +0100 (CET) From: Olli Hauer To: X-Send-Pr-Version: 3.113 Cc: cowbert@gmail.com Subject: ports/151998: [patch] port net-mgmt/mk-livestatus update to 1.1.8 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Nov 2010 00:00:20 -0000 >Number: 151998 >Category: ports >Synopsis: [patch] port net-mgmt/mk-livestatus update to 1.1.8 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Nov 07 00:00:19 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Olli Hauer >Release: FreeBSD 7.3 >Organization: >Environment: >Description: Update mk-livestatus to version 1.1.8 For a complete list of changes see http://mathias-kettner.de/check_mk_download.html Additional install the python api examples. The perl example is not really usefull since it is outdated. >How-To-Repeat: >Fix: --- patch_mk-livestatus.txt begins here --- Index: Makefile =================================================================== RCS file: /home/pcvs/ports/net-mgmt/mk-livestatus/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- Makefile 7 Jun 2010 06:07:04 -0000 1.1 +++ Makefile 6 Nov 2010 23:12:26 -0000 @@ -6,20 +6,44 @@ # PORTNAME= mk-livestatus -PORTVERSION= 1.1.3 +PORTVERSION= 1.1.8 CATEGORIES= net-mgmt MASTER_SITES= http://mathias-kettner.de/download/ MAINTAINER= cowbert@gmail.com -COMMENT= Mathias Kettner's mk-livestatus plugin for nagios +COMMENT= Nagios event broker module + +LICENSE= GPLv2 USE_GMAKE= yes GNU_CONFIGURE= yes PLIST_FILES= lib/mk-livestatus/unixcat lib/mk-livestatus/livestatus.o PLIST_DIRS= lib/${PORTNAME} +SUB_FILES= pkg-message +SUB_LIST= PREFIX=${PREFIX} + +PORTEXAMPLES= * +EXAMPLE_FILES= api/python/example_multisite.py \ + api/python/example.py \ + api/python/livestatus.py \ + api/python/make_nagvis_map.py \ + api/python/README + +post-patch: +.for i in ${EXAMPLE_FILES} + @${REINPLACE_CMD} -i '' -e 's|/usr/bin/python|${LOCALBASE}/bin/python|g' \ + -e 's|/var/lib/nagios/rw|/var/spool/nagios/rw|g' \ + -e 's|/var/run/nagios/rw|/var/spool/nagios/rw|g' ${WRKSRC}/$i +.endfor post-install: +.if !defined(NOPORTEXAMPLES) + ${MKDIR} ${EXAMPLESDIR}/api/python +. for i in ${EXAMPLE_FILES} + ${INSTALL_DATA} ${WRKSRC}/$i ${EXAMPLESDIR}/$i +. endfor +.endif @${CAT} ${PKGMESSAGE} .include Index: distinfo =================================================================== RCS file: /home/pcvs/ports/net-mgmt/mk-livestatus/distinfo,v retrieving revision 1.1 diff -u -r1.1 distinfo --- distinfo 7 Jun 2010 06:07:04 -0000 1.1 +++ distinfo 6 Nov 2010 23:12:26 -0000 @@ -1,3 +1,2 @@ -MD5 (mk-livestatus-1.1.3.tar.gz) = df32a163a8663c1784afd1fa329732a0 -SHA256 (mk-livestatus-1.1.3.tar.gz) = 8882b52332038d081b52ef7d0d16084ee184e07f536f227cad7da2c266f8e0c9 -SIZE (mk-livestatus-1.1.3.tar.gz) = 318465 +SHA256 (mk-livestatus-1.1.8.tar.gz) = b9f3449664625a5b23a24dfd015f2ad1e3b5829d45a3b9502051f9121c0da17d +SIZE (mk-livestatus-1.1.8.tar.gz) = 323754 Index: pkg-descr =================================================================== RCS file: /home/pcvs/ports/net-mgmt/mk-livestatus/pkg-descr,v retrieving revision 1.1 diff -u -r1.1 pkg-descr --- pkg-descr 7 Jun 2010 06:07:04 -0000 1.1 +++ pkg-descr 6 Nov 2010 23:12:26 -0000 @@ -1,4 +1,6 @@ -MKLivestatus is a very simple and smart Nagios eventbroker module. +MK Livestatus - a Nagios event broker module that allows quick, +direct and comfortable access to your status data. + Livestatus is concepted and tuned to reduce disk, memory and cpu loads caused by live-data processing on the Nagios system. Just as NDO, Livestatus makes use of the Nagios Event Broker API and loads a binary @@ -7,4 +9,5 @@ external applications to connect to and fetch the current status information from Nagios. + WWW: http://mathias-kettner.de/checkmk_livestatus.html Index: pkg-message =================================================================== RCS file: pkg-message diff -N pkg-message --- pkg-message 7 Jun 2010 06:07:04 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,10 +0,0 @@ -Notes: - - * See the documentation at http://mathias-kettner.de/checkmk_livestatus.html - - * Requires that net-mgmt/nagios be built with WITH_EVENT_BROKER=yes or - livestatus.o will never be loaded... - - * unixcat (for use with reading from the socket and/or inetd(8) support) - moved to $LOCALBASE/lib/mk-livestatus from $LOCALBASE/bin in - order to avoid a conflict with sysutils/ucspi-unix Index: files/pkg-message.in =================================================================== RCS file: files/pkg-message.in diff -N files/pkg-message.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/pkg-message.in 6 Nov 2010 23:12:26 -0000 @@ -0,0 +1,16 @@ +Notes: + + * See the documentation at http://mathias-kettner.de/checkmk_livestatus.html + + * Requires that net-mgmt/nagios be built with WITH_EVENT_BROKER=yes or + livestatus.o will never be loaded... + + * unixcat (for use with reading from the socket and/or inetd(8) support) + moved from %%PREFIX%%/bin + to %%PREFIX%%/lib/mk-livestatus + in order to avoid a conflict with sysutils/ucspi-unix + +To enable mk-livestatus add the following lines into nagios.cfg: + broker_module=%%PREFIX%%/lib/mk-livestatus/livestatus.o /var/spool/nagios/rw/live + event_broker_options=-1 + --- patch_mk-livestatus.txt ends here --- >Release-Note: >Audit-Trail: >Unformatted: