<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/22cb3056f197241455c2d283464048b7e88a2946">https://github.com/macports/macports-ports/commit/22cb3056f197241455c2d283464048b7e88a2946</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 22cb3056f197241455c2d283464048b7e88a2946
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Sat Mar 5 18:13:48 2022 -0500

<span style='display:block; white-space:pre;color:#404040;'>    influxdb: update to 2.1.1
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Fixes: https://trac.macports.org/ticket/63034
</span>---
 sysutils/influxdb/Portfile | 45 +++++++++++++++++++++++++++++++--------------
 1 file changed, 31 insertions(+), 14 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/influxdb/Portfile b/sysutils/influxdb/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 9e241430dfa..3cb8386aa5c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/sysutils/influxdb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/influxdb/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,7 +3,7 @@
</span> PortSystem                  1.0
 PortGroup                   golang 1.0
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-go.setup                    github.com/influxdata/influxdb 2.0.7 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+go.setup                    github.com/influxdata/influxdb 2.1.1 v
</span> revision                    0
 
 homepage                    https://influxdata.com
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -18,10 +18,8 @@ long_description            InfluxDB is an open source time series platform. \
</span>                             visualizing and exploring the data and more.
 
 categories                  sysutils net
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms                   darwin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-license                     MIT
</span> installs_libs               no
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license                     MIT
</span> maintainers                 {gmail.com:herby.gillot @herbygillot} \
                             openmaintainer
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -31,10 +29,15 @@ fetch.type                  git
</span> # Allow fetching dependencies during build time
 build.env-delete            GO111MODULE=off GOPROXY=off
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build-append        bin:node:nodejs15 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Add local gopath/bin to PATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env-append            PATH=$env(PATH):${gopath}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append        bin:node:nodejs16 \
</span>                             bin:npm:npm6 \
                             port:cargo \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+                            port:coreutils \
</span>                             port:pkgconfig \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+                            bin:protoc:protobuf3-cpp \
</span>                             port:rust \
                             port:yarn
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -62,6 +65,9 @@ post-extract {
</span>     copy ${filespath}/org.macports.influxdb.plist ${influxdb_plist_src}
 
     copy ${filespath}/config.toml.example ${workpath}/
<span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patch {
</span>     reinplace "s|@DATA_DIR@|${influxdb_data_dir}|g" \
         ${workpath}/config.toml.example
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -71,31 +77,39 @@ post-extract {
</span>     reinplace "s|@PREFIX@|${prefix}|g"                ${influxdb_plist_src}
     reinplace "s|@CONF_FILE@|${influxdb_conf_file}|g" ${influxdb_plist_src}
     reinplace "s|@LOGFILE@|${influxdb_log_file}|g"    ${influxdb_plist_src}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    foreach _script {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        scripts/fetch-ui-assets.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        scripts/ci/test-downgrade.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        scripts/ci/install-rust.sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace -E "s|sha256sum|${prefix}/bin/gsha256sum|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ${worksrcpath}/${_script}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    }
</span> }
 
 destroot {
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    copy {*}[glob ${worksrcpath}/bin/darwin/*] ${destroot}${prefix}/bin/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    copy {*}[glob ${worksrcpath}/bin/${goos}/*] ${destroot}${prefix}/bin/
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    xinstall  -d -m 755 ${destroot}${influxdb_conf_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    xinstall  -d -m 755 ${destroot}${influxdb_share_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    xinstall  -d -m 755 -o ${influxdb_user} -g ${influxdb_user} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall  -d -m 0755 ${destroot}${influxdb_conf_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall  -d -m 0755 ${destroot}${influxdb_share_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall  -d -m 0755 -o ${influxdb_user} -g ${influxdb_user} \
</span>               ${destroot}${influxdb_data_dir}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    xinstall  -d -m 755 -g ${influxdb_user} ${destroot}${influxdb_log_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall  -d -m 0755 -g ${influxdb_user} ${destroot}${influxdb_log_dir}
</span> 
     copy ${workpath}/config.toml.example ${destroot}${influxdb_example_conf}
 
     touch ${destroot}${influxdb_log_file}
     file attributes ${destroot}${influxdb_log_file} -owner ${influxdb_user}
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    xinstall -d -m 755 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -d -m 0755 \
</span>         ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${name}
 
     xinstall -m 0644 -o root -W ${workpath} org.macports.${name}.plist \
         ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${name}
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    xinstall -d -m 755 ${destroot}/Library/LaunchDaemons
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    xinstall -d -m 0755 ${destroot}/Library/LaunchDaemons
</span> 
     ln -s ${prefix}/etc/LaunchDaemons/org.macports.${name}/org.macports.${name}.plist \
         ${destroot}/Library/LaunchDaemons/org.macports.${name}.plist
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -112,10 +126,13 @@ post-activate {
</span> }
 
 notes "
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ATTENTION: the InfluxDB CLI is no longer packaged as part of InfluxDB.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Please install the influx-cli port.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> To start the InfluxDB service, use `port load`:
 
     \$ sudo port load ${name}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    \$ influx
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    \$ influx # if you installed the CLI via the influx-cli port
</span> 
 `port unload` will stop and remove the service:
 
</pre><pre style='margin:0'>

</pre>