ports/62802: [maintainer update] ganglia-webfrontend-2.5.5

Brooks Davis brooks at FreeBSD.org
Fri Feb 13 21:10:18 UTC 2004


>Number:         62802
>Category:       ports
>Synopsis:       [maintainer update] ganglia-webfrontend-2.5.5
>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 13 13:10:18 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Brooks Davis
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD freefall.freebsd.org 4.9-STABLE FreeBSD 4.9-STABLE #11: Thu Feb 5 19:43:44 PST 2004 kensmith at freefall.freebsd.org:/c/src/sys/compile/FREEFALL i386


	
>Description:

Update to 2.5.5 (no major changes from 2.5.4).

Major changes to the port infrastructure:
 - Replace WWWDOCROOT and WEBFRONTURL options with WEBFRONTDIR
   (defaults to www/ganglia).
 - Install files under ${PREFIX}/${WEBFRONTDIR}.
 - Since the files are no longer installed in the document root,
   add a pkg-message with a suggest addition to Apache's
   httpd.conf.
 - Use USE_PHP and WANT_PHP_MOD.
 - Add a note about installing PHP with GD support at done in
   mail/nocc.
 - Remove conf.php only if it is identical to conf.php.sample as
   done in mail/nocc.
 - Sizify.
 - Don't install the empty addons directory since packages won't
   contain it.

Suggested by:	ale (PHP + GD note)

>How-To-Repeat:
	
>Fix:

Apply this patch.  One new file, pkg-message, is created.

diff -ruN vendor/ganglia-webfrontend/Makefile ganglia-webfrontend/Makefile
--- vendor/ganglia-webfrontend/Makefile	Tue Nov  4 12:46:15 2003
+++ ganglia-webfrontend/Makefile	Fri Feb 13 12:46:08 2004
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	ganglia-webfrontend
-PORTVERSION=	2.5.4
+PORTVERSION=	2.5.5
 CATEGORIES=	sysutils net parallel www
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	ganglia
@@ -14,26 +14,41 @@
 MAINTAINER=	brooks at 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
+RUN_DEPENDS+=	${LOCALBASE}/sbin/gmetad:${PORTSDIR}/sysutils/ganglia-monitor-core
 
+PKGMESSAGE=	${WRKDIR}/pkg-message
 PLIST_SUB+=	WEBFRONTDIR="${WEBFRONTDIR}"
 NO_BUILD=	yes
 USE_REINPLACE=	yes
+USE_PHP=	yes
+WANT_PHP_MOD=	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
+WEBFRONTDIR?=	www/ganglia
 WWWOWN?=	www
 WWWGRP?=	www
 
 # Set custom variables:
 #
-WEBFRONTDIR=	${WWWDOCROOT}/${WEBFRONTURL}
 PKGOPTS=	${FILESDIR}/pkg-opts
-EXCEPTFILES=	AUTHORS ChangeLog COPYING webfrontend.spec
+EXCEPTFILES=	AUTHORS ChangeLog COPYING addons webfrontend.spec
+
+pre-everything::
+	@${ECHO} ""
+	@${ECHO} "You have to configure PHP with GD support to allow "
+	@${ECHO} "the Ganglia Webfrontend draw some standard graphs.
+	@${ECHO} ""
+	@${ECHO} "If you have already compiled PHP without GD,"
+	@${ECHO} "press CTRL+C now and rebuild it before installing"
+	@${ECHO} "the Ganglia Webfrontend."
+	@${ECHO} ""
+
+pre-patch:
+	@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
+		-e 's|%%WEBFRONTDIR%%|${WEBFRONTDIR}|g' \
+		${.CURDIR}/pkg-message > ${PKGMESSAGE}
 
 options:
 	@ ${ECHO_MSG} "===>  Build options for ${PKGNAME}:"
