blob: 2cddbfe74d3e1fcad5605bff9ab2f88ba7b6aa03 (
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
30
31
32
33
|
# Created by: Palle Girgensohn <girgen@FreeBSD.org>
# $FreeBSD$
PORTNAME= metricbeat
PORTVERSION= 5.2.0
DISTVERSIONPREFIX=v
CATEGORIES= sysutils
MAINTAINER= girgen@FreeBSD.org
COMMENT= Collect metrics from your systems and services
LICENSE= APACHE20
USE_GITHUB= yes
GH_ACCOUNT= elastic
GH_PROJECT= beats
USES= gmake go
GO_PKGNAME= github.com/${GH_ACCOUNT}/${GH_PROJECT}
GO_TARGETS= ${PORTNAME}
USE_RC_SUBR= ${PORTNAME}
do-build:
cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GMAKE} -C ${GO_TARGETS}
do-install:
${INSTALL_PROGRAM} ${GO_WRKSRC}/${GO_TARGETS}/${GO_TARGETS} \
${STAGEDIR}${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/${GO_TARGETS}/${GO_TARGETS}.yml \
${STAGEDIR}${PREFIX}/etc/${GO_TARGETS}.yml.sample
.include <bsd.port.mk>
|