openbsd-ports/security/vault/Makefile
2020-08-30 15:27:07 +00:00

43 lines
1.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.45 2020/08/30 15:27:07 ajacoutot Exp $
COMMENT= secure secret storage
GH_TAGNAME= v1.5.3
GH_ACCOUNT= hashicorp
GH_PROJECT= vault
### Vault UI
MODGO_FLAGS= -tags=ui
MASTER_SITES0= https://distfiles.tristero.se/
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
vault-1.5.0-bindata_assetfs.go:0
CATEGORIES= security net
HOMEPAGE= https://www.vaultproject.io/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# MPLv2
PERMIT_PACKAGE= Yes
WANTLIB += c pthread
MODULES= lang/go
# go/src/github.com/hashicorp/vault/version/version.go
MODGO_LDFLAGS += -X github.com/hashicorp/vault/version.GitDescribe=${GH_TAGNAME:S/v//}
MODGO_LDFLAGS += -X github.com/hashicorp/vault/version.VersionPrerelease="" # empty
post-extract:
install -m644 ${FULLDISTDIR}/vault-1.5.0-bindata_assetfs.go \
${WRKDIST}/http/bindata_assetfs.go
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/vault
${INSTALL_DATA} ${FILESDIR}/vault.hcl \
${PREFIX}/share/examples/vault
.include <bsd.port.mk>