diff -r 9380ea9128d5 -r 6dd295839db8 sys-cluster/nomad/nomad-0.10.5.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sys-cluster/nomad/nomad-0.10.5.ebuild Mon Mar 30 15:11:06 2020 -0400 @@ -0,0 +1,51 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="The cluster manager from Hashicorp" +HOMEPAGE="http://nomadproject.io" + +#RESTRICT="strip test" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="dev-go/go-bindata dev-go/go-bindata-assetfs" +RDEPEND="${DEPEND} + acct-group/nomad + acct-user/nomad + " +BDEPEND="" +EGO_PN="github.com/hashicorp/${PN}" +EGO_VENDOR=( + "github.com/kardianos/govendor e31350db9750308ce016ebef8350a8ff1e0a37d0" +) + +inherit golang-vcs-snapshot golang-build + +SRC_URI="https://github.com/hashicorp/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + $EGO_VENDOR_URI" + +src_compile() { + ego_pn_check + # for now disable nvidia support + GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \ + GO_TAGS="nonvidia" \ + emake -C "${S}/src/${EGO_PN}" "pkg/linux_amd64/${PN}" +} + +src_install() { + dobin "${S}/src/${EGO_PN}/pkg/linux_amd64/${PN}" + + local x + for x in /var/{lib,log}/${PN}; do + keepdir "${x}" + fowners ${PN}:${PN} "${x}" + done + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" +}