burpsuite: fix bin script

This commit is contained in:
blshkv 2020-01-20 19:47:44 +08:00
parent b44fddc668
commit 5725dd88c9
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F

View file

@ -1,7 +1,7 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
MY_P="burpsuite_community_v${PV}.jar"
@ -28,6 +28,11 @@ src_install() {
insinto /opt/"${PN}"
doins "${MY_P}"
echo -e "#!/bin/sh\njava -jar /opt/${PN}/${MY_P} >/dev/null 2>&1 &\n" > "${PN}"
dobin ${PN}
# echo -e "#!/bin/sh\njava -Xmx2G -jar /opt/${PN}/${MY_P} >/dev/null 2>&1 &\n" > "${PN}"
# dobin ${PN}
newbin - ${PN} <<-EOF
#!/bin/sh
java -Xmx2G -jar /opt/${PN}/${MY_P} >/dev/null 2>&1 &
EOF
}