freebsd-ports/sysutils/ganglia-webfrontend/Makefile
Edwin Groothuis 97db409c48 new port: sysutils/ganglia-webfrontend: GUI for the ganglia cluster monitor
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.

PR:		ports/48552
Submitted by:	Brooks Davis <brooks@freebsd.org>
2003-09-29 14:08:41 +00:00

68 lines
2.1 KiB
Makefile

# Ports collection makefile for: ganglia-webfrontend
# Date created: Thu Fed 20, 2003
# Whom: Brooks Davis <brooks@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= ganglia-webfrontend
PORTVERSION= 2.5.3
CATEGORIES= sysutils net parallel www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ganglia
MAINTAINER= brooks@FreeBSD.org
COMMENT= "Ganglia cluster monitor, web frontend"
RUN_DEPENDS= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 \
${LOCALBASE}/sbin/gmetad:${PORTSDIR}/sysutils/ganglia-monitor-core
PLIST_SUB+= WEBFRONTDIR="${WEBFRONTDIR}"
NO_BUILD= yes
USE_REINPLACE= yes
# The Ganglia Web Frontend port supports a number of options that may be
# tweaked at buildtime. Perform a "make options" to see more
# information on these variables.
WWWDOCROOT?= www/data
WEBFRONTURL?= ganglia
WWWOWN?= www
WWWGRP?= www
# Set custom variables:
#
WEBFRONTDIR= ${WWWDOCROOT}/${WEBFRONTURL}
PKGOPTS= ${FILESDIR}/pkg-opts
EXCEPTFILES= AUTHORS ChangeLog COPYING
options:
@ ${ECHO_MSG} "===> Build options for ${PKGNAME}:"
@ ${CAT} ${PKGOPTS}
post-extract:
.if !defined(BATCH)
@ ${TEST} -r ${PKGOPTS} && \
(${ECHO_MSG} '-------------------------------------------------------------------------'; \
${ECHO_MSG} 'Perform a "make options" to see a list of available installation options.'; \
${ECHO_MSG} '-------------------------------------------------------------------------')
.endif
post-patch:
@ ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/conf.php
do-install:
${MKDIR} ${PREFIX}/${WEBFRONTDIR}
${MKDIR} -m 0775 ${PREFIX}/${WEBFRONTDIR}
cd ${WRKSRC} && ${FIND} * \( -name conf.php\* \
${EXCEPTFILES:S/^/-o -name /} \) \
-a -prune -o -print \
| ${TAR} cTf - - | ${TAR} xUCf ${PREFIX}/${WEBFRONTDIR} -
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${WEBFRONTDIR}
${INSTALL} -c -o ${WWWOWN} -g ${WWWGRP} \
${WRKSRC}/conf.php ${PREFIX}/${WEBFRONTDIR}/conf.php.sample
if [ ! -f ${PREFIX}/${WEBFRONTDIR}/conf.php ]; then \
${INSTALL} -c -o ${WWWOWN} -g ${WWWGRP} \
${WRKSRC}/conf.php ${PREFIX}/${WEBFRONTDIR} ;\
fi
.include <bsd.port.mk>