1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit user golang-build golang-vcs-snapshot
7 EGO_PN="github.com/coreos/clair"
9 ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
12 DESCRIPTION="Vulnerability Static Analysis for Containers"
13 HOMEPAGE="https://github.com/coreos/clair"
14 SRC_URI="${ARCHIVE_URI}"
22 !!sci-visualization/xd3d" # File collision (Bug #621044)
26 enewuser ${PN} -1 -1 -1 ${PN}
30 GOPATH="${S}" go build -o bin/${PN} -v ${EGO_PN}/cmd/${PN} || die
35 pushd src/${EGO_PN} || die
36 dodoc {README,ROADMAP,CONTRIBUTING}.md
38 doins config.example.yaml
41 newinitd "${FILESDIR}"/${PN}.initd ${PN}
42 newconfd "${FILESDIR}"/${PN}.confd ${PN}
43 keepdir /var/log/${PN}
44 fowners ${PN}:${PN} /var/log/${PN}