1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/databases/go-carbon/Makefile
Dmitri Goutnik 34156e93e8 Go ports: cleanup, finish transition to USES=go started with r505321 (cat. audio-mail)
- Remove custom build/install targets left in place after r505321
- Switch to the new GO_TARGET tuple syntax introduced in r512001
- Switch to go:modules when upstream already uses them

Reviewed by:	tobik
Approved by:	araujo (mentor), portmgr (adamw)
Differential Revision:	https://reviews.freebsd.org/D21741
2019-09-29 22:29:39 +00:00

36 lines
985 B
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
USES= go
USE_GITHUB= yes
GH_ACCOUNT= lomik
USE_RC_SUBR= ${PORTNAME}
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
GO_BUILDFLAGS= -ldflags '-X main.BuildVersion=${DISTVERSION}'
USERS= carbon
GROUPS= carbon
post-install:
@${MKDIR} ${STAGEDIR}/var/db/go-carbon
@${MKDIR} ${STAGEDIR}/var/log/go-carbon
@${MKDIR} ${STAGEDIR}/${PREFIX}/etc/go-carbon
${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>