summaryrefslogtreecommitdiff
path: root/databases/redis_exporter/Makefile
blob: 96ea17f67c6da1f29095b27a3f396c2dff026634 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
PORTNAME=	redis_exporter
DISTVERSIONPREFIX=	v
DISTVERSION=	1.58.0
PORTREVISION=	3
CATEGORIES=	databases

MAINTAINER=	arcade@b1t.name
COMMENT=	Prometheus exporter for redis stats
WWW=		https://github.com/oliver006/redis_exporter

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules,1.22

USE_RC_SUBR=	redis_exporter

GO_MODULE=	github.com/oliver006/redis_exporter
GO_BUILDFLAGS=	-v -ldflags "${LD_FLAG_STRING}"

PLIST_FILES=	bin/redis_exporter

LD_FLAG_X_PREFIX=	-X main
LD_FLAG_STRING=		${STRIP} ${LD_FLAG_X_PREFIX}.BuildVersion=${PORTVERSION}

.include <bsd.port.mk>