2022-03-11 19:57:10 +00:00

35 lines
1.0 KiB
Makefile

COMMENT = prometheus exporter for hardware and OS metrics
MODGO_MODNAME = github.com/prometheus/node_exporter
MODGO_VERSION = v1.3.1
DISTNAME = node_exporter-${MODGO_VERSION}
CATEGORIES = sysutils
HOMEPAGE = https://prometheus.io/
MAINTAINER = Claudio Jeker <claudio@openbsd.org>
# Apache 2.0
PERMIT_PACKAGE = Yes
WANTLIB = c pthread
MODULES= lang/go
MODGO_LDFLAGS = -X github.com/prometheus/common/version.Version=${MODGO_VERSION:S/v//} \
-X github.com/prometheus/common/version.Revision=non-git \
-X github.com/prometheus/common/version.Branch=non-git \
-X github.com/prometheus/common/version.BuildDate=`date +%F` \
-X github.com/prometheus/common/version.BuildUser=openbsd_ports
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/node_exporter
${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/node_exporter ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/node_exporter/
${INSTALL_DATA} ${WRKSRC}/NOTICE ${PREFIX}/share/doc/node_exporter/
.include "modules.inc"
.include <bsd.port.mk>