<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/2acb94fd2b6fd1bc24a3b14806953b37764bbea8">https://github.com/macports/macports-ports/commit/2acb94fd2b6fd1bc24a3b14806953b37764bbea8</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 2acb94f prometheus: update to 2.11.0
</span>2acb94f is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 2acb94fd2b6fd1bc24a3b14806953b37764bbea8
</span>Author: Herby Gillot <herby.gillot@gmail.com>
AuthorDate: Wed Jul 10 01:25:52 2019 -0400
<span style='display:block; white-space:pre;color:#404040;'> prometheus: update to 2.11.0
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * specify promu as a distfile so that prometheus does not fetch it during build
</span><span style='display:block; white-space:pre;color:#404040;'> * remove curl as a build depenency since promu is now fetched as a distfile
</span><span style='display:block; white-space:pre;color:#404040;'> * fix license
</span><span style='display:block; white-space:pre;color:#404040;'> * use destroot.keepdirs
</span>---
net/prometheus/Portfile | 41 +++++++++++++++++++++++++++++------------
1 file changed, 29 insertions(+), 12 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/prometheus/Portfile b/net/prometheus/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 818b815..62c4c23 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/prometheus/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/net/prometheus/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,8 +1,9 @@
</span> PortSystem 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup prometheus prometheus 2.10.0 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup prometheus prometheus 2.11.0 v
</span> github.tarball_from archive
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set promu_version 0.5.0
</span>
description The Prometheus monitoring system and time series database
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -16,15 +17,14 @@ homepage https://prometheus.io/
</span>
platforms darwin
categories net
<span style='display:block; white-space:pre;background:#ffe0e0;'>-license apache
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license Apache-2
</span>
maintainers {gmail.com:herbygillot @herbygillot} openmaintainer
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build port:curl \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:go
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build port:go
</span>
build.env GOPATH=${workpath} \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- PATH=$env(PATH):${workpath}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PATH=${workpath}/bin:$env(PATH)
</span>
build.target build
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,10 +32,7 @@ use_configure no
</span> installs_libs no
use_parallel_build no
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- rmd160 e066bbfce9ba96641f041adfa649a7a429a34856 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 0362f4aa2fb44cc2c572df140da742bdf99fe9f338157a83f6634694fd693000 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 11752395
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites-append https://github.com/prometheus/promu/releases/download/v${promu_version}:promu
</span>
set prom_user ${name}
set prom_conf_dir ${prefix}/etc/${name}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,11 +43,31 @@ set prom_share_dir ${prefix}/share/${name}
</span> set prom_log_dir ${prefix}/var/log/${name}
set prom_log_file ${prom_log_dir}/${name}.log
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set promu_distname promu-${promu_version}.darwin-amd64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set promu_distfile ${promu_distname}${extract.suffix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distfiles prometheus-${version}${extract.suffix}:main \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${promu_distfile}:promu
</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;'>+ prometheus-${version}${extract.suffix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 62637ea4427d16553dd0496adaab7a4490b93620 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 b83f490a59292f00ab9679b008e2876ccc3a0c153916e2c141566395c7dcc7ee \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 12133603 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${promu_distfile} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 794fd1112584c13ae95506336578a96716377c8a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 17f9b9816e6a5b4304bda34d2ae025732e20837c27a431639731ebbd45eda08f \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 7132062
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> add_users ${prom_user} \
group=${prom_user} \
realname=Prometheus
post-extract {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Install promu in the workpath
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${workpath}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${workpath}/${promu_distname}/promu ${workpath}/bin/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> copy ${filespath}/org.macports.prometheus.plist \
${workpath}/org.macports.prometheus.plist
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -76,6 +93,9 @@ post-extract {
</span> ${workpath}/org.macports.prometheus.plist
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot.keepdirs-append ${destroot}${prom_data_dir} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prom_conf_dir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> destroot {
xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/${name}
xinstall -m 755 ${worksrcpath}/promtool ${destroot}${prefix}/bin/promtool
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -90,8 +110,6 @@ destroot {
</span> xinstall -m 755 -o ${prom_user} -g ${prom_user} -d \
${destroot}${prom_log_dir}
<span style='display:block; white-space:pre;background:#ffe0e0;'>- touch ${destroot}${prom_conf_dir}/.keep
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> touch ${destroot}${prom_log_file}
file attributes ${destroot}${prom_log_file} \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -113,7 +131,6 @@ destroot {
</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:#ffe0e0;'>- destroot.keepdirs-append ${destroot}${prom_data_dir}
</span> }
post-activate {
</pre><pre style='margin:0'>
</pre>