freebsd-ports/net-mgmt/mk-livestatus/Makefile
Olli Hauer f35cb70eca - update to 1.2.2p2
Changes:
==========
1.2.p1
 livestatus.log: show utf-8 decoding problems only with debug logging >=2

1.2.b6
 FIX: memory leak when removing downtime / comment

1.2.b5
 FIX: possible crash with VERY long downtime comments
 FIX: now able to handle equal comment id of host and service

1.2.b1
 Add: new column in hosts/services table: comments_with_extra_info Adds the entry type and entry time

1.2.1i4
 FIX: Changed logging output "Time to process request" to be debug output

1.2.1i2
 Added new table statehist, used for SLA queries
 Added new column check_command_expanded in table hosts
 Added new column check_command_expanded in table services
 New columns livestatus_threads, livestatus_{active,queued}_connections

1.2.0p4
 FIX: fix two problems when reloading module in Icinga (thanks to Ronny Biering) Mulitisite
2013-06-16 20:31:13 +00:00

58 lines
1.4 KiB
Makefile

# Created by: Peter C. Lai <cowbert@gmail.com>
# $FreeBSD$
PORTNAME= mk-livestatus
PORTVERSION= 1.2.2p2
CATEGORIES= net-mgmt
MASTER_SITES= http://mathias-kettner.de/download/ \
LOCAL/ohauer
DIST_SUBDIR= check_mk
MAINTAINER= ohauer@FreeBSD.org
COMMENT= Nagios event broker module
LICENSE= GPLv2
USE_GMAKE= yes
GNU_CONFIGURE= yes
PLIST_FILES= lib/mk-livestatus/unixcat \
lib/mk-livestatus/livecheck \
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
# parameter "command_file" from nagios.cfg
COMMAND_FILE?= /var/spool/nagios/rw/live
# perl api is really outdated, do not install!
# Actual version can be found on CPAN
# http://search.cpan.org/~nierlein/Monitoring-Livestatus/
post-extract:
@${RM} -rf ${WRKSRC}/api/perl
post-patch:
.for i in ${EXAMPLE_FILES}
@${SED} -i '' -e 's|/usr/bin/python|${LOCALBASE}/bin/python|g' \
-e 's|/var/lib/nagios/rw/live|${COMMAND_FILE}|g' \
-e 's|/var/run/nagios/rw/live|${COMMAND_FILE}|g' ${WRKSRC}/$i
.endfor
@${SED} -i '' -e 's|/usr/local/nagios/var/rw/live|${COMMAND_FILE}|' \
${WRKSRC}/src/livestatus.h
post-install:
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
( cd ${WRKSRC} && ${COPYTREE_SHARE} api\* ${EXAMPLESDIR}/ )
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>