1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/net-mgmt/nagvis/Makefile
Vinícius Zavam a324fee5da
net-mgmt/nagvis: update 1.9.34 to 1.9.36
https://github.com/NagVis/nagvis/blob/nagvis-1.9.36/ChangeLog

  * FIX: Fix various PHP 8.2 incompatibilities
  * FIX: MySQL 8.0 - Fix "Invalid JSON response"
  * FIX: PHP 8.1 Deprecated: Implicit conversion from float
  * FIX: Fix context menu not hiding in some situations
  * Fix PHP 5.4 incompatibility
2023-08-31 18:13:50 +00:00

60 lines
1.6 KiB
Makefile

PORTNAME= nagvis
PORTVERSION= 1.9.36
CATEGORIES= net-mgmt
MASTER_SITES= http://www.nagvis.org/share/
MAINTAINER= egypcio@FreeBSD.org
COMMENT= Visualization addon for Nagios
WWW= https://www.nagvis.org/
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cpe gettext php:web
USE_PHP= gd gettext mbstring session pdo pdo_sqlite
NO_BUILD= yes
NO_ARCH= yes
SUB_LIST+= WWW_OWNER=${WWW_OWNER} WWW_GROUP=${WWW_GROUP} \
DIRMODE=${DIRMODE} FILEMODE=${FILEMODE}
SUB_FILES+= pkg-install pkg-deinstall
PLIST_SUB+= WWWDIR="${WWWDIR}"
WWW_OWNER?= ${WWWOWN}
WWW_GROUP?= ${WWWGRP}
DIRMODE?= 750
FILEMODE?= 640
OPTIONS_DEFINE= GRAPHVIZ
OPTIONS_SINGLE= BROKER
OPTIONS_SINGLE_BROKER= MKLIVESTATUS NDO2DB
OPTIONS_DEFAULT= MKLIVESTATUS
GRAPHVIZ_DESC= Graphviz is needed for automaps
MKLIVESTATUS_DESC= Depend on mk-livestatus broker (preferred)
NDO2DB_DESC= Depend on ndo2db broker
GRAPHVIZ_RUN_DEPENDS= dot:graphics/graphviz
MKLIVESTATUS_RUN_DEPENDS= mk-livestatus>=0:net-mgmt/mk-livestatus
NDO2DB_USE= PHP=mysqli
NDO2DB_RUN_DEPENDS= ndo2db:net-mgmt/ndoutils
post-extract:
@${RM} ${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:
${MKDIR} ${STAGEDIR}${WWWDIR}/etc/automaps \
${STAGEDIR}${WWWDIR}/share/var \
${STAGEDIR}${WWWDIR}/var/tmpl/cache \
${STAGEDIR}${WWWDIR}/var/tmpl/compile
(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${STAGEDIR}${WWWDIR})
.include <bsd.port.mk>