From 92a37e83b3b86142a53ccd051fd0fbaea5c6b163 Mon Sep 17 00:00:00 2001 From: imil Date: Tue, 8 Mar 2016 16:52:44 +0000 Subject: Initial import of facette, version 0.4.0dev, into the NetBSD Packages Collection. Facette is a time series data (called metrics) visualization software, it doesn't collect nor store these data on its own. Through providers, it inventories other collect/storage tools' local metrics, and queries those remote storage resources when the user requests time series data to be displayed on a graph. --- sysutils/facette/DESCR | 5 +++ sysutils/facette/Makefile | 45 ++++++++++++++++++++++ sysutils/facette/PLIST | 65 ++++++++++++++++++++++++++++++++ sysutils/facette/distinfo | 7 ++++ sysutils/facette/patches/patch-Makefile | 67 +++++++++++++++++++++++++++++++++ 5 files changed, 189 insertions(+) create mode 100644 sysutils/facette/DESCR create mode 100644 sysutils/facette/Makefile create mode 100644 sysutils/facette/PLIST create mode 100644 sysutils/facette/distinfo create mode 100644 sysutils/facette/patches/patch-Makefile (limited to 'sysutils/facette') diff --git a/sysutils/facette/DESCR b/sysutils/facette/DESCR new file mode 100644 index 00000000000..5fe5be29336 --- /dev/null +++ b/sysutils/facette/DESCR @@ -0,0 +1,5 @@ +Facette is a time series data (called metrics) visualization software, it +doesn't collect nor store these data on its own. Through providers, it +inventories other collect/storage tools' local metrics, and queries those +remote storage resources when the user requests time series data to be +displayed on a graph. diff --git a/sysutils/facette/Makefile b/sysutils/facette/Makefile new file mode 100644 index 00000000000..f04d45ad5f2 --- /dev/null +++ b/sysutils/facette/Makefile @@ -0,0 +1,45 @@ +# $NetBSD: Makefile,v 1.1 2016/03/08 16:52:44 imil Exp $ + +DISTNAME= facette-0.4.0dev +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_GITHUB:=facette/} +GITHUB_PROJECT= facette +GITHUB_TAG= d77e77680d52d232305d0f12af6e3e1c857903cb + +MAINTAINER= imil@NetBSD.org +HOMEPAGE= https://facette.io/ +COMMENT= Time series data visualization and graphing +LICENSE= modified-bsd + +EXTRACT_USING= bsdtar + +USE_TOOLS+= bsdtar gmake gsed pax pkg-config +BUILD_DEPENDS+= go-[0-9]*:../../lang/go +BUILD_DEPENDS+= nodejs-[0-9]*:../../lang/nodejs + +SUBST_CLASSES+= paths +SUBST_MESSAGE.paths= Fixing hardcoded paths. +SUBST_STAGE.paths= pre-build +SUBST_FILES.paths= Makefile +SUBST_SED.paths= -e 's,/usr/local,${PREFIX}/,g' + +MAKE_ENV+= CGO_LDFLAGS="-L${PREFIX}/lib -Wl,-rpath,${PREFIX}/lib" + +DOCDIR= ${PREFIX}/share/doc/facette +EGDIR= ${PREFIX}/share/examples/facette +DATADIR= ${PREFIX}/share/facette +INSTALLATION_DIRS+= bin ${EGDIR} ${DOCDIR} ${DATADIR}/static + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/build/*/bin/facette \ + ${DESTDIR}${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/build/*/bin/facettectl \ + ${DESTDIR}${PREFIX}/bin/ + cd ${WRKSRC}/docs/man && ${PAX} -rw * ${DESTDIR}${DOCDIR} + cd ${WRKSRC}/docs/examples && ${PAX} -rw * ${DESTDIR}${EGDIR} + cd ${WRKSRC}/build/*/template && ${PAX} -rw * ${DESTDIR}${DATADIR} + cd ${WRKSRC}/build/*/static && ${PAX} -rw * ${DESTDIR}${DATADIR}/static + + +.include "../../databases/rrdtool/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/facette/PLIST b/sysutils/facette/PLIST new file mode 100644 index 00000000000..86ca6a6dcb6 --- /dev/null +++ b/sysutils/facette/PLIST @@ -0,0 +1,65 @@ +@comment $NetBSD: PLIST,v 1.1 2016/03/08 16:52:44 imil Exp $ +bin/facette +bin/facettectl +share/doc/facette/facette.1.md +share/doc/facette/facettectl.8.md +share/examples/facette/facette.apache2 +share/examples/facette/facette.json +share/examples/facette/facette.nginx +share/examples/facette/providers/collectd.json +share/examples/facette/providers/graphite.json +share/examples/facette/providers/influxdb.json +share/examples/facette/providers/kairosdb.json +share/facette/admin/catalog_list.html +share/facette/admin/collection_edit.html +share/facette/admin/collection_list.html +share/facette/admin/graph_edit.html +share/facette/admin/graph_edit_linked.html +share/facette/admin/graph_list.html +share/facette/admin/group_edit.html +share/facette/admin/group_list.html +share/facette/admin/index.html +share/facette/admin/layout.html +share/facette/admin/scale_edit.html +share/facette/admin/scale_list.html +share/facette/admin/unit_edit.html +share/facette/admin/unit_list.html +share/facette/browse/collection.html +share/facette/browse/graph.html +share/facette/browse/index.html +share/facette/browse/layout.html +share/facette/browse/search.html +share/facette/common/element.html +share/facette/common/graph.html +share/facette/error.html +share/facette/layout.html +share/facette/opensearch.xml +share/facette/show/graph.html +share/facette/show/layout.html +share/facette/static/canvg.js +share/facette/static/facette.js +share/facette/static/facette.src.js +share/facette/static/favicon.png +share/facette/static/fonts/Lato-Bold.ttf +share/facette/static/fonts/Lato-Light.ttf +share/facette/static/fonts/Lato-Regular.ttf +share/facette/static/fonts/fontawesome-webfont.eot +share/facette/static/fonts/fontawesome-webfont.svg +share/facette/static/fonts/fontawesome-webfont.ttf +share/facette/static/fonts/fontawesome-webfont.woff +share/facette/static/highcharts.exporting.js +share/facette/static/highcharts.js +share/facette/static/i18next.js +share/facette/static/jquery.datepicker.js +share/facette/static/jquery.js +share/facette/static/loader.gif +share/facette/static/logo-text-light.png +share/facette/static/logo-text.png +share/facette/static/messages.json +share/facette/static/moment.js +share/facette/static/rgbcolor.js +share/facette/static/sprintf.js +share/facette/static/style.css +share/facette/static/style.print.css +share/facette/static/style.print.src.css +share/facette/static/style.src.css diff --git a/sysutils/facette/distinfo b/sysutils/facette/distinfo new file mode 100644 index 00000000000..469c8815ffa --- /dev/null +++ b/sysutils/facette/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2016/03/08 16:52:44 imil Exp $ + +SHA1 (facette-0.4.0dev-d77e77680d52d232305d0f12af6e3e1c857903cb.tar.gz) = d0025f1b4612b5c6230793fa962dd9d9cc753b72 +RMD160 (facette-0.4.0dev-d77e77680d52d232305d0f12af6e3e1c857903cb.tar.gz) = 94821f0b05c8381f12140827827e23faf9277608 +SHA512 (facette-0.4.0dev-d77e77680d52d232305d0f12af6e3e1c857903cb.tar.gz) = 6739f0c2b599b4297b9dec12c0a288f4f1b0a9e6aed8774a2b8daa82cfbe5f577d3e4c5bb247a2853a1775ba6a5f7502e5b03f1e77aab85a46b6da82dff0852c +Size (facette-0.4.0dev-d77e77680d52d232305d0f12af6e3e1c857903cb.tar.gz) = 3580148 bytes +SHA1 (patch-Makefile) = 7f91867729aa60c7329138af846239cc61f3898c diff --git a/sysutils/facette/patches/patch-Makefile b/sysutils/facette/patches/patch-Makefile new file mode 100644 index 00000000000..45438464941 --- /dev/null +++ b/sysutils/facette/patches/patch-Makefile @@ -0,0 +1,67 @@ +$NetBSD: patch-Makefile,v 1.1 2016/03/08 16:52:44 imil Exp $ + +Make facette Makefile NetBSD-friendly. + +* Use gsed to support all used flags +* Disable pandoc +* Use pax instead of rsync + +--- Makefile.orig 2015-12-22 05:00:11.000000000 +0000 ++++ Makefile +@@ -16,6 +16,13 @@ UNAME := $(shell uname -s) + + GO ?= go + ++# might apply to other BSDs ++ifeq ($(UNAME), NetBSD) ++SED = gsed ++else ++SED = sed ++endif ++ + GOOS ?= $(shell $(GO) env GOOS) + GOARCH ?= $(shell $(GO) env GOARCH) + +@@ -88,7 +95,12 @@ clean: clean-bin clean-doc clean-static + @(test ! -d $(BUILD_DIR) || rmdir $(BUILD_DIR)) && \ + $(call mesg_ok) || $(call mesg_fail) + +-build: build-bin build-doc build-static ++# NetBSD doesn't have pandoc packaged yet ++ifneq ($(UNAME), NetBSD) ++do_buid_docs = build-doc ++endif ++ ++build: build-bin $(do_buid_docs) build-static + + .PHONY: install + install: install-bin install-doc install-static +@@ -277,7 +289,7 @@ $(SCRIPT_EXTRA_OUTPUT): $(SCRIPT_EXTRA) + $(MESG_OUTPUT): $(MESG_SRC) + @$(call mesg_start,static,Packing $(MESG_SRC) file...) + @install -d -m 0755 $(BUILD_DIR)/static && \ +- sed -e 's/^\s\+//g;s/\s\+$$//g' $(MESG_SRC) | sed -e ':a;N;s/\n//;ta' >$(MESG_OUTPUT) && \ ++ $(SED) -e 's/^\s\+//g;s/\s\+$$//g' $(MESG_SRC) | $(SED) -e ':a;N;s/\n//;ta' >$(MESG_OUTPUT) && \ + $(call mesg_ok) || $(call mesg_fail) + + $(STYLE_OUTPUT): lessc $(STYLE_SRC) +@@ -302,8 +314,8 @@ $(STYLE_EXTRA_OUTPUT): $(STYLE_EXTRA) + $(call mesg_ok) || $(call mesg_fail) + + $(TMPL_OUTPUT): $(TMPL_SRC) +-ifeq ($(UNAME), Darwin) +- $(eval COPY_CMD=rsync -rR) ++ifneq ($(UNAME), Linux) ++ $(eval COPY_CMD=pax -rwpe) + else + $(eval COPY_CMD=cp -r --parents) + endif +@@ -337,7 +349,7 @@ devel-static: build-static + $(call mesg_ok) || $(call mesg_fail) + @$(call mesg_start,install,Copying static third-party development files...) + @(for ENTRY in $(SCRIPT_EXTRA:.js=.src.js); do \ +- cp $$ENTRY $(BUILD_DIR)/static/`basename $$ENTRY | sed -e 's@\.src\.js$$@.js@'`; \ ++ cp $$ENTRY $(BUILD_DIR)/static/`basename $$ENTRY | $(SED) -e 's@\.src\.js$$@.js@'`; \ + done) && $(call mesg_ok) || $(call mesg_fail) + + lint-static: jshint $(SCRIPT_OUTPUT) -- cgit v1.2.3