dev-util/clair: Version bump to 2.0.2
authorManuel Rüger <mrueg@gentoo.org>
Tue, 27 Mar 2018 11:14:43 +0000 (13:14 +0200)
committerManuel Rüger <mrueg@gentoo.org>
Tue, 27 Mar 2018 11:14:43 +0000 (13:14 +0200)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

dev-util/clair/Manifest
dev-util/clair/clair-2.0.2.ebuild [new file with mode: 0644]

index bb820beae5a7d63c6806ddb7effa6859fa49f858..062e7e95e4146774bf6431a261befbf205db7a14 100644 (file)
@@ -1 +1,2 @@
 DIST clair-2.0.1.tar.gz 5194465 BLAKE2B b91bc130ce7237c5398715bfd91f6744d89bd9690ddd5d99aabbcc62b22c148dbbe2594d1c1376010d9cd992012d639ceef4e9a78d1837c633978f52b4d223ae SHA512 03293829426d81157860effd893b72164679b4ec40c19294e321d489ced67dfea72415cdd9b1005ae590367c68f746664a76f63a29c7d714b22917f2323c4937
+DIST clair-2.0.2.tar.gz 5194625 BLAKE2B a1866ec881036a3f3891935782ccb4709c26a8051b4d762be2e7eae2da11ecbad794d21fd2d62c842f5d6d18a8f203a2258d9e9fad985455becc494753c75e43 SHA512 1522c40059594f8f7ce17781269a3511e987173c741c550e5c0b87beaabe73e368a23ddd75a2499a6e9f8920308744809c4c938af31cdb93ce2f0a817f906674
diff --git a/dev-util/clair/clair-2.0.2.ebuild b/dev-util/clair/clair-2.0.2.ebuild
new file mode 100644 (file)
index 0000000..8c92e5d
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit user golang-build golang-vcs-snapshot
+
+EGO_PN="github.com/coreos/clair"
+EGIT_COMMIT="v${PV}"
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Vulnerability Static Analysis for Containers"
+HOMEPAGE="https://github.com/coreos/clair"
+SRC_URI="${ARCHIVE_URI}"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+
+RDEPEND="app-arch/rpm
+       app-arch/xz-utils
+       dev-vcs/bzr
+       dev-vcs/git
+       !!sci-visualization/xd3d" # File collision (Bug #621044)
+
+pkg_setup() {
+       enewgroup ${PN}
+       enewuser ${PN} -1 -1 -1 ${PN}
+}
+
+src_compile() {
+       GOPATH="${S}" go build -o bin/${PN} -v ${EGO_PN}/cmd/${PN}  || die
+}
+
+src_install() {
+       dobin bin/${PN}
+       pushd src/${EGO_PN} || die
+       dodoc {README,ROADMAP,CONTRIBUTING}.md
+       insinto /etc/${PN}
+       doins config.example.yaml
+       popd || die
+
+       newinitd "${FILESDIR}"/${PN}.initd ${PN}
+       newconfd "${FILESDIR}"/${PN}.confd ${PN}
+       keepdir /var/log/${PN}
+       fowners ${PN}:${PN} /var/log/${PN}
+}