mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-27 10:50:42 +01:00
53 lines
1.2 KiB
Bash
53 lines
1.2 KiB
Bash
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit desktop java-pkg-2 xdg
|
|
|
|
DESCRIPTION="Interactive proxy for attacking and debugging web applications"
|
|
HOMEPAGE="https://portswigger.net/burp/"
|
|
|
|
#https://portswigger.net/burp/releases
|
|
MY_PV=${PV/_rc/}
|
|
if [[ "${PN}" == *"pro" ]]; then
|
|
MY_P="burpsuite_pro_v${MY_PV}.jar"
|
|
SRC_URI="https://portswigger.net/burp/releases/download?product=pro&version=${MY_PV}&type=Jar -> ${MY_P}"
|
|
else
|
|
MY_P="burpsuite_community_v${MY_PV}.jar"
|
|
SRC_URI="https://portswigger.net/burp/releases/download?product=community&version=${MY_PV} -> ${MY_P}"
|
|
fi
|
|
|
|
if [[ "${PV}" == *9999 ]]; then
|
|
SRC_URI=""
|
|
KEYWORDS=""
|
|
# eerror "9999 is a template, do not use it"
|
|
elif [[ "${PV}" == *"_rc" ]]; then
|
|
KEYWORDS="~amd64 ~x86"
|
|
else
|
|
KEYWORDS="amd64 x86"
|
|
fi
|
|
|
|
LICENSE="BURP"
|
|
SLOT="0"
|
|
IUSE=""
|
|
|
|
DEPEND=""
|
|
RDEPEND=">=virtual/jre-11"
|
|
|
|
S=${WORKDIR}
|
|
|
|
src_unpack() {
|
|
cp "${DISTDIR}/${A}" "${S}"
|
|
}
|
|
|
|
src_install() {
|
|
java-pkg_jarinto /opt/"${PN}"
|
|
java-pkg_newjar "${MY_P}"
|
|
java-pkg_dolauncher "${PN}" --java_args "-Xmx2G -Dawt.useSystemAAFontSettings=on"
|
|
|
|
if [[ "${PN}" == *"pro" ]]; then
|
|
domenu "${FILESDIR}"/${PN}.desktop
|
|
doicon "${FILESDIR}"/${PN}.png
|
|
fi
|
|
}
|