blob: f0d54f3441be2368ad6fdea67f11abc44fb79882 (
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
46
|
PORTNAME= carbonapi
DISTVERSION= 0.14.1
PORTREVISION= 6
CATEGORIES= www
MAINTAINER= a.andersson.thn@gmail.com
COMMENT= Go implementation of carbonapi
WWW= https://github.com/go-graphite/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}"
CONFLICTS_INSTALL= carbonzipper # bin/carbonzipper
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>
|