1 |
commit: 0dd0b3259adae193fabd524922fa75b05102b314 |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 27 11:14:43 2018 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 27 11:14:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0dd0b325 |
7 |
|
8 |
dev-util/clair: Version bump to 2.0.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.24, Repoman-2.3.6 |
11 |
|
12 |
dev-util/clair/Manifest | 1 + |
13 |
dev-util/clair/clair-2.0.2.ebuild | 46 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 47 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/clair/Manifest b/dev-util/clair/Manifest |
17 |
index bb820beae5a..062e7e95e41 100644 |
18 |
--- a/dev-util/clair/Manifest |
19 |
+++ b/dev-util/clair/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST clair-2.0.1.tar.gz 5194465 BLAKE2B b91bc130ce7237c5398715bfd91f6744d89bd9690ddd5d99aabbcc62b22c148dbbe2594d1c1376010d9cd992012d639ceef4e9a78d1837c633978f52b4d223ae SHA512 03293829426d81157860effd893b72164679b4ec40c19294e321d489ced67dfea72415cdd9b1005ae590367c68f746664a76f63a29c7d714b22917f2323c4937 |
22 |
+DIST clair-2.0.2.tar.gz 5194625 BLAKE2B a1866ec881036a3f3891935782ccb4709c26a8051b4d762be2e7eae2da11ecbad794d21fd2d62c842f5d6d18a8f203a2258d9e9fad985455becc494753c75e43 SHA512 1522c40059594f8f7ce17781269a3511e987173c741c550e5c0b87beaabe73e368a23ddd75a2499a6e9f8920308744809c4c938af31cdb93ce2f0a817f906674 |
23 |
|
24 |
diff --git a/dev-util/clair/clair-2.0.2.ebuild b/dev-util/clair/clair-2.0.2.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..8c92e5db7e5 |
27 |
--- /dev/null |
28 |
+++ b/dev-util/clair/clair-2.0.2.ebuild |
29 |
@@ -0,0 +1,46 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+inherit user golang-build golang-vcs-snapshot |
35 |
+ |
36 |
+EGO_PN="github.com/coreos/clair" |
37 |
+EGIT_COMMIT="v${PV}" |
38 |
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
39 |
+KEYWORDS="~amd64" |
40 |
+ |
41 |
+DESCRIPTION="Vulnerability Static Analysis for Containers" |
42 |
+HOMEPAGE="https://github.com/coreos/clair" |
43 |
+SRC_URI="${ARCHIVE_URI}" |
44 |
+LICENSE="Apache-2.0" |
45 |
+SLOT="0" |
46 |
+IUSE="" |
47 |
+ |
48 |
+RDEPEND="app-arch/rpm |
49 |
+ app-arch/xz-utils |
50 |
+ dev-vcs/bzr |
51 |
+ dev-vcs/git |
52 |
+ !!sci-visualization/xd3d" # File collision (Bug #621044) |
53 |
+ |
54 |
+pkg_setup() { |
55 |
+ enewgroup ${PN} |
56 |
+ enewuser ${PN} -1 -1 -1 ${PN} |
57 |
+} |
58 |
+ |
59 |
+src_compile() { |
60 |
+ GOPATH="${S}" go build -o bin/${PN} -v ${EGO_PN}/cmd/${PN} || die |
61 |
+} |
62 |
+ |
63 |
+src_install() { |
64 |
+ dobin bin/${PN} |
65 |
+ pushd src/${EGO_PN} || die |
66 |
+ dodoc {README,ROADMAP,CONTRIBUTING}.md |
67 |
+ insinto /etc/${PN} |
68 |
+ doins config.example.yaml |
69 |
+ popd || die |
70 |
+ |
71 |
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} |
72 |
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} |
73 |
+ keepdir /var/log/${PN} |
74 |
+ fowners ${PN}:${PN} /var/log/${PN} |
75 |
+} |