View | Details | Raw Unified | Return to bug 238917
Collapse All | Expand All

(-)net-mgmt/alertmanager/Makefile (-9 / +4 lines)
Lines 12-34 Link Here
12
LICENSE=	APACHE20
12
LICENSE=	APACHE20
13
LICENSE_FILE=	${WRKSRC}/LICENSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
14
15
USES=		go gmake
15
USES=		go:modules gmake
16
USE_GITHUB=	yes
16
USE_GITHUB=	yes
17
GH_ACCOUNT=	prometheus
17
GH_ACCOUNT=	prometheus
18
USE_RC_SUBR=	alertmanager
18
USE_RC_SUBR=	alertmanager
19
19
20
GO_PKGNAME=	github.com/prometheus/${PORTNAME}
20
GO_TARGET=	./cmd/alertmanager \
21
		./cmd/amtool
21
22
22
USERS=		alertmanager
23
USERS=		alertmanager
23
GROUPS=		alertmanager
24
GROUPS=		alertmanager
24
25
25
do-build:
26
post-install:
26
	@cd ${GO_WRKSRC}/cmd/alertmanager && ${SETENV} ${MAKE_ENV} ${GO_ENV} go install
27
	@cd ${GO_WRKSRC}/cmd/amtool && ${SETENV} ${MAKE_ENV} ${GO_ENV} go install
28
29
do-install:
30
	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/alertmanager ${STAGEDIR}${PREFIX}/bin
31
	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/amtool ${STAGEDIR}${PREFIX}/bin
32
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/alertmanager
27
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/alertmanager
33
	${INSTALL_DATA} ${WRKSRC}/doc/examples/simple.yml ${STAGEDIR}${PREFIX}/etc/alertmanager/alertmanager.yml.sample
28
	${INSTALL_DATA} ${WRKSRC}/doc/examples/simple.yml ${STAGEDIR}${PREFIX}/etc/alertmanager/alertmanager.yml.sample
34
29

Return to bug 238917