2017-12-03 00:43:53 +00:00
|
|
|
# Maintainer : Christian Rebischke <Chris.Rebischke@archlinux.org>
|
2018-01-09 14:04:37 +00:00
|
|
|
|
2017-12-03 00:43:53 +00:00
|
|
|
pkgname='vault'
|
|
|
|
pkgdesc='A tool for managing secrets'
|
2018-02-24 19:16:56 +00:00
|
|
|
pkgver='0.9.4'
|
2018-01-17 16:58:05 +00:00
|
|
|
pkgrel='1'
|
2017-12-03 00:43:53 +00:00
|
|
|
url='https://vaultproject.io/'
|
|
|
|
license=('MPL')
|
|
|
|
arch=('x86_64')
|
|
|
|
makedepends=('go-pie' 'git')
|
|
|
|
depends=('glibc')
|
|
|
|
install='vault.install'
|
|
|
|
backup=('etc/vault.hcl')
|
2018-02-24 19:16:56 +00:00
|
|
|
_vault_commit='2e2c89a3d8d2f4876c64dee6ba3d4a5e08691aee'
|
2017-12-03 00:43:53 +00:00
|
|
|
source=("git+https://github.com/hashicorp/vault#commit=${_vault_commit}"
|
|
|
|
'vault.service'
|
2018-01-09 14:04:37 +00:00
|
|
|
'vault.sysusers'
|
|
|
|
'vault.tmpfiles'
|
2017-12-03 00:43:53 +00:00
|
|
|
'vault.hcl')
|
|
|
|
sha512sums=('SKIP'
|
2017-12-14 15:24:52 +00:00
|
|
|
'6619cf57668e995cddb29fb6c388c18c21b251052a53832415e415bb4fe538361ef77b74536f5b082b9cda6cd71b598fc50d8b7f51092c4d60262052c5725af2'
|
2018-01-09 14:04:37 +00:00
|
|
|
'92616ccf83fa5ca9f8b0d022cf8ceb1f3549e12b66bf21d9f77f3eb26bd75ec1dc36c155948ec987c642067b85fbfc30a9217d6c503d952a402aa5ef63e50928'
|
|
|
|
'073f0f400cba78521cd2709ce86d88fbb14125117f9f3beca657f625d04eab8e00f7a01b5d9a1cfc03e9038844f5732bdbb1a85dd65a803d3f0b90f8bf87880e'
|
2017-12-03 00:43:53 +00:00
|
|
|
'46106cc76151eef2dd5e4b2caa6a96aae4d6ce1ecbf977dcc8667a3f6c829cbea95133622adafcb15cdfaa066ecc94c73c983e7613ee2f6573694981569729fe')
|
|
|
|
|
|
|
|
prepare () {
|
|
|
|
export GOPATH="${srcdir}"
|
|
|
|
export PATH="$PATH:$GOPATH/bin"
|
|
|
|
mkdir -p src/github.com/hashicorp/
|
2018-02-14 09:04:10 +00:00
|
|
|
mv "${pkgname}" src/github.com/hashicorp/
|
2017-12-03 00:43:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build () {
|
2018-02-14 09:04:10 +00:00
|
|
|
cd src/github.com/hashicorp/"${pkgname}"
|
2017-12-03 00:43:53 +00:00
|
|
|
go build -o vault-binary
|
|
|
|
}
|
|
|
|
|
|
|
|
package () {
|
2018-02-14 09:04:10 +00:00
|
|
|
cd src/github.com/hashicorp/"${pkgname}"
|
2017-12-03 00:43:53 +00:00
|
|
|
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"
|
2018-01-09 14:04:37 +00:00
|
|
|
install -Dm644 "${srcdir}/vault.sysusers" "${pkgdir}/usr/lib/sysusers.d/vault.conf"
|
|
|
|
install -Dm644 "${srcdir}/vault.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/vault.conf"
|
2017-12-03 00:43:53 +00:00
|
|
|
for file in README.md CHANGELOG.md ; do
|
|
|
|
install -Dm644 "${file}" "${pkgdir}/usr/share/doc/${pkgname}/${file}"
|
|
|
|
done
|
|
|
|
}
|