burpsuite: hack symlinks so that we maintain one ebuild

This commit is contained in:
Anton Bolshakov 2021-06-04 10:02:50 +08:00
parent 22718dcad6
commit abfaaa2cd4
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
5 changed files with 26 additions and 41 deletions

View file

@ -1 +1,2 @@
DIST burpsuite_pro_v2021.5.2.jar 415642927 BLAKE2B 8e2d8be5ee18bd12bdb292691c9b2d08f1d09128e2c27d65000990c74c0b7da40a3e7206a9aec4c2e35bfed067cabb3cb36540875c28563dd1919f0bcf7d6575 SHA512 57d2983389bfd3d403d1c9232ded1be9b0ccbd8636a8703ae3ea08e670949b888115c97c422a4e388130a839f8b329c1fae4f242538504cb6ee0d0f0625e960a
DIST burpsuite_pro_v2021.6.jar 416632752 BLAKE2B fe547e8a583ba798ceb6beb27951f959a10bea01bdcc99fe3603da60a9ae4c7d4b2c2b680d70cca9b339f01c36b656c035b3a7e9d2d1e3ecfb9011b91cdf069f SHA512 c75318a684cda52852a8bce0028494e373df648495ad1f17e228c511c91253645a156daf6ac83f6fb4e330c2707ef0ee648a92f8f68631e19d1c77fe4dde89c3

View file

@ -0,0 +1 @@
../burpsuite/burpsuite-2021.6.ebuild

View file

@ -0,0 +1 @@
/pentoo/net-proxy/burpsuite/burpsuite-2021.6.ebuild

View file

@ -1,36 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_P="burpsuite_community_v${PV}.jar"
DESCRIPTION="Interactive proxy for attacking and debugging web applications"
HOMEPAGE="https://portswigger.net/burp/"
SRC_URI="https://portswigger.net/burp/releases/download?product=community&version=${PV} -> ${MY_P}"
LICENSE="BURP"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=""
RDEPEND="|| ( virtual/jre virtual/jdk )"
S=${WORKDIR}
src_unpack() {
cp "${DISTDIR}/${A}" "${S}"
}
src_install() {
dodir /opt/"${PN}"
insinto /opt/"${PN}"
doins "${MY_P}"
newbin - ${PN} <<-EOF
#!/bin/sh
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on'
java -Xmx2G -jar /opt/${PN}/${MY_P} >/dev/null 2>&1 &
EOF
}

View file

@ -0,0 +1 @@
burpsuite-9999.ebuild

View file

@ -5,16 +5,30 @@ EAPI=7
inherit desktop
MY_P="burpsuite_pro_v${PV}.jar"
DESCRIPTION="Interactive proxy for attacking and debugging web applications"
HOMEPAGE="https://portswigger.net/burp/"
#SRC_URI="https://portswigger.net/burp/releases/download?product=community&version=${PV} -> ${MY_P}"
SRC_URI="https://portswigger.net/burp/releases/download?product=pro&version=${PV}&type=Jar -> ${MY_P}"
#https://portswigger.net/burp/releases
if [[ "${PN}" == *"pro" ]]; then
MY_P="burpsuite_pro_v${PV/_pre/}.jar"
SRC_URI="https://portswigger.net/burp/releases/download?product=pro&version=${PV}&type=Jar -> ${MY_P}"
else
MY_P="burpsuite_community_v${PV/_pre/}.jar"
SRC_URI="https://portswigger.net/burp/releases/download?product=community&version=${PV} -> ${MY_P}"
fi
if [[ "${PV}" == *9999 ]]; then
SRC_URI=""
KEYWORDS=""
# eerror "9999 is a template, do not use it"
elif [[ "${PV}" == *"pre" ]]; then
KEYWORDS="~amd64 ~x86"
else
KEYWORDS="amd64 x86"
fi
LICENSE="BURP"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=""
@ -37,6 +51,9 @@ src_install() {
java -Xmx2G -jar /opt/${PN}/${MY_P} >/dev/null 2>&1 &
EOF
if [[ "${PN}" == *"pro" ]]; then
domenu "${FILESDIR}"/${PN}.desktop
doicon "${FILESDIR}"/${PN}.png
fi
}