Commit d6524a8c authored by Daniel Morlock's avatar Daniel Morlock

Version bump

parent f20fac70
AUX prometheus-node-exporter-0.17.0-Makefile.patch 1859 BLAKE2B e90bb480b578b74bba4247c55aba68b313640416876eb38233af44728aedd4aed9f4f6447e178996ecf67200cba53b839dd829574a52a00a3530fe8022f10821 SHA512 ec89f2114aa5c77e7071bf783f063ab9dd7098fff100b5be4453e34d33010a01503008eff136128268e21951a806b2a91fafeb9d31ea591619ddba8101f67c48
AUX prometheus-node-exporter-0.18.0-Makefile.patch 1279 BLAKE2B 6d16cc851b5c6c62166b4ee41fa3a02d31ec188e4fd6eb7bc61dbc5d09ff8640789437e7311333be8e734e04ba05e20c2bec214b026710e1a4ba54690ee375ee SHA512 ac84c3c488f29af231569fce99dd87a4bd23c4b8abc40aca65209d4684f329a99ca7994fe30f766e6ced9523e76bfd9391dcfc2d26bad5a8040a0aa1149d5bdc
AUX prometheus-node-exporter-0.18.1-Makefile.patch 1279 BLAKE2B 6d16cc851b5c6c62166b4ee41fa3a02d31ec188e4fd6eb7bc61dbc5d09ff8640789437e7311333be8e734e04ba05e20c2bec214b026710e1a4ba54690ee375ee SHA512 ac84c3c488f29af231569fce99dd87a4bd23c4b8abc40aca65209d4684f329a99ca7994fe30f766e6ced9523e76bfd9391dcfc2d26bad5a8040a0aa1149d5bdc
AUX prometheus-node-exporter-confd 184 BLAKE2B 2bf520dc54d9b88facfedb2c504656a92ac2c600c882b439ee74b1c25e370949eb7212b104a51c03ce2c280013f80d5979869ee6799b4344e13bbb5492345f9a SHA512 f0ff7c2139062a9f38e64b0631cbb8785f76b9f206ef0600e8fb2ed92b418f76e2b13e8e395f0b0cecd6b900e26f68fdb051c203f51305e4654ba5eeecc14715
AUX prometheus-node-exporter-initd 486 BLAKE2B 6de51dac0dc18fb5d8b0a6538d5e023f3000eca7d2c9118e75374f840314a2ee76c3e58522a8c55e727cd650769e33efdac113e4cdff57086ab02adb48dd06d3 SHA512 c69b79c48f268114d014eda5965974ac33a6e35f6252d7d008ffa0b4741817d12f66c355d82e715ffe6e9c63e55e9c724258f78228cd611e8941632ec3da89b8
DIST v0.17.0.tar.gz 1758763 BLAKE2B 4c5d994e9b57bfd52353681b786149f6972abcdef908b872420172864b53875f26aff291ce76fe4a8b8d134ff1157e15cb45d50a4b552f1c72c8dfe55005d725 SHA512 8650fa24014f317b23cdbe2a6f12da0912ffc74cab815d1c94fdc0a3dc01ac1dff42a454af2ebbd4d402b7834d227bcf91ebdefa630ebe997cfd478e05ee01e5
DIST v0.18.0.tar.gz 2104908 BLAKE2B 3062e48e656f3a7b4c5b3ae8744ae9283d340b14f245a42b6de54832aaa0bfc126cf5a9eb566269237042cffd4e5afe85f85e9d7814896507d7d4d38e5d09d02 SHA512 9c6f9f82b0d3f5147cef8cc933ab9d7854065782f83b9821d4ae394a5101c45de6c8e8fcdc53d076af0c8683c47030557ec8e2bd27386a81a815d714e0f88987
DIST v0.18.1.tar.gz 2110072 BLAKE2B 48c73d00cba892e34e95d40bd29c9ca70bc5748590f00cb7f8adcd25d8a9504f669d887b1273cc65316ca55b06c36d97a3e19a66382f35d5768db7c315981a13 SHA512 cf2b854fbec1ba39b18432cdc11ab507ebc5b2828e6b34b4f49af9b949fcd365cb3e5eb1e265d0825783810c6b1572a8b3512ec27a46e5c83f89a505590159c0
EBUILD prometheus-node-exporter-0.17.0.ebuild 1215 BLAKE2B b19ad68b267a7c53de86fad83099d8ddcbba08601418ac324256e98318db4662e623a066ef4f8117b3f8caebcce1c5f0f6ac64cbcf253c4259a511bf5375cc2f SHA512 3ba4a92512b6053c8c97c0a869abd730d0f345a0528f8f23effa0b248ff8d06493c97af9ee550428021252153c7c501c110df4b4ec5a84e377d0b77cf7a676f0
EBUILD prometheus-node-exporter-0.18.0.ebuild 1215 BLAKE2B b19ad68b267a7c53de86fad83099d8ddcbba08601418ac324256e98318db4662e623a066ef4f8117b3f8caebcce1c5f0f6ac64cbcf253c4259a511bf5375cc2f SHA512 3ba4a92512b6053c8c97c0a869abd730d0f345a0528f8f23effa0b248ff8d06493c97af9ee550428021252153c7c501c110df4b4ec5a84e377d0b77cf7a676f0
EBUILD prometheus-node-exporter-0.18.1.ebuild 1215 BLAKE2B b19ad68b267a7c53de86fad83099d8ddcbba08601418ac324256e98318db4662e623a066ef4f8117b3f8caebcce1c5f0f6ac64cbcf253c4259a511bf5375cc2f SHA512 3ba4a92512b6053c8c97c0a869abd730d0f345a0528f8f23effa0b248ff8d06493c97af9ee550428021252153c7c501c110df4b4ec5a84e377d0b77cf7a676f0
--- src/github.com/prometheus/node_exporter/Makefile.common.orig 2019-05-24 09:28:29.362000000 +0200
+++ src/github.com/prometheus/node_exporter/Makefile.common 2019-05-24 09:29:43.903000000 +0200
@@ -83,7 +83,7 @@
endif
endif
-PREFIX ?= $(shell pwd)
+PREFIX ?= node_exporter
BIN_DIR ?= $(shell pwd)
DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))
DOCKER_REPO ?= prom
@@ -182,24 +182,12 @@
ifdef GOVENDOR
@echo ">> running check for unused packages"
@$(GOVENDOR) list +unused | grep . && exit 1 || echo 'No unused packages'
-else
-ifdef GO111MODULE
- @echo ">> running check for unused/missing packages in go.mod"
- GO111MODULE=$(GO111MODULE) $(GO) mod tidy
-ifeq (,$(wildcard vendor))
- @git diff --exit-code -- go.sum go.mod
-else
- @echo ">> running check for unused packages in vendor/"
- GO111MODULE=$(GO111MODULE) $(GO) mod vendor
- @git diff --exit-code -- go.sum go.mod vendor/
-endif
-endif
endif
.PHONY: common-build
common-build: promu
@echo ">> building binaries"
- GO111MODULE=$(GO111MODULE) $(PROMU) build --prefix $(PREFIX)
+ USER=portage GO111MODULE=$(GO111MODULE) $(PROMU) build --prefix $(PREFIX)
.PHONY: common-tarball
common-tarball: promu
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit golang-base user eutils
DESCRIPTION="Prometheus exporter for machine metrics."
HOMEPAGE="http://prometheus.io"
EGO_PN="github.com/prometheus/node_exporter"
SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RESTRICT="mirror network-sandbox"
IUSE=""
DEPEND=">=dev-lang/go-1.11
dev-vcs/mercurial"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${P}/src/${EGO_PN}"
DAEMON_USER="prometheus"
LOG_DIR="/var/log/prometheus"
pkg_setup() {
enewuser ${DAEMON_USER} -1 -1 -1 "wheel"
}
src_unpack() {
default
mkdir -p "temp/src/${EGO_PN%/*}" || die
mv "node_exporter-${PV}" "temp/src/${EGO_PN}" || die
mv "temp" "${P}" || die
}
src_compile() {
export GOPATH="${WORKDIR}/${P}"
make
}
src_prepare() {
epatch "${FILESDIR}/${P}-Makefile.patch"
}
src_install() {
insinto "/usr/bin"
newbin "node_exporter/node_exporter" "prometheus-node-exporter"
newconfd "${FILESDIR}/${PN}-confd" "prometheus-node-exporter"
newinitd "${FILESDIR}/${PN}-initd" "prometheus-node-exporter"
keepdir "${LOG_DIR}"
fowners "${DAEMON_USER}" "${LOG_DIR}"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment