diff --git a/security/vault/Makefile b/security/vault/Makefile index 0c75fa7d6f8a..16a10b15305f 100644 --- a/security/vault/Makefile +++ b/security/vault/Makefile @@ -1,73 +1,72 @@ PORTNAME= vault DISTVERSIONPREFIX= v -DISTVERSION= 1.21.4 -PORTREVISION= 2 +DISTVERSION= 2.0.0 CATEGORIES= security MASTER_SITES= https://raw.githubusercontent.com/hashicorp/vault/${DISTVERSIONFULL}/ \ LOCAL/bofh/security/${PORTNAME}/:web_ui DISTFILES= go.mod \ api/go.mod \ api/auth/approle/go.mod \ api/auth/kubernetes/go.mod \ api/auth/userpass/go.mod \ sdk/go.mod \ ${PORTNAME}-web_ui-${DISTVERSION}${EXTRACT_SUFX}:web_ui MAINTAINER= bofh@FreeBSD.org COMMENT= Tool for securely accessing secrets WWW= https://vaultproject.io/ NOT_FOR_ARCHS= armv7 i386 NOT_FOR_ARCHS_REASON= fatal error: out of memory LICENSE= MPL20 LICENSE_FILE= ${WRKSRC}/LICENSE .if defined(MAINTAINER_MODE) -EXTRACT_DEPENDS=npm-node20>0:www/npm-node20 \ - yarn-node20>0:www/yarn-node20 +EXTRACT_DEPENDS=npm-node20>0:www/npm-node20 .endif USES= cpe go:1.25+,modules CPE_VENDOR= hashicorp USE_GITHUB= yes GH_ACCOUNT= hashicorp USE_RC_SUBR= vault GO_MODULE= github.com/hashicorp/vault GO_BUILDFLAGS= -ldflags="-s \ -X github.com/hashicorp/vault/version.GitCommit=${GITID} \ -X github.com/hashicorp/vault/version.BuildDate=${SOURCE_DATE_EPOCH:U${SOURCE_DATE_EPOCH_CMD:sh}} \ " -tags "vault ui" SUB_FILES= pkg-message USERS= vault GROUPS= vault PLIST_FILES= bin/${PORTNAME} -GITID= ffe7023c481dc1ea2d8550bbaca8d85f8e611e0b +GITID= cf1ce4df8af6e323558bd5f8c37e771388cbc951 .include # Bring DISTINFO_FILE into scope so we can get the timestamp. SOURCE_DATE_EPOCH_CMD= date -ur \ $$(${GREP} -m1 TIMESTAMP ${DISTINFO_FILE} | ${SED} -e 's/[^0-9]//g') \ '+%Y-%m-%dT%H:%M:%SZ' post-patch: ${CP} -Rf ${WRKDIR}/web_ui ${WRKSRC}/http/ .if defined(MAINTAINER_MODE) _make-web_ui: clean extract - cd ${WRKSRC}/ui && ${SETENV} ${MAKE_ENV} yarn + cd ${WRKSRC}/ui && ${SETENV} ${MAKE_ENV} npm install -g pnpm@latest-10 + cd ${WRKSRC}/ui && ${SETENV} ${MAKE_ENV} pnpm i cd ${WRKSRC}/ui && ${SETENV} ${MAKE_ENV} npm rebuild node-sass - cd ${WRKSRC}/ui && ${SETENV} ${MAKE_ENV} yarn run build + cd ${WRKSRC}/ui && ${SETENV} ${MAKE_ENV} pnpm run build cd ${WRKDIR} && ${TAR} -czf \ ${PORTNAME}-web_ui-${DISTVERSION}${EXTRACT_SUFX} -C ${WRKSRC}/http web_ui scp ${WRKDIR}/${PORTNAME}-web_ui-${DISTVERSION}${EXTRACT_SUFX} \ bofh@freefall.freebsd.org:public_distfiles/security/${PORTNAME}/ .endif .include diff --git a/security/vault/distinfo b/security/vault/distinfo index 8e1ab5db451e..2fc87117f536 100644 --- a/security/vault/distinfo +++ b/security/vault/distinfo @@ -1,17 +1,17 @@ -TIMESTAMP = 1775478539 -SHA256 (go/security_vault/hashicorp-vault-v1.21.4_GH0/go.mod) = 9ad759b11f933bd6d045abab4702907368e4868a6bc3d3e985e0ef317d330530 -SIZE (go/security_vault/hashicorp-vault-v1.21.4_GH0/go.mod) = 30958 -SHA256 (go/security_vault/hashicorp-vault-v1.21.4_GH0/api/go.mod) = 4eae17cd71523cd1321fc184d88ef4ae434faa1c4a7e3821ff91a957b0f4c319 -SIZE (go/security_vault/hashicorp-vault-v1.21.4_GH0/api/go.mod) = 1639 -SHA256 (go/security_vault/hashicorp-vault-v1.21.4_GH0/api/auth/approle/go.mod) = a14eb767444bb9faf0093fa1604b70fe0fbdf60c794f535a1ffe9e3fc9639c07 -SIZE (go/security_vault/hashicorp-vault-v1.21.4_GH0/api/auth/approle/go.mod) = 1045 -SHA256 (go/security_vault/hashicorp-vault-v1.21.4_GH0/api/auth/kubernetes/go.mod) = 2fe888f8f9f1cdef123dbdf60e980d5960d6698631ce27ab8c0859d6455d122a -SIZE (go/security_vault/hashicorp-vault-v1.21.4_GH0/api/auth/kubernetes/go.mod) = 1048 -SHA256 (go/security_vault/hashicorp-vault-v1.21.4_GH0/api/auth/userpass/go.mod) = 827968c126537e2a119677104edc3f127cf02490a22019afcd0cbd39f98046ec -SIZE (go/security_vault/hashicorp-vault-v1.21.4_GH0/api/auth/userpass/go.mod) = 1046 -SHA256 (go/security_vault/hashicorp-vault-v1.21.4_GH0/sdk/go.mod) = 8393a2a3934bee2df385e7f10b07f328f2fd24e6b78a53a394b9f0f0fed1c9c2 -SIZE (go/security_vault/hashicorp-vault-v1.21.4_GH0/sdk/go.mod) = 6801 -SHA256 (go/security_vault/hashicorp-vault-v1.21.4_GH0/vault-web_ui-1.21.4.tar.gz) = 90c6ee0c3b35be54e8dec6a367df3f62108789a47bb1551717b225eb07a1299e -SIZE (go/security_vault/hashicorp-vault-v1.21.4_GH0/vault-web_ui-1.21.4.tar.gz) = 3578786 -SHA256 (go/security_vault/hashicorp-vault-v1.21.4_GH0/hashicorp-vault-v1.21.4_GH0.tar.gz) = d46ed3404c8f9e992a17e7ffad1abb182a8a51c2e5c420bf2417db11ba354bb1 -SIZE (go/security_vault/hashicorp-vault-v1.21.4_GH0/hashicorp-vault-v1.21.4_GH0.tar.gz) = 8799642 +TIMESTAMP = 1778936382 +SHA256 (go/security_vault/hashicorp-vault-v2.0.0_GH0/go.mod) = 791da54c25ea2abc7d7cb2b2a6f616dcfa6a4e347f70e09b6910bd9d7d776c3c +SIZE (go/security_vault/hashicorp-vault-v2.0.0_GH0/go.mod) = 31480 +SHA256 (go/security_vault/hashicorp-vault-v2.0.0_GH0/api/go.mod) = 8a6b8e241e02321ca7eceb0808e6eeb2c0ac55db8bd27bdc370438f31fc80e95 +SIZE (go/security_vault/hashicorp-vault-v2.0.0_GH0/api/go.mod) = 1598 +SHA256 (go/security_vault/hashicorp-vault-v2.0.0_GH0/api/auth/approle/go.mod) = daca467288fda42358a66581de5d729b1b2d0b965fd66ac246767592144e1bd1 +SIZE (go/security_vault/hashicorp-vault-v2.0.0_GH0/api/auth/approle/go.mod) = 1004 +SHA256 (go/security_vault/hashicorp-vault-v2.0.0_GH0/api/auth/kubernetes/go.mod) = 8aec5b52bb858962495c73695a5e348ce83eabec1a4bca51f516f601fa5a9402 +SIZE (go/security_vault/hashicorp-vault-v2.0.0_GH0/api/auth/kubernetes/go.mod) = 1007 +SHA256 (go/security_vault/hashicorp-vault-v2.0.0_GH0/api/auth/userpass/go.mod) = aa229dfc36eb9394fbe81bc0ac7c503acdcabc341244e3e09aa58dc6c730bc2d +SIZE (go/security_vault/hashicorp-vault-v2.0.0_GH0/api/auth/userpass/go.mod) = 1005 +SHA256 (go/security_vault/hashicorp-vault-v2.0.0_GH0/sdk/go.mod) = cd6d203b0780bc4dc7c34bd2f327f48765d5ab52906e71e3fce1c6895f9ca893 +SIZE (go/security_vault/hashicorp-vault-v2.0.0_GH0/sdk/go.mod) = 6223 +SHA256 (go/security_vault/hashicorp-vault-v2.0.0_GH0/vault-web_ui-2.0.0.tar.gz) = 322f613648450b9b58cbebfd4999ccd729b156507bbb62b98781dce7bacfe00d +SIZE (go/security_vault/hashicorp-vault-v2.0.0_GH0/vault-web_ui-2.0.0.tar.gz) = 5993323 +SHA256 (go/security_vault/hashicorp-vault-v2.0.0_GH0/hashicorp-vault-v2.0.0_GH0.tar.gz) = b925e64902ab72c6cb797a150982b31fb645c417eec081d14c2ae10fe9e70a10 +SIZE (go/security_vault/hashicorp-vault-v2.0.0_GH0/hashicorp-vault-v2.0.0_GH0.tar.gz) = 10202325