summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2020-07-10 12:59:39 -0500
committerWilliam Hubbs <williamh@gentoo.org>2020-07-10 13:00:43 -0500
commit01ac494ca6cc0f2c677b728fdf69637b6b828cf1 (patch)
tree0b0c563f899b8a0b33cf859f52dd99aad6ac8283 /app-metrics/redis_exporter
parentapp-office/impressive: Drop 0.13.0_beta1 (diff)
downloadgentoo-01ac494ca6cc0f2c677b728fdf69637b6b828cf1.tar.gz
gentoo-01ac494ca6cc0f2c677b728fdf69637b6b828cf1.tar.bz2
gentoo-01ac494ca6cc0f2c677b728fdf69637b6b828cf1.zip
app-metrics/redis_exporter: migrate 1.2.1 to go-module
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'app-metrics/redis_exporter')
-rw-r--r--app-metrics/redis_exporter/redis_exporter-1.2.1.ebuild18
1 files changed, 7 insertions, 11 deletions
diff --git a/app-metrics/redis_exporter/redis_exporter-1.2.1.ebuild b/app-metrics/redis_exporter/redis_exporter-1.2.1.ebuild
index 266c339cba74..d983bd4de2fe 100644
--- a/app-metrics/redis_exporter/redis_exporter-1.2.1.ebuild
+++ b/app-metrics/redis_exporter/redis_exporter-1.2.1.ebuild
@@ -2,20 +2,17 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit user golang-build golang-vcs-snapshot systemd
-
-EGO_PN="github.com/oliver006/redis_exporter"
-EGIT_COMMIT="55b9cfabb601b5a71822fa396f914a07a31dcbe4"
-ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-KEYWORDS="~amd64"
+inherit go-module user systemd
+EGIT_COMMIT=55b9cfabb601b5a71822fa396f914a07a31dcbe4
DESCRIPTION="Prometheus Exporter for Redis Metrics. Supports Redis 2.x, 3.x and 4.x"
HOMEPAGE="https://github.com/oliver006/redis_exporter"
-SRC_URI="${ARCHIVE_URI}"
+SRC_URI="https://github.com/oliver006/redis_exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
LICENSE="MIT Apache-2.0 BSD"
SLOT="0"
+KEYWORDS="~amd64"
IUSE=""
-S=${WORKDIR}/${P}/src/${EGO_PN}
pkg_setup() {
enewgroup ${PN}
@@ -48,9 +45,8 @@ src_prepare() {
}
src_compile() {
- export -n GOCACHE XDG_CACHE_HOME #684052
- export GO111MODULE=on GOFLAGS="-mod=vendor -v -x" GOBIN="${WORKDIR}/${P}/bin"
- go install -work ${EGO_BUILD_FLAGS} \
+ export GOBIN="${S}/bin"
+ go install -mod=vendor \
-ldflags="-X main.BuildVersion=${PV} -X main.BuildCommitSha=${EGIT_COMMIT} -X main.BuildDate=$(date +%F-%T)" \
"${EGO_PN}" || die
}