app-admin/vault: Use egit_clean to clean workdir
authorJustin Lecher <jlec@gentoo.org>
Fri, 22 Jan 2016 20:24:01 +0000 (21:24 +0100)
committerJustin Lecher <jlec@gentoo.org>
Fri, 22 Jan 2016 21:03:03 +0000 (22:03 +0100)
* Sort global scope according to skel.ebuild
* Add missing die

Package-Manager: portage-2.2.27
Signed-off-by: Justin Lecher <jlec@gentoo.org>
app-admin/vault/metadata.xml
app-admin/vault/vault-0.1.2-r1.ebuild
app-admin/vault/vault-0.1.2.ebuild
app-admin/vault/vault-9999.ebuild

index aace583669167db90d34a0795400731f79a58738..69a522dc6756211794e7cfe3eef792388bb376c1 100644 (file)
@@ -1,4 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
   <maintainer>
index f2adc6d07eb0a81e7dce2b852fee62ec0394062c..c30bcd2fda198f84fb5c6cd7a60c35af4d57798a 100644 (file)
@@ -1,27 +1,32 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
 
-inherit fcaps golang-build systemd user
+inherit eutils fcaps golang-build systemd user
+
+GO_PN="github.com/hashicorp/${PN}"
 
-KEYWORDS="~amd64"
 DESCRIPTION="A tool for managing secrets"
 HOMEPAGE="https://vaultproject.io/"
-GO_PN="github.com/hashicorp/${PN}"
-LICENSE="MPL-2.0"
+SRC_URI="
+       https://${GO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+       https://github.com/mitchellh/gox/archive/v0.3.0.tar.gz -> gox-0.3.0.tar.gz
+       https://github.com/mitchellh/iochan/archive/b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz -> iochan-b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz"
+
 SLOT="0"
+LICENSE="MPL-2.0"
+KEYWORDS="~amd64"
 IUSE=""
+
 RESTRICT="test"
 
 DEPEND="dev-go/go-oauth2:="
 RDEPEND=""
 
-SRC_URI="https://${GO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
-https://github.com/mitchellh/gox/archive/v0.3.0.tar.gz -> gox-0.3.0.tar.gz
-https://github.com/mitchellh/iochan/archive/b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz -> iochan-b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz"
 STRIP_MASK="*.a"
+
 S="${WORKDIR}/src/${GO_PN}"
 
 FILECAPS=(
@@ -85,8 +90,11 @@ src_install() {
        fowners ${PN}:${PN} /var/log/${PN}
 
        dobin bin/${PN}
-       find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null
-       find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete
+
+       egit_clean "${WORKDIR}"/{pkg,src}
+
+       find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete || die
+
        while read -r -d '' x; do
                x=${x#${WORKDIR}/src}
                [[ -d ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x} ||
index 452afb6f7e1ef57451d05fe74cbef209f4f4c6b8..a910cd92623681cdd314b5b7f52532254ba2f79f 100644 (file)
@@ -1,27 +1,31 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
 
-inherit fcaps golang-build systemd user
+inherit eutils fcaps golang-build systemd user
 
-KEYWORDS="~amd64"
+GO_PN="github.com/hashicorp/${PN}"
 DESCRIPTION="A tool for managing secrets"
 HOMEPAGE="https://vaultproject.io/"
-GO_PN="github.com/hashicorp/${PN}"
+SRC_URI="
+       https://${GO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+       https://github.com/mitchellh/gox/archive/v0.3.0.tar.gz -> gox-0.3.0.tar.gz
+       https://github.com/mitchellh/iochan/archive/b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz -> iochan-b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz"
+
 LICENSE="MPL-2.0"
 SLOT="0"
+KEYWORDS="~amd64"
 IUSE=""
+
 RESTRICT="test"
 
 DEPEND="dev-go/go-oauth2"
 RDEPEND=""
 
-SRC_URI="https://${GO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
-https://github.com/mitchellh/gox/archive/v0.3.0.tar.gz -> gox-0.3.0.tar.gz
-https://github.com/mitchellh/iochan/archive/b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz -> iochan-b584a329b193e206025682ae6c10cdbe03b0cd77.tar.gz"
 STRIP_MASK="*.a"
+
 S="${WORKDIR}/src/${GO_PN}"
 
 FILECAPS=(
@@ -85,8 +89,11 @@ src_install() {
        fowners ${PN}:${PN} /var/log/${PN}
 
        dobin bin/${PN}
-       find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null
-       find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete
+
+       egit_clean "${WORKDIR}"/{pkg,src}
+
+       find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete || die
+
        while read -r -d '' x; do
                x=${x#${WORKDIR}/src}
                [[ -d ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x} ||
index 41d51d37941f4a28850054de782d21ea9d029911..ef7e7b59b029e647c3462b8d5cb9c76dff0ccf84 100644 (file)
@@ -1,27 +1,32 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
 EAPI=5
 
-inherit fcaps git-r3 golang-build systemd user
+inherit eutils fcaps git-r3 golang-build systemd user
+
+GO_PN="github.com/hashicorp/${PN}"
 
-KEYWORDS=""
 DESCRIPTION="A tool for managing secrets"
 HOMEPAGE="https://vaultproject.io/"
-GO_PN="github.com/hashicorp/${PN}"
+SRC_URI=""
 EGIT_REPO_URI="git://${GO_PN}.git"
-LICENSE="MPL-2.0"
+
 SLOT="0"
+LICENSE="MPL-2.0"
+KEYWORDS=""
 IUSE=""
+
 RESTRICT="test"
 
 DEPEND="dev-go/go-oauth2:="
 RDEPEND=""
 
-SRC_URI=""
 STRIP_MASK="*.a"
+
 S="${WORKDIR}/src/${GO_PN}"
+
 EGIT_CHECKOUT_DIR="${S}"
 
 FILECAPS=(
@@ -81,8 +86,11 @@ src_install() {
        fowners ${PN}:${PN} /var/log/${PN}
 
        dobin bin/${PN}
-       find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null
-       find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete
+
+       egit_clean "${WORKDIR}"/{pkg,src}
+
+       find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type f -delete || die
+
        while read -r -d '' x; do
                x=${x#${WORKDIR}/src}
                [[ -d ${WORKDIR}/pkg/${KERNEL}_${ARCH}/${x} ||