diff options
author | William Hubbs <williamh@gentoo.org> | 2022-09-12 12:34:37 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2022-09-12 12:34:37 -0500 |
commit | 1ef3f8249b55c61ba7e4c22a85e53c382a3ade95 (patch) | |
tree | 9dee5778b729d3e79a8860bf38ce7deaec190d1b /dev-util/clair | |
parent | dev-util/radare2: remove unused patches (diff) | |
download | gentoo-1ef3f8249b55c61ba7e4c22a85e53c382a3ade95.tar.gz gentoo-1ef3f8249b55c61ba7e4c22a85e53c382a3ade95.tar.bz2 gentoo-1ef3f8249b55c61ba7e4c22a85e53c382a3ade95.zip |
dev-util/clair: add 4.4.4
Closes: https://bugs.gentoo.org/844430
Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'dev-util/clair')
-rw-r--r-- | dev-util/clair/Manifest | 2 | ||||
-rw-r--r-- | dev-util/clair/clair-4.4.4.ebuild | 47 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-util/clair/Manifest b/dev-util/clair/Manifest index 1c0c473a7ef0..d27a4dc01b0b 100644 --- a/dev-util/clair/Manifest +++ b/dev-util/clair/Manifest @@ -1,5 +1,7 @@ DIST clair-2.1.3.tar.gz 3568075 BLAKE2B e16c8d466dda1a7bf93f08a055315e2896949fc075d97b3eac8be9f7bfa4d8cc43c79acec2480445700f4a56e6b4702de3bf087f9a4892e34ccb163bbd7afafe SHA512 7ac879ccd7530f14b43c2fddae3d456cfad99a5bb26b79563b7b45a0525dadd999207e222fc0fa49a9502a62accb051a66a7da891b2b6ea7fbcdd966519c862f DIST clair-2.1.4.tar.gz 3568060 BLAKE2B 655f162a6cdefc8a07ec665c1eb625eb44cbe9f18c548caaeef264489ba3627331fe2421685e8cb2141250dba497c982eccdbe94580b8a4a4ea38e00ec7445ab SHA512 67fedb487c297d95c9ab7f8e5ac9a08df85d16a218a718be56ed1af4d7ecee65550e448b9468c3c5bf387a8e37716dda22ac482ee2c2b4d41cbaac3672028570 +DIST clair-4.4.4-deps.tar.xz 437105576 BLAKE2B 724f48e93f1be7f0d6294deddfb71566d16e25f17a4e26ee725a9861807c2183d6d0a6a3f6632401916dfad9189e535dc24d88dbf43cc862b658a9df90601aef SHA512 f71c2835064f577bce1ef59d05824b5e57c7923f406c714b17bcb6bdeecc26db19cb4380b1207d392a272b3a82c07104f3ee6f570e28ef48e2c493000ae81d7b +DIST clair-4.4.4.tar.gz 343872 BLAKE2B dbf56706d652c97f61a3949e843a7a80f1bac03fd9551c88f1a55c3fcd705df49e2de48f00e816276f3b4214da1d53207ad46af657a6b5b246aad8f247774743 SHA512 739d6003fe967ae93bd92f703065bbbb744f1ee1d3612fb6b538469dee0907dbea87620ff4b48b157708ab7832e8c6de53a66feb716c127fbd5aa94458c92087 DIST github.com%2Fbeorn7%2Fperks%2F@v%2Fv0.0.0-20160804104726-4c0e84591b9a.mod 31 BLAKE2B f69b0989e51b0b649f81b044169fe4309f130eba5bcc6ff33aa9666b1b754aa0e524b8c7a627a91000ccc4f93bf93cdee3e97bd3b2184b050878bc3f413f0c72 SHA512 f21fd002853e4435421f8396e6be016f65be1537815c60d23940caf26e3f14dd6f2caac802cb64cd586b1b1f1220b2727de347b3d1816b8e741f68d87ebcf03f DIST github.com%2Fbeorn7%2Fperks%2F@v%2Fv0.0.0-20160804104726-4c0e84591b9a.zip 14808 BLAKE2B 823400c1c34bbc0dbb3f51c5836e748aa8277017d1fbd51b7e6c3922e23229dbfaf103745408fca0c96b84c20eb8eb45636cfdbee633a7552e8030e3c28a6456 SHA512 1130292c0454f84e1f6ab78baee4ccbae0b40a8d625c7a214bd7d1db88f4fea738ccd25fad7e2e15986b09ef963912c3fd35c7a36bb5fc879217198560258ecf DIST github.com%2Fcoreos%2Fpkg%2F@v%2Fv0.0.0-20160727233714-3ac0863d7acf.mod 29 BLAKE2B db9b03b0adf02e3b379eb06d67988a60f2e2034d1217e56b40ebafc1262cb4803500b73a3e697a5a73418615c84310bd7f7aeca6db56f6ddbcf6c044cce0e9f3 SHA512 ea629c85891049bdff24f75a4dbce34f048a9627fc126b44f497b3ae65602045ca4fe0856e1b3d7ba050bb867226b90c25912565867c696bc370697341681c33 diff --git a/dev-util/clair/clair-4.4.4.ebuild b/dev-util/clair/clair-4.4.4.ebuild new file mode 100644 index 000000000000..4f1cf3b18444 --- /dev/null +++ b/dev-util/clair/clair-4.4.4.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +DESCRIPTION="Vulnerability Static Analysis for Containers" +HOMEPAGE="https://github.com/quay/clair" +SRC_URI="https://github.com/coreos/clair/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~williamh/dist/${P}-deps.tar.xz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +COMMON_DEPEND="acct-group/clair + acct-user/clair" + DEPEND="${COMMON_DEPEND}" +RDEPEND="app-arch/rpm + app-arch/xz-utils + dev-vcs/git + ${COMMON_DEPEND} + !!sci-visualization/xd3d" # File collision (Bug #621044) + +src_compile() { + go build -o bin/${PN} ./cmd/${PN} || die + go build -o bin/clairctl ./cmd/clairctl || die +} + +src_install() { + dobin bin/* + keepdir /etc/clair + dodoc -r Documentation/* {CHANGELOG,README,ROADMAP}.md + insinto /usr/share/${PN} + doins -r contrib config.yaml.sample + + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + keepdir /var/log/${PN} + fowners ${PN}:${PN} /var/log/${PN} +} + +pkg_postinst() { + [[ -f "${ROOT}"/etc/clair/clair.conf ]] && return + ewarn "Please create ${ROOT}/etc/clair/config.yaml to use clair." + ewarn "An example is in ${ROOT}/usr/share/clair/config.yaml.sample" +} |