diff options
Diffstat (limited to 'app-admin/vault')
-rw-r--r-- | app-admin/vault/Manifest | 7 | ||||
-rw-r--r-- | app-admin/vault/metadata.xml | 3 | ||||
-rw-r--r-- | app-admin/vault/vault-1.0.2.ebuild (renamed from app-admin/vault/vault-0.11.4.ebuild) | 25 |
3 files changed, 28 insertions, 7 deletions
diff --git a/app-admin/vault/Manifest b/app-admin/vault/Manifest index dd8acfd5f40f..b7b115114136 100644 --- a/app-admin/vault/Manifest +++ b/app-admin/vault/Manifest @@ -3,10 +3,11 @@ AUX vault.confd 243 BLAKE2B 6598fa2138c4ca94fdd6b7a02048ee4a4eb2b37d17b8a065ae2f AUX vault.initd 542 BLAKE2B 5e28a00356c010d34458c6f64d2bdb0736673ae552bec809cc5e23a1613e44cd847b4df99bee652a99cb6fb84443d5f9c5c1fba1c165d946f1c93cd8ca31ffa3 SHA512 ac13c688e006799b607c44e94fbdf922befc62131014b714a93ca4bb0205f5f012bb3e4814eeeb47b31034f5c35b187fc8ebaeca02bd02430c5842bc9821f29a AUX vault.logrotated 83 BLAKE2B 63b106e949f8a2da0ca97f1d07732fdea4dafbe44cb97ea81074472b95489d179deccd14f4d4176043f488f2be68b96dc6bee20748fe68f650d70fd32078d2bd SHA512 83d73760d85dbb731652aa5936d2780208ac4643e975538652f53b49305d024df6d72a8a06d82f430982b07cf940b2fd69f9a6eedb39d380136c8e5bfda280e5 AUX vault.service 409 BLAKE2B 1e34e7bb4e5d52949b1b0afbe495aea00202ee599db1b1737bd81c5252a6d57efd2a5c98e4dfaa4d632bb664a467414e644ec751921ced20f5e4c40b27222eb6 SHA512 2c4c7c395ebcd06e70de57d93384442ea88346cc2815b509966bd9f12579758e5f43d9a2ca1158e3b25198ad0c82ed9cf5d453f3cd7b5873011b3b13ec60196c -DIST vault-0.11.4.tar.gz 25456828 BLAKE2B 35ed79e8474c4fffb046b5163bfd7115ca4ffe3c3560732d9f73349a1187417a288c30985d7ac450b86f682aa7a1d5318634c1be60e5bffce04137e32f2ad13d SHA512 99e592d679d65d75d62812e2d0ae9a652342a97f4934a2ca00a9ac044cdc92b35e7108296cf1a700ed36818a504fcaf155f8f61d7b10d84933932bdab00a9f7e DIST vault-0.11.5.tar.gz 25459691 BLAKE2B 9f77e90b71629e1ed341d03830a0376b6731d85189dde0205148c7c8002556521538144cbf1b7bc425253cc55de6ab3d48cbcc1d270165e5804f7f632d06523b SHA512 b290523ee94199d241bbd2477ca686076f645804953181996aefe2a425bc5114db3d375fd5c832d1fa257a790947544406f50777317e854ccf2d4d4477ab6ffd DIST vault-1.0.1.tar.gz 25817507 BLAKE2B c4882341fbcea2051c8685dfff85739f11898d0406d12611cdda36f19d7badae69e88060d593ba03c333b151d4402b7bfc520f34c0663fe00a77998aa662f161 SHA512 b644e419faa8dc1f8a347f7b522ccafbdea9f849de9ad1ca085214d21e50bd2ec6eb868b4eb0abff65537abc4fba93c3e4ffd424afa90ca049068e6eccc99999 -EBUILD vault-0.11.4.ebuild 1620 BLAKE2B 7130a0a55407c092d96c3e22b216bdfab9d2e0168176539745afda5563808efbec06051adaa66fbf644a530ae91ac6f21fa7d58f78f57aab3f8b19dc65812399 SHA512 5d22bb29b0a7bffe7410af9b9cb07ab6957ca78aa0d82016341327eb739011799f330bc1f2eacc8d3509eb52f445ccb1f04ecb5332fd8d2601bfb2ba8d36486c +DIST vault-1.0.2-webui.tar.xz 1252768 BLAKE2B d4af46bae84eb2e0e76633e5af061b351d486f19eebd0323a0ae5eb13275310e23169a88e3984a753ae45102c1010b54ae2ca789fe0c62e8e302305eec2bd129 SHA512 9282135e1f1cf983fb1ea4b72b7b3e5cc49aa42299aa5be40e9697da028c3e0bb8c2869e72a79b27ee2124a1b0f913b1b22ef98f96401289edb9e3407d460465 +DIST vault-1.0.2.tar.gz 25834864 BLAKE2B 88f3252547e05a70a377d7711c7df279619455ce26003868465df1030da9ffe95bddd094b40b99f7f4698bbacfd883cdee31d14ee47e815299eb41a18ef99b3d SHA512 e90a1db0401778650f16fa01827b274dc8e38e5f6fb420814bdc3f89507d3507a94d6bd3eacabf1ae782e72286dda598106918030b674f9b7d3f8e69cddbd3ec EBUILD vault-0.11.5.ebuild 1620 BLAKE2B 7130a0a55407c092d96c3e22b216bdfab9d2e0168176539745afda5563808efbec06051adaa66fbf644a530ae91ac6f21fa7d58f78f57aab3f8b19dc65812399 SHA512 5d22bb29b0a7bffe7410af9b9cb07ab6957ca78aa0d82016341327eb739011799f330bc1f2eacc8d3509eb52f445ccb1f04ecb5332fd8d2601bfb2ba8d36486c EBUILD vault-1.0.1.ebuild 1620 BLAKE2B 4cfe3ee73464ce3f1c53c9f1afc42022e8feef5312e678630b4e52abe2298baae67824f63b058341680c953713e94c715f9caa773312563588e2ec712eb7bef1 SHA512 9a1ff9ac7f1b15acda152467f7d9f041681f570eda71848c05c62643dc155c7fcacccd8dd3aac4bafe51ace6a9522cf847d5a47ce8fdef7677d8ff24cf605b82 -MISC metadata.xml 306 BLAKE2B 882a83701d71a45cdc6fc00ba3da98ff7d7439c9f81ef0aa1655c49bd5e79b3e625858d33f4ac6d5157df6ef74c5dd00a2b8efb1fd5ee45f9a0ed785c90d8ebc SHA512 d1fc4040379fb33c7f193f37a1c044000408e47c9df8b17771ed7cb5194f9d8b8c062b8a6804e72fb5a666683a8d5b49ec5a6328394870d9bdc1b7f3e0e4e787 +EBUILD vault-1.0.2.ebuild 2135 BLAKE2B 2372bc71e55bc372481dbe7c96031ffb05aacab25bdcc658e40f04b7562c15d1e507c8ea443b6ea935f174fe7a26742f6445a50da3e1f5004a6588d37028afa3 SHA512 5fbeb9aff965df2f8d441668805fb2d79e5b9c83fbd03d7faea5ea7a4a99cf14ecb51e48668f452b32ca4a45458009cd167af639499245abb770d6169c2af812 +MISC metadata.xml 371 BLAKE2B bdee8ae91cf8ccf66bfceb7ee5e1a46494d3e1b36cf5159ce9e6ad36eb251ea0ea03b1a9aab034936021d1a0f17c8577dafb30dc76a912ec04d8cfc3ae8c37cc SHA512 2517b0ec49190a14a2261c3544e4115435abcc0824a0fd255f6eb585d2de9e97f6feddeff8bb15c505d0f9e3086839e00e2abbd18bc639b45a25f6a7f384be6a diff --git a/app-admin/vault/metadata.xml b/app-admin/vault/metadata.xml index 9f451f6533d7..5f19dd15eeea 100644 --- a/app-admin/vault/metadata.xml +++ b/app-admin/vault/metadata.xml @@ -7,4 +7,7 @@ <upstream> <remote-id type="github">hashicorp/vault</remote-id> </upstream> + <use> + <flag name="webui">Enable the Web UI</flag> + </use> </pkgmetadata> diff --git a/app-admin/vault/vault-0.11.4.ebuild b/app-admin/vault/vault-1.0.2.ebuild index 52a7f68b449b..8eb29218789b 100644 --- a/app-admin/vault/vault-0.11.4.ebuild +++ b/app-admin/vault/vault-1.0.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -6,13 +6,18 @@ EAPI=6 inherit fcaps golang-base golang-vcs-snapshot systemd user EGO_PN="github.com/hashicorp/${PN}" +VAULT_WEBUI_ARCHIVE="${P}-webui.tar.xz" DESCRIPTION="A tool for managing secrets" HOMEPAGE="https://vaultproject.io/" -SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + webui? ( + mirror://gentoo/${VAULT_WEBUI_ARCHIVE} + https://dev.gentoo.org/~zmedico/dist/${VAULT_WEBUI_ARCHIVE} + )" SLOT="0" LICENSE="MPL-2.0" KEYWORDS="~amd64" -IUSE="" +IUSE="+webui" RESTRICT="test" @@ -23,6 +28,17 @@ FILECAPS=( -m 755 'cap_ipc_lock=+ep' usr/bin/${PN} ) +src_unpack() { + golang-vcs-snapshot_src_unpack + if use webui; then + # The webui assets build has numerous nodejs dependencies, + # see https://github.com/hashicorp/vault/blob/master/ui/README.md + pushd "${S}/src/${EGO_PN}" >/dev/null || die + unpack "${VAULT_WEBUI_ARCHIVE}" + popd >/dev/null + fi +} + src_prepare() { default # Avoid the need to have a git checkout @@ -40,11 +56,12 @@ pkg_setup() { src_compile() { mkdir bin || die - export GOPATH=${S} + export GOBIN=${S}/bin GOPATH=${S} cd src/${EGO_PN} || die # The fmt target may need to be executed if it was previously # executed by an older version of go (bug 665438). emake fmt + BUILD_TAGS="$(usex webui ui '')" \ XC_ARCH=$(go env GOARCH) \ XC_OS=$(go env GOOS) \ XC_OSARCH=$(go env GOOS)/$(go env GOARCH) \ |