summaryrefslogtreecommitdiff
path: root/databases/prometheus-postgres-exporter/Makefile
blob: 7ad137b0f93cfa35cddd26aa33320861d14b3b24 (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
27
28
29
PORTNAME=	prometheus-postgres-exporter
DISTVERSIONPREFIX=	v
DISTVERSION=	0.15.0
PORTREVISION=	1
CATEGORIES=	databases

MAINTAINER=	lexi.freebsd@le-fay.org
COMMENT=	PostgreSQL metric exporter for Prometheus
WWW=		https://github.com/prometheus-community/postgres_exporter

LICENSE=	APACHE20
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules
USE_RC_SUBR=	postgres_exporter
GO_MODULE=	github.com/prometheus-community/postgres_exporter
GO_TARGET=	./cmd/postgres_exporter:${PREFIX}/bin/postgres_exporter

SUB_FILES=	pkg-message

PLIST_FILES=	bin/postgres_exporter \
				etc/postgres_exporter.yml.sample

post-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc
	${INSTALL_DATA} ${PATCHDIR}/postgres_exporter.yml.sample \
		${STAGEDIR}${PREFIX}/etc/postgres_exporter.yml.sample

.include <bsd.port.mk>