<pre style='margin:0'>
Frank Schima (mf2k) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/dabfddabb9d358f41086e3e527c7846666ed0f6c">https://github.com/macports/macports-ports/commit/dabfddabb9d358f41086e3e527c7846666ed0f6c</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 dabfdda node_exporter: new port for the Prometheus Node Exporter, v0.18.0
</span>dabfdda is described below
<span style='display:block; white-space:pre;color:#808000;'>commit dabfddabb9d358f41086e3e527c7846666ed0f6c
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Thu May 30 02:51:47 2019 -0400
<span style='display:block; white-space:pre;color:#404040;'> node_exporter: new port for the Prometheus Node Exporter, v0.18.0
</span>---
net/node_exporter/Portfile | 108 +++++++++++++++++++++
.../files/org.macports.node_exporter.plist | 36 +++++++
2 files changed, 144 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/node_exporter/Portfile b/net/node_exporter/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..1782ba0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/node_exporter/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,108 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup prometheus node_exporter 0.18.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Machine-metric exporter for the Prometheus monitoring \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description The Prometheus Node Exporter can expose metrics that \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Prometheus can scrape, including a wide variety of \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system, hardware- and kernel-related metrics.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://prometheus.io/docs/guides/node-exporter
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories net
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license apache
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {gmail.com:herbygillot @herbygillot} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:curl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:go
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env GOPATH=${workpath} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PATH=$env(PATH):${workpath}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.target build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+installs_libs no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_parallel_build no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 329f461588f42e450d085be02393ff7613baa71a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 2f71a4a11fa1388e4a459865520365396f8b6ebbad9d45df476fe60ee0de0415 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 2104908
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set svc_name prometheus-node-exporter
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set prom_user prometheus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set ne_doc_dir ${prefix}/share/doc/${svc_name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set ne_share_dir ${prefix}/share/${svc_name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set ne_log_dir ${prefix}/var/log/${svc_name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set ne_log_file ${ne_log_dir}/${name}.log
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+add_users ${prom_user} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ group=${prom_user} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ realname=Prometheus
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-extract {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${filespath}/org.macports.${name}.plist \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.${name}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@NAME@|${name}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.${name}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@USER@|${prom_user}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.${name}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@GROUP@|${prom_user}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.${name}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@PREFIX@|${prefix}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.${name}.plist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@LOGFILE@|${ne_log_file}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${workpath}/org.macports.${name}.plist
</span><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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d 755 ${destroot}${ne_doc_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d 755 ${destroot}${ne_share_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d 755 -o ${prom_user} -g ${prom_user} ${destroot}${ne_log_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ touch ${destroot}${ne_log_file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file attributes ${destroot}${ne_log_file} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -owner ${prom_user} -group ${prom_user}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach _dir {examples text_collector_examples} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath}/${_dir} ${destroot}${ne_share_dir}/
</span><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;'>+ copy {*}[glob ${worksrcpath}/docs/*] ${destroot}${ne_doc_dir}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 755 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 -o root -W ${workpath} org.macports.${name}.plist \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/etc/LaunchDaemons/org.macports.${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 755 ${destroot}/Library/LaunchDaemons
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${prefix}/etc/LaunchDaemons/org.macports.${name}/org.macports.${name}.plist \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}/Library/LaunchDaemons/org.macports.${name}.plist
</span><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;'>+notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+To enable the Prometheus Node Exporter 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><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+When enabled, the service will log to:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+${prefix}${ne_log_file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/node_exporter/files/org.macports.node_exporter.plist b/net/node_exporter/files/org.macports.node_exporter.plist
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..41af17c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/node_exporter/files/org.macports.node_exporter.plist
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,36 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<?xml version="1.0" encoding="UTF-8"?>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<plist version="1.0">
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+<dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>Label</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>org.macports.@NAME@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>ProgramArguments</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@PREFIX@/bin/@NAME@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </array>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>UserName</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@USER@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>GroupName</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@GROUP@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>RunAtLoad</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <true/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>KeepAlive</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <false/>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>WorkingDirectory</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@PREFIX@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>StandardErrorPath</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@LOGFILE@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>StandardOutPath</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <string>@LOGFILE@</string>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>HardResourceLimits</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>NumberOfFiles</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <integer>4096</integer>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>SoftResourceLimits</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <key>NumberOfFiles</key>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ <integer>4096</integer>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ </dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+</dict>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+</plist>
</span></pre><pre style='margin:0'>
</pre>