BROKEN-i386=		/usr/local/go/pkg/tool/openbsd_386/link: mapping output file failed: cannot allocate memory

COMMENT=		secure secret storage

VERSION=		1.21.1
# vault-vendored distfile generated by fetching archive from
# https://github.com/hashicorp/vault/archive/v$VERSION/vault-$VERSION.tar.gz
# and running: go mod tidy; go mod vendor
# UI prebuilt with:
# cd ui; corepack yarn; npm rebuild node-sass; corepack yarn run build;
# rm -rf .yarn node_modules
DISTNAME=		vault-vendored-${VERSION}
PKGNAME=		vault-${VERSION}

### Vault UI
MODGO_FLAGS=		-tags=ui
SITES=			https://distfiles.tristero.se/

CATEGORIES=		security net

HOMEPAGE=		https://www.vaultproject.io/

MAINTAINER=		Pavel Korovin <pvk@openbsd.org>

# BSLv1.1
PERMIT_PACKAGE=		Yes

WANTLIB += 		c pthread

MODULES=		lang/go

ALL_TARGET=		github.com/hashicorp/vault

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/vault
	${INSTALL_DATA} ${FILESDIR}/*.hcl \
		${PREFIX}/share/examples/vault

.include <bsd.port.mk>
