From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BCB4E13844E for ; Wed, 19 Oct 2016 16:49:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 004D9E08D5; Wed, 19 Oct 2016 16:49:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B87CEE08D5 for ; Wed, 19 Oct 2016 16:49:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 55822340F53 for ; Wed, 19 Oct 2016 16:49:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B88192EE for ; Wed, 19 Oct 2016 16:49:26 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1476895761.11243eea96f7faa2aa81a48a6ba319b228d36397.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/consul/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/consul/consul-9999.ebuild X-VCS-Directories: app-admin/consul/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 11243eea96f7faa2aa81a48a6ba319b228d36397 X-VCS-Branch: master Date: Wed, 19 Oct 2016 16:49:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: beff4c5e-10e2-4fe2-b8d5-f3d73fe0a085 X-Archives-Hash: d70f7e5b9e5d4e772d8d8b7177a37ef6 commit: 11243eea96f7faa2aa81a48a6ba319b228d36397 Author: Zac Medico gentoo org> AuthorDate: Wed Oct 19 16:48:52 2016 +0000 Commit: Zac Medico gentoo org> CommitDate: Wed Oct 19 16:49:21 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11243eea app-admin/consul: drop unmaintained 9999 ebuild Package-Manager: portage-2.3.2 app-admin/consul/consul-9999.ebuild | 125 ------------------------------------ 1 file changed, 125 deletions(-) diff --git a/app-admin/consul/consul-9999.ebuild b/app-admin/consul/consul-9999.ebuild deleted file mode 100644 index 0e865fe..00000000 --- a/app-admin/consul/consul-9999.ebuild +++ /dev/null @@ -1,125 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit git-r3 golang-base systemd user - -GO_PN="github.com/hashicorp/consul" - -DESCRIPTION="A tool for service discovery, monitoring and configuration" -HOMEPAGE="http://www.consul.io" -SRC_URI="" -EGIT_REPO_URI="git://${GO_PN}.git" - -SLOT="0" -LICENSE="MPL-2.0" -KEYWORDS="" -IUSE="test web" - -RESTRICT="test" - -DEPEND=" - app-arch/zip - >=dev-lang/go-1.4:= - dev-go/go-crypto:= - test? ( dev-go/go-tools ) - web? ( - dev-ruby/sass - dev-ruby/uglifier - )" -RDEPEND="" - -STRIP_MASK="*.a" - -S="${WORKDIR}/src/${GO_PN}" - -EGIT_CHECKOUT_DIR="${S}" - -pkg_setup() { - enewgroup consul - enewuser consul -1 -1 /var/lib/${PN} consul -} - -src_unpack() { - git-r3_src_unpack - cd "${S}" || die - - # Create a writable GOROOT in order to avoid sandbox violations - # or other interference from installed instances. - export GOPATH="${WORKDIR}:$(get_golibdir_gopath)" GOROOT="${WORKDIR}/goroot" - cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die - - # Use latest versions of some packages, in case of incompatible - # API changes - rm -rf "${GOROOT}/src/${GO_PN%/*}" \ - "${GOROOT}/pkg/$(go env GOOS)_$(go env GOARCH)/${GO_PN%/*}" || die - - # Fetch dependencies - emake deps - - # Avoid interference from installed instances - while read -r path; do - rm -rf "${GOROOT}/src/${path#${WORKDIR}/src}" \ - "${GOROOT}/pkg/$(go env GOOS)_$(go env GOARCH)/${path#${WORKDIR}/src}" || die - done < <(find "${WORKDIR}"/src -maxdepth 3 -mindepth 3 -type d) -} - -src_prepare() { - # Disable tests that fail under network-sandbox - sed -e 's:TestServer_StartStop:_TestServer_StartStop:' \ - -i consul/server_test.go || die - sed -e 's:TestRetryJoin(:_TestRetryJoin(:' \ - -i command/agent/command_test.go || die -} - -src_compile() { - emake - - if use web; then - pushd ui >/dev/null || die - emake dist - fi -} - -src_install() { - local x - - dobin bin/* - rm -rf bin || die - - keepdir /etc/consul.d - insinto /etc/consul.d - doins "${FILESDIR}/"*.json.example - - for x in /var/{lib,log}/${PN}; do - keepdir "${x}" - fowners consul:consul "${x}" - done - - if use web; then - insinto /var/lib/${PN}/ui - doins -r ui/dist/* - fi - - newinitd "${FILESDIR}/consul.initd" "${PN}" - newconfd "${FILESDIR}/consul.confd" "${PN}" - systemd_dounit "${FILESDIR}/consul.service" - - 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/$(go env GOOS)_$(go env GOARCH)/${x} || - -f ${WORKDIR}/pkg/$(go env GOOS)_$(go env GOARCH)/${x}.a ]] && continue - rm -rf "${WORKDIR}"/src/${x} - done < <(find "${WORKDIR}"/src/${GO_PN} -mindepth 1 -maxdepth 1 -type d -print0) - insopts -m0644 -p # preserve timestamps for bug 551486 - insinto "$(get_golibdir)/pkg/$(go env GOOS)_$(go env GOARCH)/${GO_PN%/*}" - doins -r "${WORKDIR}"/pkg/$(go env GOOS)_$(go env GOARCH)/${GO_PN} - insinto "$(get_golibdir)/src/${GO_PN%/*}" - doins -r "${WORKDIR}"/src/${GO_PN} -}