View | Details | Raw Unified | Return to bug 211763 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-16 / +20 lines)
Lines 2-11 Link Here
2
2
3
PORTNAME=	ganglia
3
PORTNAME=	ganglia
4
PORTVERSION=	3.7.2
4
PORTVERSION=	3.7.2
5
PORTREVISION=	1
5
CATEGORIES=	sysutils net parallel www
6
CATEGORIES=	sysutils net parallel www
6
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-web/${PORTVERSION}
7
PKGNAMESUFFIX=	-webfrontend
7
PKGNAMESUFFIX=	-webfrontend
8
DISTNAME=	${PORTNAME}-web-${PORTVERSION}
9
8
10
MAINTAINER=	jrm@ftfl.ca
9
MAINTAINER=	jrm@ftfl.ca
11
COMMENT=	Ganglia cluster monitor, web frontend
10
COMMENT=	Ganglia cluster monitor, web frontend
Lines 14-48 Link Here
14
13
15
RUN_DEPENDS=	${LOCALBASE}/sbin/gmetad:sysutils/ganglia-monitor-core
14
RUN_DEPENDS=	${LOCALBASE}/sbin/gmetad:sysutils/ganglia-monitor-core
16
15
17
USE_PHP=	filter gd xml
16
USE_GITHUB=	yes
18
NO_BUILD=	YES
17
GH_ACCOUNT=	ganglia
19
WANT_PHP_WEB=	YES
18
GH_PROJECT=	ganglia-web
20
19
20
NO_ARCH=	yes
21
NO_BUILD=	yes
22
23
USES=		php:web
24
USE_PHP=	filter gd session xml
21
WWWDIR=		${PREFIX}/www/ganglia
25
WWWDIR=		${PREFIX}/www/ganglia
22
26
27
PLIST_SUB=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}" WWWDIR="${WWWDIR}"
23
SUB_FILES+=	pkg-message
28
SUB_FILES+=	pkg-message
24
SUB_LIST+=	WWWDIR="${WWWDIR}"
25
29
26
PLIST_SUB=	WWWOWN="${WWWOWN}" WWWGRP="${WWWGRP}"
27
28
REINPLACE_ARGS=	-i ''
30
REINPLACE_ARGS=	-i ''
29
CONFIG_FILES=	default.json event_color.json events.json view_default.json
31
CONFIG_FILES=	default.json event_color.json events.json view_default.json
30
32
31
NO_ARCH=	yes
32
33
post-patch:
33
post-patch:
34
	@${REINPLACE_CMD} -e 's|@vargwebstatedir@|${DATADIR}|' \
34
	@${REINPLACE_CMD} -e 's|@vargwebstatedir@|${DATADIR}|' \
35
			  -e 's|@vargmetadir@|/var/db/ganglia|' \
35
			  -e 's|@vargmetadir@|/var/db/ganglia|' \
36
			  -e 's|/usr/bin/rrdtool|${LOCALBASE}/bin/rrdtool|' \
36
			  -e 's|/usr/bin/rrdtool|${LOCALBASE}/bin/rrdtool|' \
37
			  ${WRKSRC}/conf_default.php.in
37
		${WRKSRC}/conf_default.php.in
38
	@${REINPLACE_CMD} -e 's|@GWEB_VERSION@|${PORTVERSION}|' \
38
	@${REINPLACE_CMD} -e 's|@GWEB_VERSION@|${PORTVERSION}|' \
39
			  ${WRKSRC}/version.php.in
39
		${WRKSRC}/version.php.in
40
	@${CP} ${WRKSRC}/version.php.in ${WRKSRC}/version.php
41
	@${CP} ${WRKSRC}/conf_default.php.in ${WRKSRC}/conf_default.php
42
40
43
do-install:
41
do-install:
44
	@cd ${WRKSRC} && \
42
	@${CP} ${WRKSRC}/conf_default.php.in ${WRKSRC}/conf_default.php
45
	${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} "! ( -name *\.in -o -name .gitignore -o -name Makefile -o -name apache.conf.in -o -name apache.conf -o -name conf -o -path \./conf/* -o -name debian -o -path \./debian/* -o -name ganglia-web\.spec )"
43
	@${CP} ${WRKSRC}/version.php.in      ${WRKSRC}/version.php
44
	(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} \
45
		"! ( -name .git -o -name \.gitignore -o -name \.travis.yml -o \
46
		-name AUTHORS -o -name COPYING -o -name Makefile -o -name \
47
		README -o -name TODO -o -name *\.in -o -name conf -o -path \
