blob: 15ea94fae1d75952996b349731bd5389f5dd6ea0 (
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
34
35
36
37
38
39
40
41
42
43
44
45
|
PORTNAME= mtail
DISTVERSION= 3.0.9
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= sysutils
MAINTAINER= feld@FreeBSD.org
COMMENT= Extract internal monitoring data from application logs
WWW= https://github.com/google/mtail
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
GO_TARGET= ./cmd/mtail ./cmd/mfmt
USE_GITHUB= yes
GH_ACCOUNT= google
USE_RC_SUBR= mtail
SUB_FILES+= pkg-message
SUB_LIST= USERS=${USERS} \
ETCDIR=${ETCDIR} \
DOCSDIR=${DOCSDIR} \
EXAMPLESDIR=${EXAMPLESDIR}
USERS= mtail
GROUPS= mtail
DOCS= docs/*.md
EXAMPLES= examples/*.mtail
OPTIONS_DEFINE= DOCS EXAMPLES
# make gomod-vendor > Makefile.gomod
.include "${.CURDIR}/Makefile.gomod"
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
${INSTALL_DATA} ${EXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}/
.include <bsd.port.mk>
|