Skip to content
Permalink
Browse files

dependency-check-bin: 5.0.0 bump

  • Loading branch information...
blshkv committed Jun 10, 2019
1 parent 230dead commit d9c8bd35f7be88714a68fb9650406cecdf0a6a45
@@ -1 +1,2 @@
DIST dependency-check-bin-4.0.2.zip 16938369 BLAKE2B 5dc2e0b2aecc8203504342528e255ef7f1e1fcea96f90676c31bab8115d4182690e133313172822eb69bf172d1c0248ee9882f3487280e137dd0ef9632bf8404 SHA512 e6c8fd0241f47b1c567c247d23a1fb7d68d4500a61d8ecc7ba024b9cf8e6d420760485a5ddcd361eb8c1d81d35571a03d0e036a7553569086b9fe68213affb3b
DIST dependency-check-bin-5.0.0.zip 18334079 BLAKE2B 9dc591abaac77cd1bbf4605099ac19aaf44956abd03e3e47798cc9a8e5779857ae9676b7b0a50769f035837aedd613b1910abf80339e4c2d4f069296b7733636 SHA512 12c9fd153f294d4e066cdf9530a5b53c8c3ab5c039c0615e6827c9ee3a388470bc31e659e08bfde06b06e445406f79d6ca6e384b6a920f5d5a58e43c3c94fb2e
@@ -0,0 +1,34 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=7

MY_PN="dependency-check"

DESCRIPTION="A utility that detects vulnerabilities in application dependencies"
HOMEPAGE="https://www.owasp.org/index.php/OWASP_Dependency_Check"
SRC_URI="http://dl.bintray.com/jeremy-long/owasp/dependency-check-${PV}-release.zip -> ${P}.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=">=virtual/jdk-1.7
dev-java/ant-core
app-arch/unzip"
RDEPEND=">=virtual/jre-1.7"

S="${WORKDIR}/${MY_PN}"

src_prepare() {
sed -i -e 's|^PRGDIR=.*|PRGDIR="/etc/dependency-check"|' bin/${MY_PN}.sh || die "Sed failed!"
sed -i -e 's|^BASEDIR=`cd "$PRGDIR/.."|BASEDIR=`cd "$PRGDIR"|' bin/${MY_PN}.sh || die "Sed failed!"
eapply_user
}

src_install() {
dodir /etc/${MY_PN}
insinto /etc/${MY_PN}
doins -r repo plugins
newsbin bin/${MY_PN}.sh ${MY_PN}
}

0 comments on commit d9c8bd3

Please sign in to comment.
You can’t perform that action at this time.