diff options
author | Dmitri Goutnik <dmgk@FreeBSD.org> | 2019-09-30 06:29:39 +0800 |
---|---|---|
committer | Dmitri Goutnik <dmgk@FreeBSD.org> | 2019-09-30 06:29:39 +0800 |
commit | 34156e93e84fe00711fac9dbf19e33534dc665f9 (patch) | |
tree | 644edaf7864f48d3652926a9f242a0f01e0cdf92 /databases/go-carbon | |
parent | ff71c9d91c68253cfaa8c6a682953afd5329b26f (diff) | |
download | freebsd-ports-gnome-34156e93e84fe00711fac9dbf19e33534dc665f9.tar.gz freebsd-ports-gnome-34156e93e84fe00711fac9dbf19e33534dc665f9.tar.zst freebsd-ports-gnome-34156e93e84fe00711fac9dbf19e33534dc665f9.zip |
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
Diffstat (limited to 'databases/go-carbon')
-rw-r--r-- | databases/go-carbon/Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/databases/go-carbon/Makefile b/databases/go-carbon/Makefile index 9fd60cbe49c1..f8d8b73c061b 100644 --- a/databases/go-carbon/Makefile +++ b/databases/go-carbon/Makefile @@ -18,18 +18,16 @@ 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 -do-build: - @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC}/_vendor \ - go build --ldflags '-X main.BuildVersion=${DISTVERSION}' github.com/lomik/go-carbon - -do-install: +post-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 |