Merge pull request #372 from gkroon/dependency-check-bin

Proposing ebuild for OWASP DependencyClean + forgotten dirhunt keywords bump
This commit is contained in:
Anton Bolshakov 2018-09-21 04:52:29 +06:00 committed by GitHub
commit 877669aa5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 1 deletions

View file

@ -0,0 +1 @@
DIST dependency-check-bin-3.3.2.zip 15595128 BLAKE2B 77a6d006d6061ddc27be4c0ca9c046a4977af6a57fe0e002d0f663964997224dd0ca42126a0e86df1aafb155006bab63177a722cb6fe84609573119c19f3cf4e SHA512 db5ea3302f12cc210003c295e2d625f985822419c506d40e4e2560015693e21afe536c13b0d0215a4c95bcfd48d779735e8b27e6fe860471a200c1a30921cfdf

View file

@ -0,0 +1,36 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EGO_PN=github.com/jeremylong/DependencyCheck
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"
MY_PN="dependency-check"
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
newbin bin/${MY_PN}.sh ${MY_PN}
}

View file

@ -36,3 +36,5 @@ dev-util/intel-ocl-sdk
~dev-util/sonarqube-bin-4.5.2
=dev-util/unicorn-1*
~dev-util/dependency-check-bin-3.3.2

View file

@ -112,7 +112,7 @@ net-analyzer/zmap
net-analyzer/sublist3r
net-analyzer/amass
~net-analyzer/dirhunt-0.5.0
~net-analyzer/dirhunt-0.5.1
~net-analyzer/xbruteforcer-20180611
~net-analyzer/droopescan-1.41.1
~net-analyzer/ham2mon-20170603