48
		\./conf/* -o -name debian -o -path \./debian/* -o -name \
49
		ganglia-web\.spec )")
46
	@${MKDIR} ${STAGEDIR}${DATADIR}/conf/sql
50
	@${MKDIR} ${STAGEDIR}${DATADIR}/conf/sql
47
	@${MKDIR} ${STAGEDIR}${DATADIR}/dwoo/cache
51
	@${MKDIR} ${STAGEDIR}${DATADIR}/dwoo/cache
48
	@${MKDIR} ${STAGEDIR}${DATADIR}/dwoo/compiled
52
	@${MKDIR} ${STAGEDIR}${DATADIR}/dwoo/compiled
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1466016609
1
TIMESTAMP = 1470965544
2
SHA256 (ganglia-web-3.7.2.tar.gz) = 98820187c98d24d3645b92d31060623de696dad331a361a19874898339523628
2
SHA256 (ganglia-ganglia-web-3.7.2_GH0.tar.gz) = a8f5fd8230b68d79089843aa11b89ae5b819d268573cc02b6c8a68f82abaaed2
3
SIZE (ganglia-web-3.7.2.tar.gz) = 704632
3
SIZE (ganglia-ganglia-web-3.7.2_GH0.tar.gz) = 693614
(-)pkg-plist (-9 lines)
Lines 3-13 Link Here
3
@sample %%DATADIR%%/conf/events.json.sample
3
@sample %%DATADIR%%/conf/events.json.sample
4
%%DATADIR%%/conf/sql/ganglia.mysql
4
%%DATADIR%%/conf/sql/ganglia.mysql
5
@sample %%DATADIR%%/conf/view_default.json.sample
5
@sample %%DATADIR%%/conf/view_default.json.sample
6
%%WWWDIR%%/.travis.yml
7
%%WWWDIR%%/AUTHORS
8
%%WWWDIR%%/COPYING
9
%%WWWDIR%%/README
10
%%WWWDIR%%/TODO
11
%%WWWDIR%%/actions.php
6
%%WWWDIR%%/actions.php
12
%%WWWDIR%%/aggregate_graphs.php
7
%%WWWDIR%%/aggregate_graphs.php
13
%%WWWDIR%%/api/.htaccess
8
%%WWWDIR%%/api/.htaccess
Lines 71-82 Link Here
71
%%WWWDIR%%/dwoo/Dwoo.compiled.php
66
%%WWWDIR%%/dwoo/Dwoo.compiled.php
72
%%WWWDIR%%/dwoo/Dwoo.php
67
%%WWWDIR%%/dwoo/Dwoo.php
73
%%WWWDIR%%/dwoo/Dwoo/Adapters/Agavi/DwooRenderer.php
68
%%WWWDIR%%/dwoo/Dwoo/Adapters/Agavi/DwooRenderer.php
74
%%WWWDIR%%/dwoo/Dwoo/Adapters/Agavi/README
75
%%WWWDIR%%/dwoo/Dwoo/Adapters/Agavi/dwoo_plugins/t.php
69
%%WWWDIR%%/dwoo/Dwoo/Adapters/Agavi/dwoo_plugins/t.php
76
%%WWWDIR%%/dwoo/Dwoo/Adapters/Agavi/dwoo_plugins/url.php
70
%%WWWDIR%%/dwoo/Dwoo/Adapters/Agavi/dwoo_plugins/url.php
77
%%WWWDIR%%/dwoo/Dwoo/Adapters/CakePHP/README
78
%%WWWDIR%%/dwoo/Dwoo/Adapters/CakePHP/dwoo.php
71
%%WWWDIR%%/dwoo/Dwoo/Adapters/CakePHP/dwoo.php
79
%%WWWDIR%%/dwoo/Dwoo/Adapters/CodeIgniter/README
80
%%WWWDIR%%/dwoo/Dwoo/Adapters/CodeIgniter/config/dwootemplate.php
72
%%WWWDIR%%/dwoo/Dwoo/Adapters/CodeIgniter/config/dwootemplate.php
81
%%WWWDIR%%/dwoo/Dwoo/Adapters/CodeIgniter/controllers/dwoowelcome.php
73
%%WWWDIR%%/dwoo/Dwoo/Adapters/CodeIgniter/controllers/dwoowelcome.php
82
%%WWWDIR%%/dwoo/Dwoo/Adapters/CodeIgniter/libraries/Dwootemplate.php
74
%%WWWDIR%%/dwoo/Dwoo/Adapters/CodeIgniter/libraries/Dwootemplate.php
Lines 84-90 Link Here
84
%%WWWDIR%%/dwoo/Dwoo/Adapters/CodeIgniter/views/page.tpl
76
%%WWWDIR%%/dwoo/Dwoo/Adapters/CodeIgniter/views/page.tpl
85
%%WWWDIR%%/dwoo/Dwoo/Adapters/ZendFramework/Dwoo.php
77
%%WWWDIR%%/dwoo/Dwoo/Adapters/ZendFramework/Dwoo.php
86
%%WWWDIR%%/dwoo/Dwoo/Adapters/ZendFramework/PluginProxy.php
78
%%WWWDIR%%/dwoo/Dwoo/Adapters/ZendFramework/PluginProxy.php
87
%%WWWDIR%%/dwoo/Dwoo/Adapters/ZendFramework/README
88
%%WWWDIR%%/dwoo/Dwoo/Adapters/ZendFramework/View.php
79
%%WWWDIR%%/dwoo/Dwoo/Adapters/ZendFramework/View.php
89
%%WWWDIR%%/dwoo/Dwoo/Block/Plugin.php
80
%%WWWDIR%%/dwoo/Dwoo/Block/Plugin.php
90
%%WWWDIR%%/dwoo/Dwoo/Compilation/Exception.php
81
%%WWWDIR%%/dwoo/Dwoo/Compilation/Exception.php

Return to bug 211763