View | Details | Raw Unified | Return to bug 62802
Collapse All | Expand All

(-)ganglia-webfrontend/Makefile (-8 / +26 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	ganglia-webfrontend
8
PORTNAME=	ganglia-webfrontend
9
PORTVERSION=	2.5.4
9
PORTVERSION=	2.5.5
10
CATEGORIES=	sysutils net parallel www
10
CATEGORIES=	sysutils net parallel www
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
12
MASTER_SITE_SUBDIR=	ganglia
12
MASTER_SITE_SUBDIR=	ganglia
Lines 14-39 Link Here
14
MAINTAINER=	brooks@FreeBSD.org
14
MAINTAINER=	brooks@FreeBSD.org
15
COMMENT=	"Ganglia cluster monitor, web frontend"
15
COMMENT=	"Ganglia cluster monitor, web frontend"
16
16
17
RUN_DEPENDS=	${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 \
17
RUN_DEPENDS+=	${LOCALBASE}/sbin/gmetad:${PORTSDIR}/sysutils/ganglia-monitor-core
18
		${LOCALBASE}/sbin/gmetad:${PORTSDIR}/sysutils/ganglia-monitor-core
19
18
19
PKGMESSAGE=	${WRKDIR}/pkg-message
20
PLIST_SUB+=	WEBFRONTDIR="${WEBFRONTDIR}"
20
PLIST_SUB+=	WEBFRONTDIR="${WEBFRONTDIR}"
21
NO_BUILD=	yes
21
NO_BUILD=	yes
22
USE_REINPLACE=	yes
22
USE_REINPLACE=	yes
23
USE_PHP=	yes
24
WANT_PHP_MOD=	yes
23
25
24
# The Ganglia Web Frontend port supports a number of options that may be
26
# The Ganglia Web Frontend port supports a number of options that may be
25
# tweaked at buildtime.  Perform a "make options" to see more
27
# tweaked at buildtime.  Perform a "make options" to see more
26
# information on these variables.
28
# information on these variables.
27
WWWDOCROOT?=	www/data
29
WEBFRONTDIR?=	www/ganglia
28
WEBFRONTURL?=	ganglia
29
WWWOWN?=	www
30
WWWOWN?=	www
30
WWWGRP?=	www
31
WWWGRP?=	www
31
32
32
# Set custom variables:
33
# Set custom variables:
33
#
34
#
34
WEBFRONTDIR=	${WWWDOCROOT}/${WEBFRONTURL}
35
PKGOPTS=	${FILESDIR}/pkg-opts
35
PKGOPTS=	${FILESDIR}/pkg-opts
36
EXCEPTFILES=	AUTHORS ChangeLog COPYING webfrontend.spec
36
EXCEPTFILES=	AUTHORS ChangeLog COPYING addons webfrontend.spec
37
38
pre-everything::
39
	@${ECHO} ""
40
	@${ECHO} "You have to configure PHP with GD support to allow "
41
	@${ECHO} "the Ganglia Webfrontend draw some standard graphs.
42
	@${ECHO} ""
43
	@${ECHO} "If you have already compiled PHP without GD,"
44
	@${ECHO} "press CTRL+C now and rebuild it before installing"
45
	@${ECHO} "the Ganglia Webfrontend."
46
	@${ECHO} ""
47
48
pre-patch:
49
	@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
50
		-e 's|%%WEBFRONTDIR%%|${WEBFRONTDIR}|g' \
51
		${.CURDIR}/pkg-message > ${PKGMESSAGE}
37
52
38
options:
53
options:
39
	@ ${ECHO_MSG} "===>  Build options for ${PKGNAME}:"
54
	@ ${ECHO_MSG} "===>  Build options for ${PKGNAME}:"
Lines 60-68 Link Here
60
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${WEBFRONTDIR}
75
	${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${WEBFRONTDIR}
61
	${INSTALL} -c -o ${WWWOWN} -g ${WWWGRP} \
76
	${INSTALL} -c -o ${WWWOWN} -g ${WWWGRP} \
62
	    ${WRKSRC}/conf.php ${PREFIX}/${WEBFRONTDIR}/conf.php.sample
77
	    ${WRKSRC}/conf.php ${PREFIX}/${WEBFRONTDIR}/conf.php.sample
63
	if [ ! -f ${PREFIX}/${WEBFRONTDIR}/conf.php ]; then \
78
	@if [ ! -f ${PREFIX}/${WEBFRONTDIR}/conf.php ]; then \
64
		${INSTALL} -c -o ${WWWOWN} -g ${WWWGRP} \
79
		${INSTALL} -c -o ${WWWOWN} -g ${WWWGRP} \
65
		    ${WRKSRC}/conf.php ${PREFIX}/${WEBFRONTDIR} ;\
80
		    ${WRKSRC}/conf.php ${PREFIX}/${WEBFRONTDIR} ;\
66
	fi
81
	fi
82
83
post-install:
84
	@${CAT} ${PKGMESSAGE}
67
85
68
.include <bsd.port.mk>
86
.include <bsd.port.mk>
(-)ganglia-webfrontend/distinfo (-1 / +2 lines)
Line 1 Link Here
1
MD5 (ganglia-webfrontend-2.5.4.tar.gz) = 952b32c343c797f07688f354170d7c59
1
MD5 (ganglia-webfrontend-2.5.5.tar.gz) = 26d32439a49a1b16754138fc5ff72033
2
SIZE (ganglia-webfrontend-2.5.5.tar.gz) = 98076
(-)ganglia-webfrontend/files/patch-conf.php (-3 / +12 lines)
Lines 1-8 Link Here
1
1
2
$FreeBSD: ports/sysutils/ganglia-webfrontend/files/patch-conf.php,v 1.2 2003/11/04 20:46:15 linimon Exp $
2
$FreeBSD$
3
3
4
--- conf.php.orig	Mon Aug 11 15:56:15 2003
4
--- conf.php.orig	Mon Nov 10 10:54:16 2003
5
+++ conf.php	Tue Oct 28 11:59:38 2003
5
+++ conf.php	Thu Feb 12 18:40:24 2004
6
@@ -5,7 +5,7 @@
7
 #
8
 $majorversion = 2;
9
 $minorversion = 5;
10
-$microversion = 4;
11
+$microversion = 5;
12
 #
13
 # The name of the directory in "./templates" which contains the
14
 # templates that you want to use. Templates are like a skin for the
6
@@ -22,12 +22,12 @@
15
@@ -22,12 +22,12 @@
7
 #$gmetad_root = "/usr/local/gmetad";
16
 #$gmetad_root = "/usr/local/gmetad";
8
 
17
 
(-)ganglia-webfrontend/files/pkg-opts (-9 / +3 lines)
Lines 1-12 Link Here
1
* WWWDOCROOT [www/data]
1
* WEBFRONTDIR [www/ganglia]
2
  The DocumentRoot of your webserver under ${PREFIX}
2
  The Ganglia Web Frontend will be installed under
3
3
  ${PREFIX}/${WEBFRONTDIR}.
4
* WEBFRONTURL [ganglia]
5
  The base URL of the Ganglia Web Frontend on your webserver.
6
7
    The Ganglia Web Frontend will be installed under
8
    ${PREFIX}/${WWWDOCROOT}/${WEBFRONTURL} and will be visible as
9
    http://<;hostname>/${WEBFRONTURL}
10
4
11
* WWWOWN [www]
5
* WWWOWN [www]
12
  The user ID under which your webserver executes
6
  The user ID under which your webserver executes
(-)ganglia-webfrontend/pkg-message (+18 lines)
Line 0 Link Here
1
****************************************************************
2
The Ganglia Web Frontend has been installed in the directory
3
%%PREFIX%%/%%WEBFRONTDIR%%.
4
5
You must add appropriate configuration directives to your
6
apache configuration file (%%PREFIX%%/etc/apache/httpd.conf).
7
A typical configuration would be:
8
9
    Alias /ganglia/ "%%PREFIX%%/%%WEBFRONTDIR%%/"
10
11
    <Directory "%%PREFIX%%/%%WEBFRONTDIR%%">
12
        Options Indexes FollowSymlinks MultiViews
13
        AllowOverride None
14
        Order allow,deny
15
        Allow from all
16
    </Directory>
17
18
****************************************************************
(-)ganglia-webfrontend/pkg-plist (-4 / +3 lines)
Lines 12-18 Link Here
12
%%WEBFRONTDIR%%/header.php
12
%%WEBFRONTDIR%%/header.php
13
%%WEBFRONTDIR%%/host_view.php
13
%%WEBFRONTDIR%%/host_view.php
14
%%WEBFRONTDIR%%/index.php
14
%%WEBFRONTDIR%%/index.php
15
%%WEBFRONTDIR%%/info.php
16
%%WEBFRONTDIR%%/meta_view.php
15
%%WEBFRONTDIR%%/meta_view.php
17
%%WEBFRONTDIR%%/node_legend.html
16
%%WEBFRONTDIR%%/node_legend.html
18
%%WEBFRONTDIR%%/physical_view.php
17
%%WEBFRONTDIR%%/physical_view.php
Lines 55-66 Link Here
55
%%WEBFRONTDIR%%/templates/default/physical_view.tpl
54
%%WEBFRONTDIR%%/templates/default/physical_view.tpl
56
%%WEBFRONTDIR%%/templates/default/show_node.tpl
55
%%WEBFRONTDIR%%/templates/default/show_node.tpl
57
%%WEBFRONTDIR%%/templates/default/grid_tree.tpl
56
%%WEBFRONTDIR%%/templates/default/grid_tree.tpl
57
@unexec if cmp -s %D/%%WEBFRONTDIR%%/conf.php %D/%%WEBFRONTDIR%%/conf.php.sample; then rm -f %D/%%WEBFRONTDIR%%/conf.php; fi
58
%%WEBFRONTDIR%%/conf.php.sample
58
%%WEBFRONTDIR%%/conf.php.sample
59
%%WEBFRONTDIR%%/conf.php
59
@exec [ -f %B/conf.php ] || cp %B/%f %B/conf.php
60
@dirrm %%WEBFRONTDIR%%/addons
61
@dirrm %%WEBFRONTDIR%%/templates/Rocks/images
60
@dirrm %%WEBFRONTDIR%%/templates/Rocks/images
62
@dirrm %%WEBFRONTDIR%%/templates/Rocks
61
@dirrm %%WEBFRONTDIR%%/templates/Rocks
63
@dirrm %%WEBFRONTDIR%%/templates/default/images
62
@dirrm %%WEBFRONTDIR%%/templates/default/images
64
@dirrm %%WEBFRONTDIR%%/templates/default
63
@dirrm %%WEBFRONTDIR%%/templates/default
65
@dirrm %%WEBFRONTDIR%%/templates
64
@dirrm %%WEBFRONTDIR%%/templates
66
@dirrm %%WEBFRONTDIR%%
65
@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.")

Return to bug 62802