diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2018-06-27 13:46:18 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2018-06-27 13:46:18 +0200 |
commit | 265c6256a18a11cdee57fae9ed7997e7f685370c (patch) | |
tree | c48d283f47fbc2243952a814f77c546b129c6955 /app-admin | |
parent | app-admin/dxf: Version bump to 7.3.0 (diff) | |
download | gentoo-265c6256a18a11cdee57fae9ed7997e7f685370c.tar.gz gentoo-265c6256a18a11cdee57fae9ed7997e7f685370c.tar.bz2 gentoo-265c6256a18a11cdee57fae9ed7997e7f685370c.zip |
app-admin/vault: Version bump to 0.10.3
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/vault/Manifest | 1 | ||||
-rw-r--r-- | app-admin/vault/vault-0.10.3.ebuild | 67 |
2 files changed, 68 insertions, 0 deletions
diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest index 42661217d722..9da24d5d2092 100644 --- a/app-admin/vault/Manifest +++ b/app-admin/vault/Manifest @@ -1,2 +1,3 @@ DIST vault-0.10.1.tar.gz 13001413 BLAKE2B d4dd663062062c55d110b165c1369a8a6f44c91002d564680ed008fcea2ce1e26ac24773deb951a46a7d9bcce2234e3b1dc250a957605f3ec82c781ac2e46b4a SHA512 dfa2d81e0e51cf41694ad40ad9bcc6847a9261ee06b2787d59915b941a63bfe58e649271e1ff5a963b892af5c13043057f29a1a8412efe51b3cf54157c54a060 DIST vault-0.10.2.tar.gz 15861571 BLAKE2B c1129c6f87fcd00aaf8fecaf472e33c6872663cbac1e778e3d1af9ca7978501fe9ca400cc6d79224f9f0df5912909218dfc2ff1547144b3a94fa9f10aed89534 SHA512 ce24d0c3c126bd8f265542c97dea4f0a1c56c5003e74b0aeb16aa462c326aa360f169e0bd08a4187480dbfcf1a052249f4dcf5a5bf356c4c901676d1b55c67b0 +DIST vault-0.10.3.tar.gz 15902247 BLAKE2B f69ddbe1309800cfae756f8ca1dd0da3e92ce49a1ec70539dc30785344afb7fe39472dcb2fb5ee4f410c7b52b13b00996b08d89624ef8523adcf4f809601ad5c SHA512 baacf549f9b73d306154dad6cd6efb3fb0eca3280c885cd772dada524cd436c1d5f1f705118274aa7cea6002cd8e0b86f1dfb02c4f5787d08dc535112cb62096 diff --git a/app-admin/vault/vault-0.10.3.ebuild b/app-admin/vault/vault-0.10.3.ebuild new file mode 100644 index 000000000000..2e6d92497501 --- /dev/null +++ b/app-admin/vault/vault-0.10.3.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit fcaps golang-base golang-vcs-snapshot systemd user + +EGO_PN="github.com/hashicorp/${PN}" +DESCRIPTION="A tool for managing secrets" +HOMEPAGE="https://vaultproject.io/" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SLOT="0" +LICENSE="MPL-2.0" +KEYWORDS="~amd64" +IUSE="" + +RESTRICT="test" + +DEPEND=">=dev-lang/go-1.10:= + dev-go/gox" + +FILECAPS=( + -m 755 'cap_ipc_lock=+ep' usr/bin/${PN} +) + +src_prepare() { + default + # Avoid the need to have a git checkout + sed -e 's:^\(GIT_COMMIT=\).*:\1:' \ + -e 's:^\(GIT_DIRTY=\).*:\1:' \ + -e s:\'\${GIT_COMMIT}\${GIT_DIRTY}\':: \ + -i src/${EGO_PN}/scripts/build.sh || die + sed -e "/hooks/d" -i src/${EGO_PN}/Makefile || die +} + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_compile() { + mkdir bin || die + export GOPATH=${S} + cd src/${EGO_PN} || die + XC_ARCH=$(go env GOARCH) \ + XC_OS=$(go env GOOS) \ + XC_OSARCH=$(go env GOOS)/$(go env GOARCH) \ + emake +} + +src_install() { + dodoc src/${EGO_PN}/{CHANGELOG.md,CONTRIBUTING.md,README.md} + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" + + keepdir /etc/${PN}.d + insinto /etc/${PN}.d + doins "${FILESDIR}/"*.json.example + + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} + + dobin bin/${PN} +} |