Fixes an error with restart. PR: 226937 Submitted by: Andreas Andersson <a.andersson.thn@gmail.com> Approved by: hrs (mentor, implicit)
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# $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>
|