freebsd-ports/net-mgmt/pushgateway/Makefile
Boris Samorodov a04c19f2f7 Prometheus exporters and pushgateway: Strip golang binaries.
TLDR; turns out to be a misconception, has gone with dinosaurs.
Golang Project treat such cases as bugs, submit any evidence to them.
More info: https://honnef.co/posts/2016/10/go-and-strip/

Fix my port and ports I've committed yesterday.
Bump PORTREVISION.

Reported by:	swills
Approved by:	portmgr (just fix it)
2017-07-18 09:14:21 +00:00

33 lines
675 B
Makefile

# Created by: Athanasios Douitsis <aduitsis@cpan.org>
# $FreeBSD$
PORTNAME= pushgateway
PORTVERSION= 0.3.1
PORTREVISION= 1
DISTVERSIONPREFIX=v
CATEGORIES= net-mgmt
MAINTAINER= aduitsis@cpan.org
COMMENT= Prometheus push acceptor for ephemeral and batch jobs
LICENSE= APACHE20
USES= go gmake
GH_ACCOUNT= prometheus
USE_GITHUB= yes
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
USE_RC_SUBR= pushgateway
USERS= prometheus
GROUPS= prometheus
do-build:
(cd ${GO_WRKSRC} ; ${SETENV} ${GO_ENV} go install)
do-install:
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/pushgateway ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DESTDIR}/var/db/${PORTNAME}
.include <bsd.port.mk>