Skip site navigation (1)Skip section navigation (2)
Date:      Sun,  7 Nov 2010 00:55:37 +0100 (CET)
From:      Olli Hauer <ohauer@FreeBSD.org>
To:        <FreeBSD-gnats-submit@FreeBSD.org>
Cc:        cowbert@gmail.com
Subject:   ports/151998: [patch] port net-mgmt/mk-livestatus update to 1.1.8
Message-ID:  <20101106235537.F0CD32049A@u18-124.dslaccess.de>
Resent-Message-ID: <201011070000.oA700JCC068161@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <ohauer@FreeBSD.org>
>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 <bsd.port.mk>
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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101106235537.F0CD32049A>