From 090a2be8642f6de680cfe1e93c5e12b8074adf91 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 1 Sep 2017 12:19:49 -0700 Subject: app-admin/vault: revbump to 0.7.3-r1 for bug 628656 Package-Manager: Portage-2.3.8, Repoman-2.3.2 --- app-admin/vault/files/vault.initd | 17 ++++----- app-admin/vault/vault-0.7.3-r1.ebuild | 66 +++++++++++++++++++++++++++++++++++ app-admin/vault/vault-0.7.3.ebuild | 66 ----------------------------------- 3 files changed, 72 insertions(+), 77 deletions(-) create mode 100644 app-admin/vault/vault-0.7.3-r1.ebuild delete mode 100644 app-admin/vault/vault-0.7.3.ebuild (limited to 'app-admin/vault') diff --git a/app-admin/vault/files/vault.initd b/app-admin/vault/files/vault.initd index 3568a447c4bc..d430bb8d39a9 100644 --- a/app-admin/vault/files/vault.initd +++ b/app-admin/vault/files/vault.initd @@ -3,22 +3,17 @@ # Distributed under the terms of the GNU General Public License v2 description="vault server" -group=${group:-${SVCNAME}} -pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"} -user=${user:-${SVCNAME}} +group=${group:-${RC_SVCNAME}} +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +user=${user:-${RC_SVCNAME}} -command="/usr/bin/${SVCNAME}" +command="/usr/bin/${RC_SVCNAME}" command_args="server ${command_args}" command_background="true" start_stop_daemon_args="--user ${user} --group ${group} \ - --stdout /var/log/${SVCNAME}/${SVCNAME}.log \ - --stderr /var/log/${SVCNAME}/${SVCNAME}.log" + --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ + --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" depend() { need net - after net -} - -start_pre() { - checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}" } diff --git a/app-admin/vault/vault-0.7.3-r1.ebuild b/app-admin/vault/vault-0.7.3-r1.ebuild new file mode 100644 index 000000000000..332d32ddfc85 --- /dev/null +++ b/app-admin/vault/vault-0.7.3-r1.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2017 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:= + 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 +} + +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} +} diff --git a/app-admin/vault/vault-0.7.3.ebuild b/app-admin/vault/vault-0.7.3.ebuild deleted file mode 100644 index 332d32ddfc85..000000000000 --- a/app-admin/vault/vault-0.7.3.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2017 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:= - 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 -} - -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} -} -- cgit v1.2.3-65-gdbad