Index: Makefile =================================================================== RCS file: /home/pcvs/ports/net-mgmt/nagvis/Makefile,v retrieving revision 1.1 diff -u -r1.1 Makefile --- Makefile 1 Nov 2010 20:45:55 -0000 1.1 +++ Makefile 7 Nov 2010 00:24:53 -0000 @@ -6,18 +6,18 @@ # PORTNAME= nagvis -PORTVERSION= 1.5.4 +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 -RUN_DEPENDS= ndo2db-3x:${PORTSDIR}/net-mgmt/ndoutils - LICENSE= GPLv2 -OPTIONS= GRAPHVIZ "graphviz is needed for automaps" off +OPTIONS= NDO2DB "depend on ndo2db broker" off \ + MKLIVESTATUS "depend on mk-liveview broker (preferred)" on \ + GRAPHVIZ "graphviz is needed for automaps" off NO_BUILD= yes USE_PHP= gd gettext mbstring mysql session json pdo pdo_sqlite @@ -29,12 +29,25 @@ WWW_OWNER?= ${WWWOWN} WWW_GROUP?= ${WWWGRP} SUB_LIST+= WWW_OWNER=${WWW_OWNER} WWW_GROUP=${WWW_GROUP} -SUB_FILES+= pkg-install +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 Index: distinfo =================================================================== RCS file: /home/pcvs/ports/net-mgmt/nagvis/distinfo,v retrieving revision 1.1 diff -u -r1.1 distinfo --- distinfo 1 Nov 2010 20:45:55 -0000 1.1 +++ distinfo 7 Nov 2010 00:24:53 -0000 @@ -1,2 +1,2 @@ -SHA256 (nagvis-1.5.4.tar.gz) = 3257663a9e3a212f84d94e86c7bfa60c5913fe9249d5c16fadf4f0875b4804fc -SIZE (nagvis-1.5.4.tar.gz) = 3257681 +SHA256 (nagvis-1.5.5.tar.gz) = 37b9fd132427b21d129d181b657c1b064af1f3220209e2a0f48bbb33cc5347d0 +SIZE (nagvis-1.5.5.tar.gz) = 3258337 Index: pkg-plist =================================================================== RCS file: /home/pcvs/ports/net-mgmt/nagvis/pkg-plist,v retrieving revision 1.1 diff -u -r1.1 pkg-plist --- pkg-plist 1 Nov 2010 20:45:55 -0000 1.1 +++ pkg-plist 7 Nov 2010 00:24:53 -0000 @@ -700,10 +700,10 @@ %%WWWDIR%%/uifx/src/modules/gmap/view/controls/LocationMarker.as %%WWWDIR%%/uifx/src/services-config.xml %%WWWDIR%%/uifx/src/shell.mxml -@dirrm %%WWWDIR%%/var/tmpl/compile -@dirrm %%WWWDIR%%/var/tmpl/cache -@dirrm %%WWWDIR%%/var/tmpl -@dirrm %%WWWDIR%%/var +@dirrmtry %%WWWDIR%%/var/tmpl/compile +@dirrmtry %%WWWDIR%%/var/tmpl/cache +@dirrmtry %%WWWDIR%%/var/tmpl +@dirrmtry %%WWWDIR%%/var @dirrm %%WWWDIR%%/uifx/src/modules/gmap/view/controls @dirrm %%WWWDIR%%/uifx/src/modules/gmap/view @dirrm %%WWWDIR%%/uifx/src/modules/gmap/mediator @@ -723,7 +723,7 @@ @dirrm %%WWWDIR%%/uifx/html-template/history @dirrm %%WWWDIR%%/uifx/html-template @dirrm %%WWWDIR%%/uifx -@dirrm %%WWWDIR%%/share/var +@dirrmtry %%WWWDIR%%/share/var @dirrmtry %%WWWDIR%%/share/userfiles/templates @dirrmtry %%WWWDIR%%/share/userfiles/styles @dirrmtry %%WWWDIR%%/share/userfiles/sounds Index: files/pkg-deinstall.in =================================================================== RCS file: files/pkg-deinstall.in diff -N files/pkg-deinstall.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/pkg-deinstall.in 7 Nov 2010 00:24:53 -0000 @@ -0,0 +1,20 @@ +#!/bin/sh +# $FreeBSD$ + +if [ "$2" != "POST-DEINSTALL" ]; then + exit 0 +fi + +echo +echo "====================================================" +echo +echo "If you want remove nagvis permanently from you system" +echo "execute following command:" +echo +echo " # rm -rf %%WWWDIR%%" +echo +echo "Do not forget to cleanup your webserver config" +echo "====================================================" +echo + +exit 0 Index: files/pkg-install.in =================================================================== RCS file: /home/pcvs/ports/net-mgmt/nagvis/files/pkg-install.in,v retrieving revision 1.1 diff -u -r1.1 pkg-install.in --- files/pkg-install.in 1 Nov 2010 20:45:55 -0000 1.1 +++ files/pkg-install.in 7 Nov 2010 00:24:53 -0000 @@ -1,4 +1,5 @@ #!/bin/sh +# $FreeBSD$ # # fix directory owner if installed via package if [ "$2" = "POST-INSTALL" ]; then