diff --git a/sysutils/ganglia-webfrontend/Makefile b/sysutils/ganglia-webfrontend/Makefile index 54b09d658329..5e1c9a175232 100644 --- a/sysutils/ganglia-webfrontend/Makefile +++ b/sysutils/ganglia-webfrontend/Makefile @@ -1,58 +1,60 @@ PORTNAME= ganglia PORTVERSION= 3.7.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils net parallel www -PKGNAMESUFFIX= -webfrontend +PKGNAMESUFFIX= -webfrontend${PHP_PKGNAMESUFFIX} MAINTAINER= jwb@FreeBSD.org COMMENT= Ganglia cluster monitor, web frontend LICENSE= BSD3CLAUSE +IGNORE_WITH_PHP= 80 81 + RUN_DEPENDS= ${LOCALBASE}/sbin/gmond:sysutils/ganglia-monitor-core -USES= cpe php:web +USES= cpe php:flavors,web CPE_VENDOR= ${PORTNAME} CPE_PRODUCT= ${PORTNAME}-web USE_GITHUB= yes GH_PROJECT= ganglia-web USE_PHP= filter gd session xml NO_ARCH= yes NO_BUILD= yes WWWDIR= ${PREFIX}/www/ganglia PLIST_SUB= WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" WWWDIR="${WWWDIR}" SUB_FILES+= pkg-message REINPLACE_ARGS= -i '' CONFIG_FILES= default.json event_color.json events.json view_default.json post-patch: @${REINPLACE_CMD} -e 's|@vargwebstatedir@|${DATADIR}|' \ -e 's|@vargmetadir@|/var/db/ganglia|' \ -e 's|/usr/bin/rrdtool|${LOCALBASE}/bin/rrdtool|' \ ${WRKSRC}/conf_default.php.in @${REINPLACE_CMD} -e 's|@GWEB_VERSION@|${PORTVERSION}|' \ ${WRKSRC}/version.php.in do-install: @${CP} ${WRKSRC}/conf_default.php.in ${WRKSRC}/conf_default.php @${CP} ${WRKSRC}/version.php.in ${WRKSRC}/version.php (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} \ "! ( -name .git -o -name \.gitignore -o -name \.travis.yml -o \ -name AUTHORS -o -name COPYING -o -name Makefile -o -name \ README -o -name TODO -o -name *\.in -o -name conf -o -path \ \./conf/* -o -name debian -o -path \./debian/* -o -name \ ganglia-web\.spec )") @${MKDIR} ${STAGEDIR}${DATADIR}/conf/sql @${MKDIR} ${STAGEDIR}${DATADIR}/dwoo/cache @${MKDIR} ${STAGEDIR}${DATADIR}/dwoo/compiled .for file in ${CONFIG_FILES} ${INSTALL_DATA} ${WRKSRC}/conf/${file} ${STAGEDIR}${DATADIR}/conf/${file}.sample .endfor ${INSTALL_DATA} ${WRKSRC}/conf/sql/* ${STAGEDIR}${DATADIR}/conf/sql/ .include diff --git a/sysutils/ganglia-webfrontend/files/pkg-message.in b/sysutils/ganglia-webfrontend/files/pkg-message.in index 0132fd030991..5cdad64d4976 100644 --- a/sysutils/ganglia-webfrontend/files/pkg-message.in +++ b/sysutils/ganglia-webfrontend/files/pkg-message.in @@ -1,43 +1,48 @@ [ { type: install message: < Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from all Example apache24 configuration: Alias /ganglia "%%WWWDIR%%/" Options Indexes FollowSymlinks MultiViews AllowOverride None Require all granted Nginx configuration: If you are running Nginx and your document root is set to %%PREFIX%%/www, then you just need to ensure PHP files are handled correctly. If you are using a different document root, then you will need to create the appropriate location directive. The default configuration is stored in %%WWWDIR%%/conf_default.php. If you want to customize the configuration make customizations to %%WWWDIR%%/conf.php . + +WARNING: Development of Ganglia has ceased. It is incompatible with +Python 3 and PHP 8 and there are mutliple unpatched vulnerabilities. +Anyone still using Ganglia should start looking for alternatives. + EOM } ]