Index: head/www/carbonapi/Makefile =================================================================== --- head/www/carbonapi/Makefile (revision 553775) +++ head/www/carbonapi/Makefile (revision 553776) @@ -1,45 +1,44 @@ # $FreeBSD$ -PORTNAME= carbonapi -DISTVERSION= 0.11.0 -CATEGORIES= www +PORTNAME= carbonapi +DISTVERSION= 0.14.1 +CATEGORIES= www -MAINTAINER= a.andersson.thn@gmail.com -COMMENT= Go implementation of carbonapi +MAINTAINER= a.andersson.thn@gmail.com +COMMENT= Go implementation of carbonapi -LICENSE= BSD2CLAUSE -LICENSE_FILE= ${WRKSRC}/LICENSE +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE -USES= gmake go +USES= go:modules -USE_GITHUB= yes -GH_ACCOUNT= go-graphite -GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME} -USE_RC_SUBR= ${PORTNAME} +USE_GITHUB= yes +GH_ACCOUNT= go-graphite -USERS= carbon -GROUPS= carbon +USE_RC_SUBR= ${PORTNAME} -OPTIONS_DEFINE= CAIRO +GO_TARGET= ./cmd/carbonapi \ + ./cmd/carbonzipper +GO_BUILDFLAGS= -v \ + ${CARBON_ARGS} \ + -ldflags="-X main.BuildVersion=${DISTVERSION}" -CAIRO_USES= pkgconfig -CAIRO_VARS= CARBON_API_ARGS=${PORTNAME} -CAIRO_VARS_OFF= CARBON_API_ARGS=nocairo -CAIRO_LIB_DEPENDS= libcairo.so:graphics/cairo +USERS= carbon +GROUPS= carbon -do-build: - @cd ${WRKSRC}/${GH_SUBDIR} && \ - ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} VERSION=${DISTVERSION} \ - ${MAKE_CMD} ${CARBON_API_ARGS} +OPTIONS_DEFINE= CAIRO EXAMPLES -do-install: - @${MKDIR} ${STAGEDIR}/${PREFIX}/etc/carbonapi +CAIRO_LIB_DEPENDS= libcairo.so:graphics/cairo +CAIRO_USES= pkgconfig +CAIRO_VARS= CARBON_ARGS="-tags cairo" + +post-install: @${MKDIR} ${STAGEDIR}/var/log/carbonapi - ${INSTALL_PROGRAM} ${WRKSRC}/carbonapi ${STAGEDIR}${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/carbonapi.example.toml ${STAGEDIR}${PREFIX}/etc/carbonapi - ${INSTALL_DATA} ${WRKSRC}/carbonapi.example.yaml ${STAGEDIR}${PREFIX}/etc/carbonapi - ${INSTALL_DATA} ${WRKSRC}/graphiteWeb.example.yaml ${STAGEDIR}${PREFIX}/etc/carbonapi - ${INSTALL_DATA} ${WRKSRC}/graphTemplates.example.toml ${STAGEDIR}${PREFIX}/etc/carbonapi - ${INSTALL_DATA} ${WRKSRC}/graphTemplates.example.yaml ${STAGEDIR}${PREFIX}/etc/carbonapi + +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/cmd/carbonapi/*.toml ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/cmd/carbonapi/*.yaml ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/cmd/carbonzipper/example.conf ${STAGEDIR}${EXAMPLESDIR}/carbonzipper.example.conf .include Index: head/www/carbonapi/distinfo =================================================================== --- head/www/carbonapi/distinfo (revision 553775) +++ head/www/carbonapi/distinfo (revision 553776) @@ -1,3 +1,3 @@ -TIMESTAMP = 1522042565 -SHA256 (go-graphite-carbonapi-0.11.0_GH0.tar.gz) = d54228f0fce17db1ed319bc7a65c4296b539e6fec34645bfcaed4baf39840efc -SIZE (go-graphite-carbonapi-0.11.0_GH0.tar.gz) = 1898657 +TIMESTAMP = 1601718887 +SHA256 (go-graphite-carbonapi-0.14.1_GH0.tar.gz) = 5f33a3aa8c9f8edfce8a26b358b6edf8c455f4156cf25e2a2399712d67282379 +SIZE (go-graphite-carbonapi-0.14.1_GH0.tar.gz) = 3485133 Index: head/www/carbonapi/files/patch-carbonapi.example.toml =================================================================== --- head/www/carbonapi/files/patch-carbonapi.example.toml (revision 553775) +++ head/www/carbonapi/files/patch-carbonapi.example.toml (nonexistent) @@ -1,19 +0,0 @@ ---- carbonapi.example.toml.orig 2018-03-20 21:03:28 UTC -+++ carbonapi.example.toml -@@ -11,7 +11,7 @@ maxBatchSize = 100 - pidFile = "" - sendGlobsAsIs = false - tz = "" --graphTemplates = "graphTemplates.example.toml" -+graphTemplates = "/usr/local/etc/carbonapi/graphTemplates.example.toml" - - [cache] - defaultTimeoutSec = 60 -@@ -35,7 +35,7 @@ logger = "" - - [[logger]] - encoding = "json" --file = "carbonapi.log" -+file = "/var/log/carbonapi/carbonapi.log" - level = "info" - logger = "" Property changes on: head/www/carbonapi/files/patch-carbonapi.example.toml ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/carbonapi/files/patch-carbonapi.example.yaml =================================================================== --- head/www/carbonapi/files/patch-carbonapi.example.yaml (revision 553775) +++ head/www/carbonapi/files/patch-carbonapi.example.yaml (nonexistent) @@ -1,19 +0,0 @@ ---- carbonapi.example.yaml.orig 2018-03-20 21:04:44 UTC -+++ carbonapi.example.yaml -@@ -106,7 +106,7 @@ upstreams: - # If not zero, enabled cache for find requests - # This parameter controls when it will expire (in seconds) - # Default: 600 (10 minutes) --graphTemplates: graphTemplates.example.yaml -+graphTemplates: /usr/local/etc/carbonapi/graphTemplates.example.yaml - expireDelaySec: 10 - # Uncomment this to get the behavior of graphite-web as proposed in https://github.com/graphite-project/graphite-web/pull/2239 - # Beware this will make darkbackground graphs less readable -@@ -125,6 +125,6 @@ logger: - encodingTime: "iso8601" - encodingDuration: "seconds" - - logger: "" -- file: "carbonapi.log" -+ file: "/var/log/carbonapi/carbonapi.log" - level: "info" - encoding: "json" Property changes on: head/www/carbonapi/files/patch-carbonapi.example.yaml ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/carbonapi/files/patch-cmd_carbonapi_carbonapi.example.toml =================================================================== --- head/www/carbonapi/files/patch-cmd_carbonapi_carbonapi.example.toml (nonexistent) +++ head/www/carbonapi/files/patch-cmd_carbonapi_carbonapi.example.toml (revision 553776) @@ -0,0 +1,20 @@ +--- cmd/carbonapi/carbonapi.example.toml.orig 2020-08-19 11:50:06 UTC ++++ cmd/carbonapi/carbonapi.example.toml +@@ -9,7 +9,7 @@ idleConnections = 10 + listen = "localhost:8081" + pidFile = "" + tz = "" +-graphTemplates = "graphTemplates.example.toml" ++graphTemplates = "/usr/local/etc/carbonapi/graphTemplates.example.toml" + + [cache] + defaultTimeoutSec = 60 +@@ -36,7 +36,7 @@ logger = "" + + [[logger]] + encoding = "json" +-file = "carbonapi.log" ++file = "/var/log/carbonapi/carbonapi.log" + level = "info" + logger = "" + Property changes on: head/www/carbonapi/files/patch-cmd_carbonapi_carbonapi.example.toml ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/carbonapi/files/patch-cmd_carbonapi_carbonapi.example.yaml =================================================================== --- head/www/carbonapi/files/patch-cmd_carbonapi_carbonapi.example.yaml (nonexistent) +++ head/www/carbonapi/files/patch-cmd_carbonapi_carbonapi.example.yaml (revision 553776) @@ -0,0 +1,19 @@ +--- cmd/carbonapi/carbonapi.example.yaml.orig 2020-08-19 11:50:06 UTC ++++ cmd/carbonapi/carbonapi.example.yaml +@@ -222,7 +222,7 @@ upstreams: + # If not zero, enabled cache for find requests + # This parameter controls when it will expire (in seconds) + # Default: 600 (10 minutes) +-graphTemplates: graphTemplates.example.yaml ++graphTemplates: /usr/local/etc/carbonapi/graphTemplates.example.yaml + expireDelaySec: 10 + # Uncomment this to get the behavior of graphite-web as proposed in https://github.com/graphite-project/graphite-web/pull/2239 + # Beware this will make darkbackground graphs less readable +@@ -241,6 +241,6 @@ logger: + encodingTime: "iso8601" + encodingDuration: "seconds" + - logger: "" +- file: "carbonapi.log" ++ file: "/var/log/carbonapi/carbonapi.log" + level: "info" + encoding: "json" Property changes on: head/www/carbonapi/files/patch-cmd_carbonapi_carbonapi.example.yaml ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/carbonapi/pkg-plist =================================================================== --- head/www/carbonapi/pkg-plist (revision 553775) +++ head/www/carbonapi/pkg-plist (revision 553776) @@ -1,7 +1,11 @@ bin/carbonapi -%%ETCDIR%%/carbonapi.example.toml -%%ETCDIR%%/carbonapi.example.yaml -%%ETCDIR%%/graphTemplates.example.toml -%%ETCDIR%%/graphTemplates.example.yaml -%%ETCDIR%%/graphiteWeb.example.yaml +bin/carbonzipper +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/carbonapi.example.clickhouse.yaml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/carbonapi.example.prometheus.yaml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/carbonapi.example.toml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/carbonapi.example.yaml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/graphTemplates.example.toml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/graphTemplates.example.yaml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/graphiteWeb.example.yaml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/carbonzipper.example.conf @dir(carbon,carbon,0750) /var/log/carbonapi