[arch-commits] Commit in vault/trunk (PKGBUILD)
Christian Rebischke
shibumi at archlinux.org
Mon Jan 13 21:43:43 UTC 2020
Date: Monday, January 13, 2020 @ 21:43:43
Author: shibumi
Revision: 552446
upgpkg: vault 1.3.1-1 Fix CVE-2019-16276 + major release update
Modified:
vault/trunk/PKGBUILD
----------+
PKGBUILD | 39 ++++++++-------------------------------
1 file changed, 8 insertions(+), 31 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-13 21:41:55 UTC (rev 552445)
+++ PKGBUILD 2020-01-13 21:43:43 UTC (rev 552446)
@@ -4,16 +4,17 @@
pkgname='vault'
pkgdesc='A tool for managing secrets'
-pkgver='1.2.3'
+pkgver='1.3.1'
pkgrel='1'
url="https://vaultproject.io/"
license=('MPL')
arch=('x86_64')
-makedepends=('go-pie' 'git' 'yarn' 'python2' 'bower' 'nodejs-lts-dubnium' 'npm' 'zip')
+makedepends=('go-pie' 'git' 'yarn' 'bower' 'nodejs-lts-dubnium' 'npm' 'zip'
+'go-bindata-hashicorp' 'go-bindata-assetfs' 'gox' 'go-tools')
depends=('glibc')
install='vault.install'
backup=('etc/vault.hcl')
-_vault_commit='c14bd9a2b1d2c20f15b9f93f5c2d487507bb8a2f'
+_vault_commit='cec3fdeda0077efb0a6b0343908322f806a1dfef'
source=("git+https://github.com/hashicorp/vault#commit=${_vault_commit}"
'vault.service'
'vault.sysusers'
@@ -28,40 +29,16 @@
prepare () {
export GOPATH="${srcdir}"
- export PATH="$PATH:$GOPATH/bin"
- mkdir -p src/github.com/hashicorp/
+# export PATH="$PATH:$GOPATH/bin"
+ mkdir -p src/github.com/hashicorp/ "$GOPATH/bin"
mv "${pkgname}" "src/github.com/hashicorp/${pkgname}"
- # this is temporary
- go get github.com/kardianos/govendor
export PACKAGE_ROOT="${GOPATH}/src/github.com/hashicorp/${pkgname}"
+ cd $PACKAGE_ROOT
+ git revert -n 61ff0fd8699dfe9efb9b014df8e9aff86a0aa924 #https://github.com/hashicorp/vault/issues/7475
}
build () {
cd $PACKAGE_ROOT
-
- # We will provide these packages in the future ourself
- govendor fetch github.com/mitchellh/gox
- govendor fetch github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs
- govendor fetch github.com/hashicorp/go-bindata/go-bindata
- govendor fetch golang.org/x/tools/cmd/goimports
-
- cd $PACKAGE_ROOT/vendor/github.com/hashicorp/go-bindata/go-bindata
- go build
- go install
-
- cd $PACKAGE_ROOT/vendor/github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs
- go build
- go install
-
- cd $PACKAGE_ROOT/vendor/github.com/mitchellh/gox
- go build
- go install
-
- cd $PACKAGE_ROOT/vendor/golang.org/x/tools/cmd/goimports
- go build
- go install
-
- cd $PACKAGE_ROOT
XC_OSARCH='linux/amd64' make static-dist bin
}
More information about the arch-commits
mailing list