blob: 82d4455003af6b6d0a7f2ef148591d27ef13dc3f (
plain)
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
|
PORTNAME= carbonapi
DISTVERSION= 0.14.1
CATEGORIES= www
MAINTAINER= a.andersson.thn@gmail.com
COMMENT= Go implementation of carbonapi
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
USE_GITHUB= yes
GH_ACCOUNT= go-graphite
USE_RC_SUBR= ${PORTNAME}
GO_TARGET= ./cmd/carbonapi \
./cmd/carbonzipper
GO_BUILDFLAGS= -v \
${CARBON_ARGS} \
-ldflags="-X main.BuildVersion=${DISTVERSION}"
USERS= carbon
GROUPS= carbon
OPTIONS_DEFINE= CAIRO EXAMPLES
CAIRO_LIB_DEPENDS= libcairo.so:graphics/cairo
CAIRO_USES= pkgconfig
CAIRO_VARS= CARBON_ARGS="-tags cairo"
post-install:
@${MKDIR} ${STAGEDIR}/var/log/carbonapi
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/cmd/carbonapi/*.toml ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/cmd/carbonapi/*.yaml ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/cmd/carbonzipper/example.conf ${STAGEDIR}${EXAMPLESDIR}/carbonzipper.example.conf
.include <bsd.port.mk>
|