pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/grafana Import grafana-4.4.1 as www/grafana.
details: https://anonhg.NetBSD.org/pkgsrc/rev/e6309b21f1b0
branches: trunk
changeset: 365258:e6309b21f1b0
user: tnn <tnn%pkgsrc.org@localhost>
date: Wed Jul 12 10:03:22 2017 +0000
description:
Import grafana-4.4.1 as www/grafana.
Grafana is a web-based dashboard that allows you to query, visualize and
alert on metrics data stored in Graphite, InfluxFB, OpenTSDB or Prometheus.
diffstat:
www/grafana/DESCR | 2 +
www/grafana/Makefile | 92 +
www/grafana/PLIST | 3519 ++++++++++++++++++++++++++++++++++++++++++
www/grafana/distinfo | 10 +
www/grafana/files/grafana.sh | 22 +
5 files changed, 3645 insertions(+), 0 deletions(-)
diffs (truncated from 3665 to 300 lines):
diff -r 8346989e29b2 -r e6309b21f1b0 www/grafana/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/grafana/DESCR Wed Jul 12 10:03:22 2017 +0000
@@ -0,0 +1,2 @@
+Grafana is a web-based dashboard that allows you to query, visualize and
+alert on metrics data stored in Graphite, InfluxFB, OpenTSDB or Prometheus.
diff -r 8346989e29b2 -r e6309b21f1b0 www/grafana/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/grafana/Makefile Wed Jul 12 10:03:22 2017 +0000
@@ -0,0 +1,92 @@
+# $NetBSD: Makefile,v 1.1 2017/07/12 10:03:22 tnn Exp $
+
+GITHUB_PROJECT= grafana
+DISTNAME= grafana-4.4.1
+GITHUB_TAG= v${PKGVERSION_NOREV}
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_GITHUB:=grafana/}
+EXTRACT_SUFX= .tar.gz
+
+MAINTAINER= tnn%NetBSD.org@localhost
+HOMEPAGE= https://github.com/grafana/grafana/
+COMMENT= Metrics dashboard and graph editor
+LICENSE= apache-2.0
+
+GR_DISTNAME= ${DISTNAME}${EXTRACT_SUFX}
+DISTFILES= ${GR_DISTNAME}
+EXTRACT_ONLY= ${GR_DISTNAME}
+EXTRACT_DIR.${GR_DISTNAME}= ${WRKDIR}/src/github.com/grafana
+WRKSRC= ${WRKDIR}/src/github.com/grafana/grafana
+
+# We don't have suitable infrastructure in pkgsrc for generating frontend
+# assets, so we'll extract prebuilt frontend assets.
+FE_DISTNAME= ${DISTNAME}.linux-x64${EXTRACT_SUFX}
+SITES.${FE_DISTNAME}= https://s3-us-west-2.amazonaws.com/grafana-releases/release/
+DISTFILES+= ${FE_DISTNAME}
+EXTRACT_ONLY+= ${FE_DISTNAME}
+EXTRACT_DIR.${FE_DISTNAME}= ${WRKDIR}/frontend_assets
+
+BUILD_DEPENDS+= go-[0-9]*:../../lang/go
+
+CHECK_PORTABILITY_SKIP= packaging/rpm/control/postinst
+PKGSRC_MAKE_ENV+= GOPATH=${WRKDIR}
+USE_TOOLS+= pax
+
+PUBLICDIR= ${PREFIX}/share/grafana/public
+DATADIR= ${VARBASE}/lib/grafana/data
+PLUGINDIR= ${VARBASE}/lib/grafana/plugins
+LOGDIR= ${VARBASE}/log/grafana
+
+SUBST_CLASSES+= fix-cfg
+SUBST_STAGE.fix-cfg= pre-configure
+SUBST_MESSAGE.fix-cfg= Adding pkgsrc paths in sample config
+SUBST_FILES.fix-cfg= conf/sample.ini
+SUBST_SED.fix-cfg= -e 's,^;\(data = \).*,\1${DATADIR},g'
+SUBST_SED.fix-cfg+= -e 's,^;\(logs = \).*,\1${LOGDIR},g'
+SUBST_SED.fix-cfg+= -e 's,^;\(plugins = \).*,\1${PLUGINDIR},g'
+SUBST_SED.fix-cfg+= -e 's,^;\(static_root_path = \).*,\1${PUBLICDIR},g'
+
+BUILD_DEFS+= GRAFANA_USER GRAFANA_GROUP VARBASE
+FILES_SUBST+= GRAFANA_USER=${GRAFANA_USER:Q}
+FILES_SUBST+= GRAFANA_GROUP=${GRAFANA_GROUP:Q}
+GRAFANA_USER?= grafana
+GRAFANA_GROUP?= grafana
+OWN_DIRS_PERMS+= ${DATADIR} ${GRAFANA_USER} ${GRAFANA_GROUP} 0700
+OWN_DIRS_PERMS+= ${LOGDIR} ${GRAFANA_USER} ${GRAFANA_GROUP} 0700
+OWN_DIRS_PERMS+= ${PLUGINDIR} ${GRAFANA_USER} ${GRAFANA_GROUP} 0700
+PKG_USERS_VARS+= GRAFANA_USER
+PKG_GROUPS_VARS+= GRAFANA_GROUP
+PKG_GROUPS= ${GRAFANA_GROUP}
+PKG_USERS= ${GRAFANA_USER}:${GRAFANA_GROUP}
+RCD_SCRIPTS= grafana
+
+INSTALLATION_DIRS+= bin share/examples/grafana share/grafana/conf \
+ share/grafana/public
+
+CONF_FILES+= ${PREFIX}/share/grafana/conf/sample.ini \
+ ${PKG_SYSCONFDIR}/grafana.conf
+
+post-extract:
+ ${MV} ${WRKDIR}/src/github.com/grafana/${DISTNAME} \
+ ${WRKDIR}/src/github.com/grafana/grafana
+
+do-build:
+.for b in grafana-server grafana-cli
+ cd ${WRKSRC} && ${SETENV} ${PKGSRC_MAKE_ENV} \
+ ${PREFIX}/bin/go build -ldflags "-w -X main.version=${PKGVERSION_NOREV} -X main.commit=${GITHUB_TAG} -X main.buildstamp=pkgsrc" \
+ -o ./bin/${b} ./pkg/cmd/${b}
+.endfor
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/grafana-server \
+ ${DESTDIR}${PREFIX}/bin/grafana-server
+ ${INSTALL_PROGRAM} ${WRKSRC}//bin/grafana-cli \
+ ${DESTDIR}${PREFIX}/bin/grafana-cli
+ cd ${WRKDIR}/frontend_assets/${DISTNAME}/public && \
+ ${PAX} -rw . ${DESTDIR}${PUBLICDIR}
+ ${INSTALL_DATA} ${WRKSRC}/conf/defaults.ini \
+ ${DESTDIR}${PREFIX}/share/grafana/conf/defaults.ini
+ ${INSTALL_DATA} ${WRKSRC}/conf/sample.ini \
+ ${DESTDIR}${PREFIX}/share/grafana/conf/sample.ini
+
+.include "../../mk/bsd.pkg.mk"
diff -r 8346989e29b2 -r e6309b21f1b0 www/grafana/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/www/grafana/PLIST Wed Jul 12 10:03:22 2017 +0000
@@ -0,0 +1,3519 @@
+@comment $NetBSD: PLIST,v 1.1 2017/07/12 10:03:22 tnn Exp $
+bin/grafana-cli
+bin/grafana-server
+share/grafana/conf/defaults.ini
+share/grafana/conf/sample.ini
+share/grafana/public/app/app.d.ts
+share/grafana/public/app/app.js
+share/grafana/public/app/app.js.map
+share/grafana/public/app/app.ts
+share/grafana/public/app/app_bundle.js
+share/grafana/public/app/boot.74ebeed4.js
+share/grafana/public/app/boot.js
+share/grafana/public/app/core/app_events.d.ts
+share/grafana/public/app/core/app_events.js
+share/grafana/public/app/core/app_events.js.map
+share/grafana/public/app/core/app_events.ts
+share/grafana/public/app/core/components/collapse_box.d.ts
+share/grafana/public/app/core/components/collapse_box.js
+share/grafana/public/app/core/components/collapse_box.js.map
+share/grafana/public/app/core/components/collapse_box.ts
+share/grafana/public/app/core/components/colorpicker.d.ts
+share/grafana/public/app/core/components/colorpicker.js
+share/grafana/public/app/core/components/colorpicker.js.map
+share/grafana/public/app/core/components/colorpicker.ts
+share/grafana/public/app/core/components/dashboard_selector.d.ts
+share/grafana/public/app/core/components/dashboard_selector.js
+share/grafana/public/app/core/components/dashboard_selector.js.map
+share/grafana/public/app/core/components/dashboard_selector.ts
+share/grafana/public/app/core/components/form_dropdown/form_dropdown.d.ts
+share/grafana/public/app/core/components/form_dropdown/form_dropdown.js
+share/grafana/public/app/core/components/form_dropdown/form_dropdown.js.map
+share/grafana/public/app/core/components/form_dropdown/form_dropdown.ts
+share/grafana/public/app/core/components/grafana_app.d.ts
+share/grafana/public/app/core/components/grafana_app.js
+share/grafana/public/app/core/components/grafana_app.js.map
+share/grafana/public/app/core/components/grafana_app.ts
+share/grafana/public/app/core/components/help/help.d.ts
+share/grafana/public/app/core/components/help/help.html
+share/grafana/public/app/core/components/help/help.js
+share/grafana/public/app/core/components/help/help.js.map
+share/grafana/public/app/core/components/help/help.ts
+share/grafana/public/app/core/components/info_popover.d.ts
+share/grafana/public/app/core/components/info_popover.js
+share/grafana/public/app/core/components/info_popover.js.map
+share/grafana/public/app/core/components/info_popover.ts
+share/grafana/public/app/core/components/json_explorer/helpers.d.ts
+share/grafana/public/app/core/components/json_explorer/helpers.js
+share/grafana/public/app/core/components/json_explorer/helpers.js.map
+share/grafana/public/app/core/components/json_explorer/helpers.ts
+share/grafana/public/app/core/components/json_explorer/json_explorer.d.ts
+share/grafana/public/app/core/components/json_explorer/json_explorer.js
+share/grafana/public/app/core/components/json_explorer/json_explorer.js.map
+share/grafana/public/app/core/components/json_explorer/json_explorer.ts
+share/grafana/public/app/core/components/jsontree/jsontree.d.ts
+share/grafana/public/app/core/components/jsontree/jsontree.js
+share/grafana/public/app/core/components/jsontree/jsontree.js.map
+share/grafana/public/app/core/components/jsontree/jsontree.ts
+share/grafana/public/app/core/components/layout_selector/layout_selector.d.ts
+share/grafana/public/app/core/components/layout_selector/layout_selector.js
+share/grafana/public/app/core/components/layout_selector/layout_selector.js.map
+share/grafana/public/app/core/components/layout_selector/layout_selector.ts
+share/grafana/public/app/core/components/navbar/navbar.d.ts
+share/grafana/public/app/core/components/navbar/navbar.html
+share/grafana/public/app/core/components/navbar/navbar.js
+share/grafana/public/app/core/components/navbar/navbar.js.map
+share/grafana/public/app/core/components/navbar/navbar.ts
+share/grafana/public/app/core/components/query_part/query_part.d.ts
+share/grafana/public/app/core/components/query_part/query_part.js
+share/grafana/public/app/core/components/query_part/query_part.js.map
+share/grafana/public/app/core/components/query_part/query_part.ts
+share/grafana/public/app/core/components/query_part/query_part_editor.d.ts
+share/grafana/public/app/core/components/query_part/query_part_editor.js
+share/grafana/public/app/core/components/query_part/query_part_editor.js.map
+share/grafana/public/app/core/components/query_part/query_part_editor.ts
+share/grafana/public/app/core/components/scroll/scroll.d.ts
+share/grafana/public/app/core/components/scroll/scroll.js
+share/grafana/public/app/core/components/scroll/scroll.js.map
+share/grafana/public/app/core/components/scroll/scroll.ts
+share/grafana/public/app/core/components/search/search.d.ts
+share/grafana/public/app/core/components/search/search.html
+share/grafana/public/app/core/components/search/search.js
+share/grafana/public/app/core/components/search/search.js.map
+share/grafana/public/app/core/components/search/search.ts
+share/grafana/public/app/core/components/sidemenu/sidemenu.d.ts
+share/grafana/public/app/core/components/sidemenu/sidemenu.html
+share/grafana/public/app/core/components/sidemenu/sidemenu.js
+share/grafana/public/app/core/components/sidemenu/sidemenu.js.map
+share/grafana/public/app/core/components/sidemenu/sidemenu.ts
+share/grafana/public/app/core/components/switch.d.ts
+share/grafana/public/app/core/components/switch.js
+share/grafana/public/app/core/components/switch.js.map
+share/grafana/public/app/core/components/switch.ts
+share/grafana/public/app/core/components/wizard/wizard.d.ts
+share/grafana/public/app/core/components/wizard/wizard.html
+share/grafana/public/app/core/components/wizard/wizard.js
+share/grafana/public/app/core/components/wizard/wizard.js.map
+share/grafana/public/app/core/components/wizard/wizard.ts
+share/grafana/public/app/core/config.js
+share/grafana/public/app/core/controllers/all.js
+share/grafana/public/app/core/controllers/error_ctrl.js
+share/grafana/public/app/core/controllers/inspect_ctrl.js
+share/grafana/public/app/core/controllers/invited_ctrl.js
+share/grafana/public/app/core/controllers/json_editor_ctrl.js
+share/grafana/public/app/core/controllers/login_ctrl.js
+share/grafana/public/app/core/controllers/reset_password_ctrl.js
+share/grafana/public/app/core/controllers/signup_ctrl.d.ts
+share/grafana/public/app/core/controllers/signup_ctrl.js
+share/grafana/public/app/core/controllers/signup_ctrl.js.map
+share/grafana/public/app/core/controllers/signup_ctrl.ts
+share/grafana/public/app/core/core.d.ts
+share/grafana/public/app/core/core.js
+share/grafana/public/app/core/core.js.map
+share/grafana/public/app/core/core.ts
+share/grafana/public/app/core/core_module.d.ts
+share/grafana/public/app/core/core_module.js
+share/grafana/public/app/core/core_module.js.map
+share/grafana/public/app/core/core_module.ts
+share/grafana/public/app/core/directives/array_join.d.ts
+share/grafana/public/app/core/directives/array_join.js
+share/grafana/public/app/core/directives/array_join.js.map
+share/grafana/public/app/core/directives/array_join.ts
+share/grafana/public/app/core/directives/confirm_click.js
+share/grafana/public/app/core/directives/dash_class.js
+share/grafana/public/app/core/directives/dash_edit_link.js
+share/grafana/public/app/core/directives/diff-view.d.ts
+share/grafana/public/app/core/directives/diff-view.js
+share/grafana/public/app/core/directives/diff-view.js.map
+share/grafana/public/app/core/directives/diff-view.ts
+share/grafana/public/app/core/directives/dropdown_typeahead.js
+share/grafana/public/app/core/directives/give_focus.d.ts
+share/grafana/public/app/core/directives/give_focus.js
+share/grafana/public/app/core/directives/give_focus.js.map
+share/grafana/public/app/core/directives/give_focus.ts
+share/grafana/public/app/core/directives/metric_segment.js
+share/grafana/public/app/core/directives/misc.js
+share/grafana/public/app/core/directives/ng_model_on_blur.js
+share/grafana/public/app/core/directives/password_strength.js
+share/grafana/public/app/core/directives/plugin_component.d.ts
+share/grafana/public/app/core/directives/plugin_component.js
+share/grafana/public/app/core/directives/plugin_component.js.map
+share/grafana/public/app/core/directives/plugin_component.ts
+share/grafana/public/app/core/directives/rebuild_on_change.d.ts
+share/grafana/public/app/core/directives/rebuild_on_change.js
+share/grafana/public/app/core/directives/rebuild_on_change.js.map
+share/grafana/public/app/core/directives/rebuild_on_change.ts
+share/grafana/public/app/core/directives/spectrum_picker.js
+share/grafana/public/app/core/directives/tags.js
+share/grafana/public/app/core/directives/value_select_dropdown.js
+share/grafana/public/app/core/filters/filters.d.ts
+share/grafana/public/app/core/filters/filters.js
+share/grafana/public/app/core/filters/filters.js.map
+share/grafana/public/app/core/filters/filters.ts
+share/grafana/public/app/core/jquery_extended.js
+share/grafana/public/app/core/live/live_srv.d.ts
+share/grafana/public/app/core/live/live_srv.js
+share/grafana/public/app/core/live/live_srv.js.map
+share/grafana/public/app/core/live/live_srv.ts
+share/grafana/public/app/core/lodash_extended.js
+share/grafana/public/app/core/mod_defs.d.ts
+share/grafana/public/app/core/nav_model_srv.d.ts
+share/grafana/public/app/core/nav_model_srv.js
+share/grafana/public/app/core/nav_model_srv.js.map
+share/grafana/public/app/core/nav_model_srv.ts
+share/grafana/public/app/core/partials.js
+share/grafana/public/app/core/profiler.d.ts
+share/grafana/public/app/core/profiler.js
+share/grafana/public/app/core/profiler.js.map
+share/grafana/public/app/core/profiler.ts
+share/grafana/public/app/core/routes/bundle_loader.d.ts
+share/grafana/public/app/core/routes/bundle_loader.js
+share/grafana/public/app/core/routes/bundle_loader.js.map
+share/grafana/public/app/core/routes/bundle_loader.ts
+share/grafana/public/app/core/routes/dashboard_loaders.js
+share/grafana/public/app/core/routes/routes.d.ts
+share/grafana/public/app/core/routes/routes.js
+share/grafana/public/app/core/routes/routes.js.map
+share/grafana/public/app/core/routes/routes.ts
+share/grafana/public/app/core/services/alert_srv.d.ts
+share/grafana/public/app/core/services/alert_srv.js
+share/grafana/public/app/core/services/alert_srv.js.map
+share/grafana/public/app/core/services/alert_srv.ts
+share/grafana/public/app/core/services/all.js
+share/grafana/public/app/core/services/analytics.js
+share/grafana/public/app/core/services/backend_srv.d.ts
+share/grafana/public/app/core/services/backend_srv.js
+share/grafana/public/app/core/services/backend_srv.js.map
+share/grafana/public/app/core/services/backend_srv.ts
+share/grafana/public/app/core/services/context_srv.d.ts
+share/grafana/public/app/core/services/context_srv.js
+share/grafana/public/app/core/services/context_srv.js.map
+share/grafana/public/app/core/services/context_srv.ts
+share/grafana/public/app/core/services/datasource_srv.js
+share/grafana/public/app/core/services/dynamic_directive_srv.d.ts
+share/grafana/public/app/core/services/dynamic_directive_srv.js
Home |
Main Index |
Thread Index |
Old Index