@@ -60,9 +75,12 @@
 	${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 \
+	@if [ ! -f ${PREFIX}/${WEBFRONTDIR}/conf.php ]; then \
 		${INSTALL} -c -o ${WWWOWN} -g ${WWWGRP} \
 		    ${WRKSRC}/conf.php ${PREFIX}/${WEBFRONTDIR} ;\
 	fi
+
+post-install:
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
diff -ruN vendor/ganglia-webfrontend/distinfo ganglia-webfrontend/distinfo
--- vendor/ganglia-webfrontend/distinfo	Tue Nov  4 12:46:15 2003
+++ ganglia-webfrontend/distinfo	Fri Feb 13 12:46:08 2004
@@ -1 +1,2 @@
-MD5 (ganglia-webfrontend-2.5.4.tar.gz) = 952b32c343c797f07688f354170d7c59
+MD5 (ganglia-webfrontend-2.5.5.tar.gz) = 26d32439a49a1b16754138fc5ff72033
+SIZE (ganglia-webfrontend-2.5.5.tar.gz) = 98076
diff -ruN vendor/ganglia-webfrontend/files/patch-conf.php ganglia-webfrontend/files/patch-conf.php
--- vendor/ganglia-webfrontend/files/patch-conf.php	Tue Nov  4 12:46:15 2003
+++ ganglia-webfrontend/files/patch-conf.php	Fri Feb 13 12:46:08 2004
@@ -1,8 +1,17 @@
 
-$FreeBSD: ports/sysutils/ganglia-webfrontend/files/patch-conf.php,v 1.2 2003/11/04 20:46:15 linimon Exp $
+$FreeBSD$
 
---- conf.php.orig	Mon Aug 11 15:56:15 2003
-+++ conf.php	Tue Oct 28 11:59:38 2003
+--- conf.php.orig	Mon Nov 10 10:54:16 2003
++++ conf.php	Thu Feb 12 18:40:24 2004
+@@ -5,7 +5,7 @@
+ #
+ $majorversion = 2;
+ $minorversion = 5;
+-$microversion = 4;
++$microversion = 5;
+ #
+ # The name of the directory in "./templates" which contains the
+ # templates that you want to use. Templates are like a skin for the
 @@ -22,12 +22,12 @@
  #$gmetad_root = "/usr/local/gmetad";
  
diff -ruN vendor/ganglia-webfrontend/files/pkg-opts ganglia-webfrontend/files/pkg-opts
--- vendor/ganglia-webfrontend/files/pkg-opts	Mon Sep 29 07:08:41 2003
+++ ganglia-webfrontend/files/pkg-opts	Fri Feb 13 12:46:08 2004
@@ -1,12 +1,6 @@
-* WWWDOCROOT [www/data]
-  The DocumentRoot of your webserver under ${PREFIX}
-
-* WEBFRONTURL [ganglia]
-  The base URL of the Ganglia Web Frontend on your webserver.
-
-    The Ganglia Web Frontend will be installed under
-    ${PREFIX}/${WWWDOCROOT}/${WEBFRONTURL} and will be visible as
-    http://<;hostname>/${WEBFRONTURL}
+* WEBFRONTDIR [www/ganglia]
+  The Ganglia Web Frontend will be installed under
+  ${PREFIX}/${WEBFRONTDIR}.
 
 * WWWOWN [www]
   The user ID under which your webserver executes
diff -ruN vendor/ganglia-webfrontend/pkg-message ganglia-webfrontend/pkg-message
--- vendor/ganglia-webfrontend/pkg-message	Wed Dec 31 16:00:00 1969
+++ ganglia-webfrontend/pkg-message	Fri Feb 13 12:46:08 2004
@@ -0,0 +1,18 @@
+****************************************************************
+The Ganglia Web Frontend has been installed in the directory
+%%PREFIX%%/%%WEBFRONTDIR%%.
+
+You must add appropriate configuration directives to your
+apache configuration file (%%PREFIX%%/etc/apache/httpd.conf).
+A typical configuration would be:
+
+    Alias /ganglia/ "%%PREFIX%%/%%WEBFRONTDIR%%/"
+
+    <Directory "%%PREFIX%%/%%WEBFRONTDIR%%">
+        Options Indexes FollowSymlinks MultiViews
+        AllowOverride None
+        Order allow,deny
+        Allow from all
+    </Directory>
+
+****************************************************************
diff -ruN vendor/ganglia-webfrontend/pkg-plist ganglia-webfrontend/pkg-plist
--- vendor/ganglia-webfrontend/pkg-plist	Tue Nov  4 12:46:15 2003
+++ ganglia-webfrontend/pkg-plist	Fri Feb 13 12:46:08 2004
@@ -12,7 +12,6 @@
 %%WEBFRONTDIR%%/header.php
 %%WEBFRONTDIR%%/host_view.php
 %%WEBFRONTDIR%%/index.php
-%%WEBFRONTDIR%%/info.php
 %%WEBFRONTDIR%%/meta_view.php
 %%WEBFRONTDIR%%/node_legend.html
 %%WEBFRONTDIR%%/physical_view.php
@@ -55,12 +54,12 @@
 %%WEBFRONTDIR%%/templates/default/physical_view.tpl
 %%WEBFRONTDIR%%/templates/default/show_node.tpl
 %%WEBFRONTDIR%%/templates/default/grid_tree.tpl
+ at unexec if cmp -s %D/%%WEBFRONTDIR%%/conf.php %D/%%WEBFRONTDIR%%/conf.php.sample; then rm -f %D/%%WEBFRONTDIR%%/conf.php; fi
 %%WEBFRONTDIR%%/conf.php.sample
-%%WEBFRONTDIR%%/conf.php
- at dirrm %%WEBFRONTDIR%%/addons
+ at exec [ -f %B/conf.php ] || cp %B/%f %B/conf.php
 @dirrm %%WEBFRONTDIR%%/templates/Rocks/images
 @dirrm %%WEBFRONTDIR%%/templates/Rocks
 @dirrm %%WEBFRONTDIR%%/templates/default/images
 @dirrm %%WEBFRONTDIR%%/templates/default
 @dirrm %%WEBFRONTDIR%%/templates
- at dirrm %%WEBFRONTDIR%%
+ at unexec rmdir %D/%%WEBFRONTDIR%% 2>/dev/null || (echo "Configuration information saved.  If you will *NOT* use this package anymore," && echo "please remove %D/%%WEBFRONTDIR%% and its contents manually.")

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



More information about the freebsd-ports-bugs mailing list