Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= carbonapi |
4 |
DISTVERSION= 0.10.0.1 |
5 |
CATEGORIES= www |
6 |
|
7 |
MAINTAINER= a.andersson.thn@gmail.com |
8 |
COMMENT= Go implementation of carbonapi |
9 |
|
10 |
LICENSE= BSD2CLAUSE |
11 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
|
13 |
BUILD_DEPENDS= go>=1.8:lang/go |
14 |
|
15 |
USES= gmake |
16 |
|
17 |
USE_GITHUB= yes |
18 |
GH_ACCOUNT= go-graphite |
19 |
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME} |
20 |
USE_RC_SUBR= ${PORTNAME} |
21 |
|
22 |
USERS= carbon |
23 |
GROUPS= carbon |
24 |
|
25 |
OPTIONS_DEFINE= CAIRO |
26 |
|
27 |
CAIRO_USES= pkgconfig |
28 |
CAIRO_VARS= CARBON_API_ARGS=${PORTNAME} |
29 |
CAIRO_VARS_OFF= CARBON_API_ARGS=nocairo |
30 |
CAIRO_LIB_DEPENDS= libcairo.so:graphics/cairo |
31 |
|
32 |
do-build: |
33 |
@cd ${WRKSRC}/${GH_SUBDIR} && \ |
34 |
${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} VERSION=${DISTVERSION} \ |
35 |
${MAKE_CMD} ${CARBON_API_ARGS} |
36 |
|
37 |
do-install: |
38 |
@${MKDIR} ${STAGEDIR}/${PREFIX}/etc/carbonapi |
39 |
@${MKDIR} ${STAGEDIR}/var/log/carbonapi |
40 |
${INSTALL_PROGRAM} ${WRKSRC}/carbonapi ${STAGEDIR}${PREFIX}/bin |
41 |
${INSTALL_DATA} ${WRKSRC}/carbonapi.example.toml ${STAGEDIR}${PREFIX}/etc/carbonapi |
42 |
${INSTALL_DATA} ${WRKSRC}/carbonapi.example.yaml ${STAGEDIR}${PREFIX}/etc/carbonapi |
43 |
${INSTALL_DATA} ${WRKSRC}/graphTemplates.example.toml ${STAGEDIR}${PREFIX}/etc/carbonapi |
44 |
${INSTALL_DATA} ${WRKSRC}/graphTemplates.example.yaml ${STAGEDIR}${PREFIX}/etc/carbonapi |
45 |
|
46 |
.include <bsd.port.mk> |