zaproxy: pkgcheck fixes

This commit is contained in:
Rick Farina (Zero_Chaos) 2024-04-03 19:12:54 -04:00
parent 5089de4602
commit dafb53261f
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 15 additions and 2 deletions

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>sidhayn@gmail.com</email>
<name>Zero_Chaos</name>
</maintainer>
<use>
<flag name="plugins">Install plugins</flag>
</use>
<upstream>
<remote-id type="github">zaproxy/zaproxy</remote-id>
</upstream>
</pkgmetadata>

View file

@ -46,6 +46,7 @@ HOMEPAGE="https://github.com/zaproxy/zaproxy"
SRC_URI="https://github.com/zaproxy/zaproxy/releases/download/v${PV}/ZAP_${PV}_Linux.tar.gz SRC_URI="https://github.com/zaproxy/zaproxy/releases/download/v${PV}/ZAP_${PV}_Linux.tar.gz
plugins? ( $PL_URL $PLUGIN_HUD_URL ) " plugins? ( $PL_URL $PLUGIN_HUD_URL ) "
S="${WORKDIR}/ZAP_${PV}"
LICENSE="Apache-2.0" LICENSE="Apache-2.0"
SLOT="0" SLOT="0"
KEYWORDS="amd64 x86" KEYWORDS="amd64 x86"
@ -54,8 +55,6 @@ IUSE="+plugins"
#java-pkg-2 sets java based on RDEPEND so the java slot in rdepend is used to build #java-pkg-2 sets java based on RDEPEND so the java slot in rdepend is used to build
RDEPEND="|| ( >=virtual/jre-11:* virtual/jdk:* )" RDEPEND="|| ( >=virtual/jre-11:* virtual/jdk:* )"
S="${WORKDIR}/ZAP_${PV}"
src_prepare() { src_prepare() {
if use plugins ; then if use plugins ; then
rm "${S}"/plugin/ascanrules-*.zap rm "${S}"/plugin/ascanrules-*.zap