1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/net-mgmt/nagvis/Makefile
Olli Hauer 5511ccebbd - update nagvis to version 1.5.5
- add OPIONS for ndb2dbo and mk-livestatus brokers
 - make mk-livestatus the default broker since it needs no database
 - add pkg-deinstall message

 Changelog for 1.5.5
 ===================
 NagVis WUI:
 * Change backend_id field in WUI to dropdown select field for map options

 NagVis MKLivestatus Backend:
 * Recode MKLivestatus backend to use fsockopen instead of socket module

 NagVis Core
 * State of map objects was not refreshed correctly in 1.5.4
 * Increase max username length limitation to sth. larger than 15
 * The permission for controlling multisite access is missing

 List of all changes:
 http://sourceforge.net/apps/trac/nagvis/report/32

PR:		151999
Submitted by:	ohauer
Approved by:	A.Sidorov <derfi _at_ vei.ru> (maintainer), glarkin (mentor, implicit)
2010-11-10 21:43:31 +00:00

71 lines
1.7 KiB
Makefile

# New ports collection makefile for: nagvis
# Date created: 5 October 2010
# Whom: Andrew 'derfi' Sidorov
#
# $FreeBSD$
#
PORTNAME= nagvis
PORTVERSION= 1.5.5
CATEGORIES= net-mgmt
MASTER_SITES= SF/${PORTNAME}/NagVis%201.5/
MAINTAINER= derfi@vei.ru
COMMENT= NagVis is a visualization addon for Nagios
LICENSE= GPLv2
OPTIONS= MKLIVESTATUS "depend on mk-livestatus broker (preferred)" on \
NDO2DB "depend on ndo2db broker" off \
GRAPHVIZ "graphviz is needed for automaps" off
NO_BUILD= yes
USE_PHP= gd gettext mbstring mysql session json pdo pdo_sqlite
WANT_PHP_WEB= yes
DEFAULT_PHP_VER=5
.include <bsd.port.options.mk>
WWW_OWNER?= ${WWWOWN}
WWW_GROUP?= ${WWWGRP}
SUB_LIST+= WWW_OWNER=${WWW_OWNER} WWW_GROUP=${WWW_GROUP}
SUB_FILES+= pkg-install pkg-deinstall
.if defined(WITH_NDO2DB)
RUN_DEPENDS+= ndo2db-3x:${PORTSDIR}/net-mgmt/ndoutils
.endif
.if defined(WITH_MKLIVESTATUS)
RUN_DEPENDS+= mk-livestatus>=0:${PORTSDIR}/net-mgmt/mk-livestatus
.endif
.if defined(WITH_GRAPHVIZ)
RUN_DEPENDS+= dot:${PORTSDIR}/graphics/graphviz
.endif
check-sanity:
.if !defined(WITH_NDO2DB) && !defined(WITH_MKLIVESTATUS)
IGNORE= please choose at least one nagios broker module
.endif
post-extract:
@${RM} -f ${WRKSRC}/.gitignore ${WRKSRC}/install.sh ${WRKSRC}/INSTALL
post-patch:
@${REINPLACE_CMD} -i '' -e 's|@NAGVIS_WEB@|/nagvis|g' \
-e 's|@NAGVIS_PATH@|${WWWDIR}|g' \
${WRKSRC}/etc/apache2-nagvis.conf-sample
@${REINPLACE_CMD} -i '' -e 's|/usr/local/nagvis/|${WWWDIR}/|' \
${WRKSRC}/etc/nagvis.ini.php-sample
do-install:
@${CP} -R ${WRKSRC} ${WWWDIR}
@${MKDIR} ${WWWDIR}/var/tmpl/cache
@${MKDIR} ${WWWDIR}/var/tmpl/compile
@${MKDIR} ${WWWDIR}/share/var
post-install:
@${SH} ${PKGINSTALL} ${DISTNAME} POST-INSTALL
.include <bsd.port.mk>