This release introduces the new vault web ui feature.
Further information is here: https://www.vaultproject.io/docs/enterprise/ui/index.html note: The documentation is partly outdated. You don't need an enterprise license for it anymore. They ship it in their community version since 0.10.0
This commit is contained in:
parent
9cae9d203a
commit
ccc1d4318a
58
PKGBUILD
58
PKGBUILD
@ -1,17 +1,19 @@
|
|||||||
# Maintainer : Christian Rebischke <Chris.Rebischke@archlinux.org>
|
# Maintainer : Christian Rebischke <Chris.Rebischke@archlinux.org>
|
||||||
|
# Contributor: Tim Meusel <tim@bastelfreak.de>
|
||||||
|
# Contributor: Sebastian Rakel sebastian@devunit.eu
|
||||||
|
|
||||||
pkgname='vault'
|
pkgname='vault'
|
||||||
pkgdesc='A tool for managing secrets'
|
pkgdesc='A tool for managing secrets'
|
||||||
pkgver='0.10.0'
|
pkgver='0.10.1'
|
||||||
pkgrel='1'
|
pkgrel='1'
|
||||||
url='https://vaultproject.io/'
|
url="https://vaultproject.io/"
|
||||||
license=('MPL')
|
license=('MPL')
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
makedepends=('go-pie' 'git')
|
makedepends=('nodejs-lts-carbon' 'go-pie' 'git' 'yarn' 'python2' 'bower' 'npm' 'zip')
|
||||||
depends=('glibc')
|
depends=('glibc')
|
||||||
install='vault.install'
|
install='vault.install'
|
||||||
backup=('etc/vault.hcl')
|
backup=('etc/vault.hcl')
|
||||||
_vault_commit='5dd7f25f5c4b541f2da62d70075b6f82771a650d'
|
_vault_commit='756fdc4587350daf1c65b93647b2cc31a6f119cd'
|
||||||
source=("git+https://github.com/hashicorp/vault#commit=${_vault_commit}"
|
source=("git+https://github.com/hashicorp/vault#commit=${_vault_commit}"
|
||||||
'vault.service'
|
'vault.service'
|
||||||
'vault.sysusers'
|
'vault.sysusers'
|
||||||
@ -27,23 +29,45 @@ prepare () {
|
|||||||
export GOPATH="${srcdir}"
|
export GOPATH="${srcdir}"
|
||||||
export PATH="$PATH:$GOPATH/bin"
|
export PATH="$PATH:$GOPATH/bin"
|
||||||
mkdir -p src/github.com/hashicorp/
|
mkdir -p src/github.com/hashicorp/
|
||||||
mv "${pkgname}" src/github.com/hashicorp/
|
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}"
|
||||||
}
|
}
|
||||||
|
|
||||||
build () {
|
build () {
|
||||||
cd src/github.com/hashicorp/"${pkgname}"
|
cd $PACKAGE_ROOT
|
||||||
go build -o vault-binary
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
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
|
||||||
|
XC_OSARCH='linux/amd64' make static-dist bin
|
||||||
}
|
}
|
||||||
|
|
||||||
package () {
|
package () {
|
||||||
cd src/github.com/hashicorp/"${pkgname}"
|
cd ${PACKAGE_ROOT}
|
||||||
install -Dm755 vault-binary "${pkgdir}/usr/bin/vault"
|
install -Dm755 bin/vault "${pkgdir}/usr/bin/vault"
|
||||||
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
install -Dm644 "${srcdir}/vault.hcl" "${pkgdir}/etc/vault.hcl"
|
install -Dm644 "${srcdir}/vault.hcl" "${pkgdir}/etc/vault.hcl"
|
||||||
install -Dm644 "${srcdir}/vault.service" "${pkgdir}/usr/lib/systemd/system/vault.service"
|
install -Dm644 "${srcdir}/vault.service" "${pkgdir}/usr/lib/systemd/system/vault.service"
|
||||||
install -Dm644 "${srcdir}/vault.sysusers" "${pkgdir}/usr/lib/sysusers.d/vault.conf"
|
install -Dm644 "${srcdir}/vault.sysusers" "${pkgdir}/usr/lib/sysusers.d/vault.conf"
|
||||||
install -Dm644 "${srcdir}/vault.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/vault.conf"
|
install -Dm644 "${srcdir}/vault.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/vault.conf"
|
||||||
for file in README.md CHANGELOG.md ; do
|
for file in README.md CHANGELOG.md ; do
|
||||||
install -Dm644 "${file}" "${pkgdir}/usr/share/doc/${pkgname}/${file}"
|
install -Dm644 "${file}" "${pkgdir}/usr/share/doc/${pkgname}/${file}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
@ -3,3 +3,7 @@
|
|||||||
post_install () {
|
post_install () {
|
||||||
setcap cap_ipc_lock=+ep /usr/bin/vault
|
setcap cap_ipc_lock=+ep /usr/bin/vault
|
||||||
}
|
}
|
||||||
|
|
||||||
|
post_upgrade () {
|
||||||
|
setcap cap_ipc_lock=+ep /usr/bin/vault
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user