summaryrefslogtreecommitdiff
path: root/dev-util/clair
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/clair
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/clair')
-rw-r--r--dev-util/clair/Manifest5
-rw-r--r--dev-util/clair/clair-2.0.1.ebuild46
-rw-r--r--dev-util/clair/files/clair.confd2
-rw-r--r--dev-util/clair/files/clair.initd19
-rw-r--r--dev-util/clair/metadata.xml11
5 files changed, 83 insertions, 0 deletions
diff --git a/dev-util/clair/Manifest b/dev-util/clair/Manifest
new file mode 100644
index 000000000000..534a87870741
--- /dev/null
+++ b/dev-util/clair/Manifest
@@ -0,0 +1,5 @@
+AUX clair.confd 75 SHA256 8df6e4417519fa0fb5b3087223a880aba0c09bb885a79d0cf26e450bb624045d SHA512 9ff72a41da4600f7c266a7c763520c947e41c1c06dc93f9c8fcdc3f92d5b10ac4a2483122fedc4cf3bfc5de0a48f61366b0d2b72bcc348b736fa958b7065cc87 WHIRLPOOL 0bbc4b98eca001618921e6d0991689f60a829305d1d7d4df91e95537e4bc39784ef9406e0279105c76891318e1a19f196cc8a156559057534bbdf08b844ca0f1
+AUX clair.initd 593 SHA256 82c2d9c33189dbb8f489bff25ad01d4e72059f4dbe567e82a7b76fed5728014c SHA512 827bf28ba4ad7a40f4eb916f315978da6d3fab52a8ac9b3316383d67ed90006f0b13e7cec3a8843d73e5d23ef27bcd53a9a02ec70c1795725cb98e5d1de788bb WHIRLPOOL c6646503a87b20747246533591fe0096e62850f0ef109c281c25c11c78c8a31b90037cf7a2ed345b38484cb347e95052233f3737293e77a4a719ab29c26983a1
+DIST clair-2.0.1.tar.gz 5194465 SHA256 dd4d608a763cbde2d8fba98aadeadee4c8baa900467b5e8b10f94629439540f7 SHA512 03293829426d81157860effd893b72164679b4ec40c19294e321d489ced67dfea72415cdd9b1005ae590367c68f746664a76f63a29c7d714b22917f2323c4937 WHIRLPOOL f728ff4028ef54dd4351e00ed6ed58230c96476c5bfce74ded867d879ea85f88570476d66fd8d35ca02c4182f7c33e0133d077cb657cbe34f1684f97ee475614
+EBUILD clair-2.0.1.ebuild 1064 SHA256 ea63f7d047a7f2911ad59defaa8ab4999b3c6fb1f1acabc0947062db83e72165 SHA512 539d973c09c5926ced69ec55043b292d988ac50ede501bde4a49de8c9ee50db5a731d2ff0f95d76b47c83c1391b535705789f02ac05175f0d08819d1ebc4e4d2 WHIRLPOOL 895e31483415ead101ab0a1bbc16beaf5de884bdae4bf8e258a54950aa8442093fa56b53144ed2d5a6c0da574850fd9caf478a3b19b21f83ed23f7851d10b589
+MISC metadata.xml 322 SHA256 c7139a6d625c03a03c758a65e0c60e36bf91e93cff0f5feb75f8fc0174375a47 SHA512 7ac0fefec4d71b29fe295ebc41df72ff0d80ba327104ca124bdd700ea054c477ba6a040fcdce6fcae38ec437703ff31ae36a2a7c5683420c39db20d775e52919 WHIRLPOOL ac90359424d8f48f94ef7c2d8aea2f74cd054db76ecc85f325a8ddfd0bc0d017d0b7ea918bd202418b53762b0846ada9b7a8ee0a8005369d44f678ed449ee46d
diff --git a/dev-util/clair/clair-2.0.1.ebuild b/dev-util/clair/clair-2.0.1.ebuild
new file mode 100644
index 000000000000..2ee9185f3f21
--- /dev/null
+++ b/dev-util/clair/clair-2.0.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 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}
+}
diff --git a/dev-util/clair/files/clair.confd b/dev-util/clair/files/clair.confd
new file mode 100644
index 000000000000..e66675311de3
--- /dev/null
+++ b/dev-util/clair/files/clair.confd
@@ -0,0 +1,2 @@
+# arguments for clair config
+command_args="-config=/etc/clair/config.yaml"
diff --git a/dev-util/clair/files/clair.initd b/dev-util/clair/files/clair.initd
new file mode 100644
index 000000000000..53518fea6320
--- /dev/null
+++ b/dev-util/clair/files/clair.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+description="Clair Vulnerability Static Analysis for Containers"
+pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
+user=${user:-${RC_SVCNAME}}
+group=${group:-${RC_SVCNAME}}
+
+command="/usr/bin/clair"
+command_args="${command_args:--config=/etc/clair/config.yaml}"
+command_background="true"
+start_stop_daemon_args="--user ${user} --group ${group} \
+ --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \
+ --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
+
+depend() {
+ after net
+}
diff --git a/dev-util/clair/metadata.xml b/dev-util/clair/metadata.xml
new file mode 100644
index 000000000000..01abcbc89e22
--- /dev/null
+++ b/dev-util/clair/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel RĂ¼ger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">coreos/clair</remote-id>
+ </upstream>
+</pkgmetadata>