2021-05-22 17:57:33 +00:00
|
|
|
COMMENT = command-line interface for Hetzner Cloud
|
2021-12-30 12:30:22 +00:00
|
|
|
V = 1.29.0
|
2021-05-22 17:57:33 +00:00
|
|
|
|
|
|
|
MODGO_MODNAME = github.com/hetznercloud/cli
|
|
|
|
MODGO_VERSION = v${V}
|
|
|
|
|
|
|
|
DISTNAME = hcloud-${MODGO_VERSION}
|
|
|
|
PKGNAME = hcloud-${V}
|
|
|
|
|
|
|
|
CATEGORIES = sysutils
|
|
|
|
|
|
|
|
HOMEPAGE = https://github.com/hetznercloud/cli
|
|
|
|
|
|
|
|
MAINTAINER = Stefan Hagen <sh+ports@codevoid.de>
|
|
|
|
|
|
|
|
# MIT
|
|
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
|
|
|
|
MODULES = lang/go
|
|
|
|
|
|
|
|
WANTLIB += c pthread
|
|
|
|
|
2021-08-22 08:06:22 +00:00
|
|
|
MODGO_LDFLAGS = \
|
|
|
|
-X github.com/hetznercloud/cli/internal/version.Version=${MODGO_VERSION}
|
|
|
|
|
2021-05-22 17:57:33 +00:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/hcloud
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/hcloud
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/hcloud
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.md ${PREFIX}/share/doc/hcloud/README.md
|
|
|
|
|
2021-07-11 18:03:51 +00:00
|
|
|
do-test:
|
|
|
|
cd ${WRKSRC} && ${MODGO_TEST_CMD} ./...
|
|
|
|
|
2021-08-14 07:01:22 +00:00
|
|
|
.include "modules.inc"
|
2021-05-22 17:57:33 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|