<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/8d5028d35cb69617a3b949dfd49aba1914eeab10">https://github.com/macports/macports-ports/commit/8d5028d35cb69617a3b949dfd49aba1914eeab10</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 8d5028d35cb grafana: update to 10.0.3
</span>8d5028d35cb is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 8d5028d35cb69617a3b949dfd49aba1914eeab10
</span>Author: slashapp <slashapp@gmail.com>
AuthorDate: Sat Aug 5 10:18:16 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> grafana: update to 10.0.3
</span>---
net/grafana/Portfile | 58 ++++++++++++++--------------
net/grafana/files/grafana.ini.diff | 38 +++++++++---------
net/grafana/files/org.macports.grafana.plist | 3 +-
3 files changed, 50 insertions(+), 49 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/grafana/Portfile b/net/grafana/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 72a9b2c4ae8..0d6baf81839 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/grafana/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/grafana/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem 1.0
</span> PortGroup golang 1.0
PortGroup legacysupport 1.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-go.setup github.com/grafana/grafana 7.5.7 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+go.setup github.com/grafana/grafana 10.0.3 v
</span> revision 0
homepage https://grafana.com
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,14 +24,14 @@ license Apache-2
</span> maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 af50ff58a17d78f8d1986c8c45fb16ee20581206 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 ec1271b5a7202a12cb8046141025ad61aaa42e54425ab40acb7de46461896838 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 10926986
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 7aa7bacbf82a1e3110891e8c67fa7c8ef569d814 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 9c1a1e3a9133abe4140aabad0d968f43ec2b3b14309f0dff80da367220bf58ff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 26833682
</span>
github.tarball_from archive
depends_build-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- path:bin/node:nodejs15 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ path:bin/node:nodejs16 \
</span> port:yarn
# Allow fetching deps at build time for now
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -49,8 +49,9 @@ set grafana_user ${name}
</span> set grafana_conf_dir ${prefix}/etc/${name}
set grafana_conf_file ${grafana_conf_dir}/${name}.ini
set grafana_data_dir ${prefix}/var/db/${name}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set grafana_share_dir ${prefix}/share/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set grafana_sock_dir ${prefix}/var/run/${name}
</span> set grafana_log_dir ${prefix}/var/log/${name}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set grafana_share_dir ${prefix}/share/${name}
</span> set grafana_conf_tpl ${grafana_share_dir}/conf/${name}.ini
set grafana_plist org.macports.${name}.plist
set grafana_plist_dir ${prefix}/etc/LaunchDaemons/org.macports.${name}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -67,28 +68,19 @@ post-patch {
</span> reinplace "s|@CONFFILE@|${grafana_conf_file}|g" ${workpath}/${grafana_plist}
reinplace "s|@SHAREDIR@|${grafana_share_dir}|g" ${workpath}/${grafana_plist}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- # Disable nodejs version limitation
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace {s|"node": ">=12 <13"|"node": ">=12"|} ${worksrcpath}/package.json
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Run yarn in verbose mode
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace {s|yarn install|yarn install --verbose|g} ${worksrcpath}/Makefile
</span> }
destroot.keepdirs-append \
${destroot}${grafana_conf_dir} \
${destroot}${grafana_data_dir} \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${grafana_sock_dir} \
</span> ${destroot}${grafana_log_dir}
destroot {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set goos ${os.platform}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- switch ${build_arch} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- i386 { set goarch 386 }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- x86_64 { set goarch amd64 }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- default { set goarch {} }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 ${worksrcpath}/bin/${goos}-${goarch}/${name} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/bin/
</span>
xinstall -m 755 ${worksrcpath}/bin/${goos}-${goarch}/${name}-cli \
${destroot}${prefix}/bin/
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -105,6 +97,9 @@ destroot {
</span> xinstall -m 755 -o ${grafana_user} -g ${grafana_user} -d \
${destroot}${grafana_log_dir}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 -o ${grafana_user} -g ${grafana_user} -d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${grafana_sock_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> xinstall -d -m 755 ${destroot}${grafana_share_dir}/conf
xinstall -d -m 755 ${destroot}${grafana_share_dir}/public
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -116,15 +111,17 @@ destroot {
</span> copy ${destroot}${grafana_share_dir}/conf/defaults.ini \
${destroot}${grafana_conf_tpl}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- system -W ${destroot}${grafana_share_dir}/conf/ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "patch -p0 < ${filespath}/grafana.ini.diff"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${destroot}${grafana_share_dir}/conf/ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "patch -p0 < ${filespath}/grafana.ini.diff"
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@CONFPATH@|${grafana_conf_dir}|g" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${grafana_conf_tpl}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@DATAPATH@|${grafana_data_dir}|g" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${grafana_conf_tpl}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@LOGPATH@|${grafana_log_dir}|g" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${grafana_conf_tpl}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@CONFPATH@|${grafana_conf_dir}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${grafana_conf_tpl}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@DATAPATH@|${grafana_data_dir}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${grafana_conf_tpl}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@SOCKPATH@|${grafana_sock_dir}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${grafana_conf_tpl}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@LOGPATH@|${grafana_log_dir}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${grafana_conf_tpl}
</span>
xinstall -d -m 755 ${destroot}${grafana_plist_dir}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -147,17 +144,20 @@ post-activate {
</span>
notes "
Grafana's configuration file is available at: ${grafana_conf_file}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-To enable the Grafana service, use `port load`, as follows: \$ sudo port load ${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+To enable the Grafana service, use `port load`, as follows:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\$ sudo port load ${name}
</span>
Once the service is enabled, Grafana will:
<span style='display:block; white-space:pre;background:#ffe0e0;'>- - listen by default on: http://localhost:3900
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - listen by default on: http://localhost:3000
</span> - write logs to: ${grafana_log_dir}
You will need to run grafana-cli with a custom homepath and config setting.
Here is an example of doing so to set the admin password:
<span style='display:block; white-space:pre;background:#ffe0e0;'>-\$ sudo -u grafana grafana-cli --homepath ${grafana_share_dir} --config ${grafana_conf_dir}/grafana.ini admin reset-admin-password onetwothree
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\$ sudo -u grafana grafana cli --homepath ${grafana_share_dir} --config ${grafana_conf_dir}/grafana.ini admin reset-admin-password onetwothree
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> "
github.livecheck.regex {([0-9.]+)}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/grafana/files/grafana.ini.diff b/net/grafana/files/grafana.ini.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index a9570809a5b..aad5b54bf2c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/grafana/files/grafana.ini.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/grafana/files/grafana.ini.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,35 +1,35 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- grafana.ini 2020-04-29 04:31:29.000000000 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ grafana.ini 2020-04-29 04:36:44.000000000 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -12,19 +12,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- grafana.ini 2023-07-26 01:55:59
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ grafana.ini 2023-08-04 07:06:50
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -15,19 +15,19 @@
</span> #################################### Paths ###############################
[paths]
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
-data = data
+data = @DATAPATH@
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Temporary files in `data` directory older than given duration will be removed
temp_data_lifetime = 24h
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Directory where grafana can store logs
-logs = data/log
+logs = @LOGPATH@
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # Directory where grafana will automatically scan and look for plugins
-plugins = data/plugins
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+plugins = @DATAPATH@/plugins
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++plugins = @DATAPATH@/plugin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # folder that contains provisioning config files that grafana will apply on startup and while running.
-provisioning = conf/provisioning
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+provisioning = @CONFPATH@/provisioning
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++provisioning = @CONFPATH@provisioning
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> #################################### Server ##############################
[server]
<span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -35,7 +35,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- http_addr =
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # The http port to use
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--http_port = 3000
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+http_port = 3900
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # The public facing domain name used to access grafana from a browser
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- domain = localhost
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -76,7 +76,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ socket_mode = 0660
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Unix socket path
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-socket = /tmp/grafana.sock
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++socket = @SOCKPATH@/grafana.sock
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # CDN Url
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cdn_url =
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/grafana/files/org.macports.grafana.plist b/net/grafana/files/org.macports.grafana.plist
</span><span style='display:block; white-space:pre;color:#808080;'>index 6cd2a66dcdd..143128d8b22 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/grafana/files/org.macports.grafana.plist
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/grafana/files/org.macports.grafana.plist
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,7 +24,8 @@
</span> <integer>600</integer>
<key>ProgramArguments</key>
<array>
<span style='display:block; white-space:pre;background:#ffe0e0;'>- <string>@PREFIX@/bin/grafana-server</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@PREFIX@/bin/grafana</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>server</string>
</span> <string>-config=@CONFFILE@</string>
<string>-homepath=@SHAREDIR@</string>
</array>
</pre><pre style='margin:0'>
</pre>