Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jan 2017 14:41:18 +0000 (UTC)
From:      Brad Davis <brd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r432848 - head/www/grafana3
Message-ID:  <201701301441.v0UEfIle009071@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brd
Date: Mon Jan 30 14:41:18 2017
New Revision: 432848
URL: https://svnweb.freebsd.org/changeset/ports/432848

Log:
  Fix www/grafana3 to use the right phantomjs binaries.
  
  PR:		215468
  Submitted by:	brd
  Approved by:	maintainer timeout, bdrewery (implicit)

Modified:
  head/www/grafana3/Makefile
  head/www/grafana3/pkg-plist

Modified: head/www/grafana3/Makefile
==============================================================================
--- head/www/grafana3/Makefile	Mon Jan 30 14:30:12 2017	(r432847)
+++ head/www/grafana3/Makefile	Mon Jan 30 14:41:18 2017	(r432848)
@@ -3,7 +3,7 @@
 PORTNAME=	grafana
 PORTVERSION=	3.1.1
 DISTVERSIONPREFIX=	v
-PORTREVISION=	2
+PORTREVISION=	3
 PKGNAMESUFFIX=	3
 CATEGORIES=	www
 
@@ -14,6 +14,9 @@ LICENSE=	APACHE20
 
 BUILD_DEPENDS=	${LOCALBASE}/bin/go:lang/go
 
+RUN_DEPENDS=	${LOCALBASE}/bin/phantomjs:lang/phantomjs \
+		webfonts>=0:x11-fonts/webfonts
+
 ONLY_FOR_ARCHS=	i386 amd64
 
 USE_RC_SUBR=	grafana3
@@ -140,6 +143,10 @@ do-install:
 	${INSTALL_DATA} ${WRKSRC}/src/github.com/grafana/grafana/conf/defaults.ini \
 		${STAGEDIR}${GRAFANAHOMEDIR}/conf/defaults.ini
 	${INSTALL_DATA} ${WRKDIR}/grafana3.conf ${STAGEDIR}${PREFIX}/etc/grafana3.conf.sample
+	${MKDIR} ${STAGEDIR}${GRAFANAHOMEDIR}/vendor/phantomjs/
+	${INSTALL_DATA} ${WRKSRC}/src/github.com/grafana/grafana/vendor/phantomjs/render.js \
+		${STAGEDIR}${GRAFANAHOMEDIR}/vendor/phantomjs/
+	${LN} -s /usr/local/bin/phantomjs ${STAGEDIR}${GRAFANAHOMEDIR}/vendor/phantomjs/phantomjs
 
 .include <bsd.port.pre.mk>
 

Modified: head/www/grafana3/pkg-plist
==============================================================================
--- head/www/grafana3/pkg-plist	Mon Jan 30 14:30:12 2017	(r432847)
+++ head/www/grafana3/pkg-plist	Mon Jan 30 14:41:18 2017	(r432848)
@@ -42868,6 +42868,8 @@ share/grafana/public_gen/vendor/zero_cli
 share/grafana/public_gen/vendor/zero_clipboard.swf
 share/grafana/public_gen/views/500.html
 share/grafana/public_gen/views/index.html
+share/grafana/vendor/phantomjs/render.js
+share/grafana/vendor/phantomjs/phantomjs
 @dir share/grafana/data/log
 @dir /var/db/grafana3/dashboards
 @dir /var/db/grafana3/plugins



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