[arch-commits] Commit in vault/trunk (PKGBUILD vault.install)
Christian Rebischke
shibumi at archlinux.org
Tue May 1 15:35:15 UTC 2018
Date: Tuesday, May 1, 2018 @ 15:35:14
Author: shibumi
Revision: 318592
upgpkg: vault 0.10.1-1
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
Modified:
vault/trunk/PKGBUILD
vault/trunk/vault.install
---------------+
PKGBUILD | 58 +++++++++++++++++++++++++++++++++++++++-----------------
vault.install | 4 +++
2 files changed, 45 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-05-01 13:22:31 UTC (rev 318591)
+++ PKGBUILD 2018-05-01 15:35:14 UTC (rev 318592)
@@ -1,17 +1,19 @@
# Maintainer : Christian Rebischke <Chris.Rebischke at archlinux.org>
+# Contributor: Tim Meusel <tim at bastelfreak.de>
+# Contributor: Sebastian Rakel sebastian at devunit.eu
pkgname='vault'
pkgdesc='A tool for managing secrets'
-pkgver='0.10.0'
+pkgver='0.10.1'
pkgrel='1'
-url='https://vaultproject.io/'
+url="https://vaultproject.io/"
license=('MPL')
arch=('x86_64')
-makedepends=('go-pie' 'git')
+makedepends=('nodejs-lts-carbon' 'go-pie' 'git' 'yarn' 'python2' 'bower' 'npm' 'zip')
depends=('glibc')
install='vault.install'
backup=('etc/vault.hcl')
-_vault_commit='5dd7f25f5c4b541f2da62d70075b6f82771a650d'
+_vault_commit='756fdc4587350daf1c65b93647b2cc31a6f119cd'
source=("git+https://github.com/hashicorp/vault#commit=${_vault_commit}"
'vault.service'
'vault.sysusers'
@@ -27,23 +29,45 @@
export GOPATH="${srcdir}"
export PATH="$PATH:$GOPATH/bin"
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 () {
- cd src/github.com/hashicorp/"${pkgname}"
- go build -o vault-binary
+ 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
+
+ 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 () {
- cd src/github.com/hashicorp/"${pkgname}"
- install -Dm755 vault-binary "${pkgdir}/usr/bin/vault"
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- 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.sysusers" "${pkgdir}/usr/lib/sysusers.d/vault.conf"
- install -Dm644 "${srcdir}/vault.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/vault.conf"
- for file in README.md CHANGELOG.md ; do
- install -Dm644 "${file}" "${pkgdir}/usr/share/doc/${pkgname}/${file}"
- done
+ cd ${PACKAGE_ROOT}
+ install -Dm755 bin/vault "${pkgdir}/usr/bin/vault"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ 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.sysusers" "${pkgdir}/usr/lib/sysusers.d/vault.conf"
+ install -Dm644 "${srcdir}/vault.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/vault.conf"
+ for file in README.md CHANGELOG.md ; do
+ install -Dm644 "${file}" "${pkgdir}/usr/share/doc/${pkgname}/${file}"
+ done
}
Modified: vault.install
===================================================================
--- vault.install 2018-05-01 13:22:31 UTC (rev 318591)
+++ vault.install 2018-05-01 15:35:14 UTC (rev 318592)
@@ -3,3 +3,7 @@
post_install () {
setcap cap_ipc_lock=+ep /usr/bin/vault
}
+
+post_upgrade () {
+ setcap cap_ipc_lock=+ep /usr/bin/vault
+}
More information about the arch-commits
mailing list