blob: 2499d56ca3316b5782de4f2de83faaebc5fd9df8 (
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
|
# $FreeBSD$
PORTNAME= go-carbon
DISTVERSIONPREFIX= v
DISTVERSION= 0.12.0
PORTREVISION= 2
CATEGORIES= databases
MAINTAINER= a.andersson.thn@gmail.com
COMMENT= Go implementation of carbon
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
BUILD_DEPENDS= go>=1.8:lang/go
USES= go
USE_GITHUB= yes
GH_ACCOUNT= lomik
USE_RC_SUBR= ${PORTNAME}
USERS= carbon
GROUPS= carbon
do-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC}/_vendor \
go build --ldflags '-X main.BuildVersion=${DISTVERSION}' github.com/lomik/go-carbon
do-install:
@${MKDIR} ${STAGEDIR}/var/db/go-carbon
@${MKDIR} ${STAGEDIR}/var/log/go-carbon
@${MKDIR} ${STAGEDIR}/${PREFIX}/etc/go-carbon
${INSTALL_PROGRAM} ${WRKSRC}/go-carbon ${STAGEDIR}${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/deploy/go-carbon.conf ${STAGEDIR}${PREFIX}/etc/go-carbon/go-carbon.conf.sample
${INSTALL_DATA} ${WRKSRC}/deploy/storage-aggregation.conf ${STAGEDIR}${PREFIX}/etc/go-carbon/storage-aggregation.conf.sample
${INSTALL_DATA} ${WRKSRC}/deploy/storage-schemas.conf ${STAGEDIR}${PREFIX}/etc/go-carbon/storage-schemas.conf.sample
.include <bsd.port.mk>
|