Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2003 17:04:15 -0800 (PST)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/48552: new port: sysutils/ganglia-webfrontend: GUI for the ganglia cluster monitor
Message-ID:  <200302220104.h1M14FN9016277@minya.sea.one-eyed-alien.net>

next in thread | raw e-mail | index | archive | help

>Number:         48552
>Category:       ports
>Synopsis:       new port: sysutils/ganglia-webfrontend: GUI for the ganglia cluster monitor
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 21 17:10:06 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Brooks Davis
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
The Aerospace Corporation
>Environment:
System: FreeBSD minya.sea.one-eyed-alien.net 5.0-CURRENT FreeBSD 5.0-CURRENT #3: Tue Feb 4 22:01:12 PST 2003 brooks@:/usr/src/sys/i386/compile/GENERIC i386

>Description:

The Ganglia cluster monitoring system is an easy to install and
configure cluster monitor.  The ganglia-webfrontend port is a port of
the web-based GUI.  This port depends on the ganglia-monitor-core port
which is in PR ports/48551.

>How-To-Repeat:
>Fix:

Add this port (or grab the tarball from
http://people.freebsd.org/~brooks/ports/):

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	ganglia-webfrontend
#	ganglia-webfrontend/files
#	ganglia-webfrontend/files/patch-conf.php
#	ganglia-webfrontend/files/pkg-opts
#	ganglia-webfrontend/Makefile
#	ganglia-webfrontend/distinfo
#	ganglia-webfrontend/pkg-descr
#	ganglia-webfrontend/pkg-plist
#
echo c - ganglia-webfrontend
mkdir -p ganglia-webfrontend > /dev/null 2>&1
echo c - ganglia-webfrontend/files
mkdir -p ganglia-webfrontend/files > /dev/null 2>&1
echo x - ganglia-webfrontend/files/patch-conf.php
sed 's/^X//' >ganglia-webfrontend/files/patch-conf.php << 'END-of-ganglia-webfrontend/files/patch-conf.php'
X
X$FreeBSD$
X
X--- conf.php.orig	Thu Feb 20 18:10:49 2003
X+++ conf.php	Thu Feb 20 18:14:37 2003
X@@ -22,12 +22,12 @@
X #$gmetad_root = "/usr/local/gmetad";
X 
X # The high-performance gmetad.
X-$gmetad_root = "/var/lib/ganglia";
X+$gmetad_root = "/var/db/ganglia";
X $rrds = "$gmetad_root/rrds";
X 
X # Leave this alone if rrdtool is installed in $gmetad_root,
X # otherwise, change it if it's installed elsewhere (like /usr/bin)
X-define("RRDTOOL", "/usr/bin/rrdtool");
X+define("RRDTOOL", "%%PREFIX%%/bin/rrdtool");
X 
X #
X # If you want to grab data from a different ganglia source specify it here.
END-of-ganglia-webfrontend/files/patch-conf.php
echo x - ganglia-webfrontend/files/pkg-opts
sed 's/^X//' >ganglia-webfrontend/files/pkg-opts << 'END-of-ganglia-webfrontend/files/pkg-opts'
X* WWWDOCROOT [www/data]
X  The DocumentRoot of your webserver under ${PREFIX}
X
X* WEBFRONTURL [ganglia]
X  The base URL of the Ganglia Web Frontend on your webserver.
X
X    The Ganglia Web Frontend will be installed under
X    ${PREFIX}/${WWWDOCROOT}/${WEBFRONTURL} and will be visible as
X    http://<hostname>/${WEBFRONTURL}
X
X* WWWOWN [www]
X  The user ID under which your webserver executes
X
X    It is recommended that you do not change this option unless you're
X    REALLY sure what you're doing.
X
X* WWWGRP [www]
X  The group ID under which your webserver executes
X
X    It is recommended that you do not change this option unless you're
X    REALLY sure what you're doing.
END-of-ganglia-webfrontend/files/pkg-opts
echo x - ganglia-webfrontend/Makefile
sed 's/^X//' >ganglia-webfrontend/Makefile << 'END-of-ganglia-webfrontend/Makefile'
X# Ports collection makefile for:	ganglia-webfrontend
X# Date created:				Thu Fed 20, 2003
X# Whom:					Brooks Davis <brooks@freebsd.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ganglia-webfrontend
XPORTVERSION=	2.5.2
XCATEGORIES=	sysutils net parallel
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	ganglia
X
XMAINTAINER=	brooks@FreeBSD.org
XCOMMENT=	"Ganglia cluster monitor, web frontend"
X
XRUN_DEPENDS=	${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
XRUN_DEPENDS=	${LOCALBASE}/sbin/gmetad:${PORTSDIR}/sysutils/ganglia-monitor-core
X
XNO_BUILD=	yes
XUSE_REINPLACE=	yes
X
X# The Ganglia Web Frontend port supports a number of options that may be
X# tweaked at buildtime.  Perform a "make options" to see more
X# information on these variables.
XWWWDOCROOT?=	www/data
XWEBFRONTURL?=	ganglia
XWWWOWN?=	www
XWWWGRP?=	www
X
X# Set custom variables:
X#
XWEBFRONTDIR=	${WWWDOCROOT}/${WEBFRONTURL}
XPKGOPTS=	${FILESDIR}/pkg-opts
XEXCEPTFILES=	AUTHORS ChangeLog COPYING
X
Xoptions:
X	@ ${ECHO_MSG} "===>  Build options for ${PKGNAME}:"
X	@ ${CAT} ${PKGOPTS}
X
Xpost-extract:
X.if !defined(BATCH)
X	@ ${TEST} -r ${PKGOPTS} && \
X	    (${ECHO_MSG} '-------------------------------------------------------------------------'; \
X	     ${ECHO_MSG} 'Perform a "make options" to see a list of available installation options.'; \
X	     ${ECHO_MSG} '-------------------------------------------------------------------------')
X.endif
X
Xpost-patch:
X	@ ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/conf.php
X
Xdo-install:
X	${MKDIR} -m 0775 ${PREFIX}/${WEBFRONTDIR}
X	cd ${WRKSRC} && ${FIND} * \( -name conf.php\* \
X	    ${EXCEPTFILES:S/^/-o -name /} \) \
X	    -a -prune -o -print \
X	    | ${TAR} cTf - - | ${TAR} xUCf ${PREFIX}/${WEBFRONTDIR} -
X	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${WEBFRONTDIR}
X	${INSTALL} -c -o ${WWWOWN} -g ${WWWGRP} \
X	    ${WRKSRC}/conf.php ${PREFIX}/${WEBFRONTDIR}/conf.php.sample
X	if [ ! -f ${PREFIX}/${WEBFRONTDIR}/conf.php ]; then \
X		${INSTALL} -c -o ${WWWOWN} -g ${WWWGRP} \
X		    ${WRKSRC}/conf.php ${PREFIX}/${WEBFRONTDIR} ;\
X	fi
X
X.include <bsd.port.mk>
END-of-ganglia-webfrontend/Makefile
echo x - ganglia-webfrontend/distinfo
sed 's/^X//' >ganglia-webfrontend/distinfo << 'END-of-ganglia-webfrontend/distinfo'
XMD5 (ganglia-webfrontend-2.5.2.tar.gz) = 8e131c121b986a902e7c0720f1160a6c
END-of-ganglia-webfrontend/distinfo
echo x - ganglia-webfrontend/pkg-descr
sed 's/^X//' >ganglia-webfrontend/pkg-descr << 'END-of-ganglia-webfrontend/pkg-descr'
XGanglia provides a complete real-time monitoring and execution
Xenvironment that is in use by hundreds of universities, private and
Xgovernment laboratories and commercial cluster implementors around the
Xworld. Whether you want to monitor hundreds of computers in real-time
Xacross a university campus or around the world, ganglia is for you.
X
XThe ganglia web frontend provides access to the data collected by the
Xmonitoring core.
X
XWWW: http://ganglia.sourceforge.net/
X
X-- Brooks Davis <brooks@FreeBSD.org>
END-of-ganglia-webfrontend/pkg-descr
echo x - ganglia-webfrontend/pkg-plist
sed 's/^X//' >ganglia-webfrontend/pkg-plist << 'END-of-ganglia-webfrontend/pkg-plist'
Xwww/data/ganglia/conf.php.sample
Xwww/data/ganglia/conf.php
Xwww/data/ganglia/addons
Xwww/data/ganglia/auth.php
Xwww/data/ganglia/class.TemplatePower.inc.php
Xwww/data/ganglia/cluster_legend.html
Xwww/data/ganglia/cluster_view.php
Xwww/data/ganglia/footer.php
Xwww/data/ganglia/functions.php
Xwww/data/ganglia/ganglia.php
Xwww/data/ganglia/get_context.php
Xwww/data/ganglia/get_ganglia.php
Xwww/data/ganglia/graph.php
Xwww/data/ganglia/grid_tree.php
Xwww/data/ganglia/header.php
Xwww/data/ganglia/host_view.php
Xwww/data/ganglia/index.php
Xwww/data/ganglia/meta_view.php
Xwww/data/ganglia/node_legend.html
Xwww/data/ganglia/physical_view.php
Xwww/data/ganglia/private_clusters
Xwww/data/ganglia/show_node.php
Xwww/data/ganglia/styles.css
Xwww/data/ganglia/templates
Xwww/data/ganglia/templates/Rocks
Xwww/data/ganglia/templates/Rocks/images
Xwww/data/ganglia/templates/Rocks/images/ganglia.jpg
Xwww/data/ganglia/templates/Rocks/images/rocks.jpg
Xwww/data/ganglia/templates/Rocks/images/hardhat.png
Xwww/data/ganglia/templates/Rocks/header.tpl
Xwww/data/ganglia/templates/default
Xwww/data/ganglia/templates/default/images
Xwww/data/ganglia/templates/default/images/cluster_0-24.jpg
Xwww/data/ganglia/templates/default/images/cluster_25-49.jpg
Xwww/data/ganglia/templates/default/images/cluster_50-74.jpg
Xwww/data/ganglia/templates/default/images/cluster_75-100.jpg
Xwww/data/ganglia/templates/default/images/cluster_overloaded.jpg
Xwww/data/ganglia/templates/default/images/cluster_private.jpg
Xwww/data/ganglia/templates/default/images/logo.jpg
Xwww/data/ganglia/templates/default/images/node_0-24.jpg
Xwww/data/ganglia/templates/default/images/node_25-49.jpg
Xwww/data/ganglia/templates/default/images/node_50-74.jpg
Xwww/data/ganglia/templates/default/images/node_75-100.jpg
Xwww/data/ganglia/templates/default/images/node_dead.jpg
Xwww/data/ganglia/templates/default/images/node_overloaded.jpg
Xwww/data/ganglia/templates/default/images/grid_0-24.jpg
Xwww/data/ganglia/templates/default/images/grid_25-49.jpg
Xwww/data/ganglia/templates/default/images/grid_50-74.jpg
Xwww/data/ganglia/templates/default/images/grid_75-100.jpg
Xwww/data/ganglia/templates/default/images/grid_overloaded.jpg
Xwww/data/ganglia/templates/default/images/grid_private.jpg
Xwww/data/ganglia/templates/default/cluster_view.tpl
Xwww/data/ganglia/templates/default/footer.tpl
Xwww/data/ganglia/templates/default/header-nobanner.tpl
Xwww/data/ganglia/templates/default/header.tpl
Xwww/data/ganglia/templates/default/host_view.tpl
Xwww/data/ganglia/templates/default/meta_view.tpl
Xwww/data/ganglia/templates/default/physical_view.tpl
Xwww/data/ganglia/templates/default/show_node.tpl
Xwww/data/ganglia/templates/default/grid_tree.tpl
X@dirrm www/data/ganglia
X@dirrm www/data/ganglia/addons
X@dirrm www/data/ganglia/templates
X@dirrm www/data/ganglia/templates/Rocks
X@dirrm www/data/ganglia/templates/Rocks/images
X@dirrm www/data/ganglia/templates/default
X@dirrm www/data/ganglia/templates/default/images
END-of-ganglia-webfrontend/pkg-plist
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302220104.h1M14FN9016277>