ghidra: update to 11.1.2.

This commit is contained in:
Andrew Benson 2024-07-12 23:06:24 -05:00 committed by Andrew Benson
parent 91860205c7
commit 214d7a855b
2 changed files with 46 additions and 11 deletions

View File

@ -14,8 +14,8 @@
api project(':Generic')
api project(':Graph')
api project(':ProposedUtils')
--- ghidra-10.4/ghidra_build/gradle/debugger/hasProtobuf.gradle
+++ ghidra-10.4/ghidra_build/gradle/debugger/hasProtobuf.gradle
--- ghidra-10.4/ghidra_build/gradle/hasProtobuf.gradle
+++ ghidra-10.4/ghidra_build/gradle/hasProtobuf.gradle
@@ -26,36 +26,36 @@

View File

@ -1,15 +1,23 @@
# Template file for 'ghidra'
pkgname=ghidra
version=11.0.3
revision=2
version=11.1.2
revision=1
_dex_ver=2.1
_yajsw_ver=13.09
_pybag_ver=2.2.10
_capstone_ver=5.0.1
_comtypes_ver=1.4.1
_pywin32_ver=306
_protobuf_ver=3.20.3
_setuptools_ver=68.0.0
_wheel_ver=0.37.1
_psutil_ver=5.9.8
archs="x86_64* aarch64*"
# Other 64bit archs should be easily patchable,
# grep for linux_arm_64 to find all places in need of patching
create_wrksrc=yes
build_wrksrc="ghidra_build"
hostmakedepends="gradle openjdk17 flex unzip protobuf which"
hostmakedepends="gradle openjdk17 flex unzip protobuf which python3-wheel python3-pip"
depends="openjdk17"
short_desc="Software reverse engineering (SRE) framework"
maintainer="Andrew Benson <abenson+void@gmail.com>"
@ -20,6 +28,14 @@ distfiles="https://github.com/NationalSecurityAgency/ghidra/archive/Ghidra_${ver
https://sourceforge.net/projects/yajsw/files/yajsw/yajsw-stable-${_yajsw_ver}/yajsw-stable-${_yajsw_ver}.zip
https://github.com/NationalSecurityAgency/ghidra-data/raw/Ghidra_${version}/lib/java-sarif-2.1-modified.jar
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android4me/AXMLPrinter2.jar
${PYPI_SITE/\/source}/py3/P/Pybag/Pybag-${_pybag_ver}-py3-none-any.whl
${PYPI_SITE/\/source}/py3/c/capstone/capstone-${_capstone_ver}-py3-none-win_amd64.whl
${PYPI_SITE/\/source}/py3/c/comtypes/comtypes-${_comtypes_ver}-py3-none-any.whl
${PYPI_SITE/\/source}/cp312/p/pywin32/pywin32-${_pywin32_ver}-cp312-cp312-win_amd64.whl
${PYPI_SITE/\/source}/py2.py3/p/protobuf/protobuf-${_protobuf_ver}-py2.py3-none-any.whl
${PYPI_SITE/\/source}/py3/s/setuptools/setuptools-${_setuptools_ver}-py3-none-any.whl
${PYPI_SITE/\/source}/py2.py3/w/wheel/wheel-${_wheel_ver}-py2.py3-none-any.whl
${PYPI_SITE}/p/psutil/psutil-${_psutil_ver}.tar.gz
https://github.com/NationalSecurityAgency/ghidra-data/raw/Ghidra_${version}/FunctionID/vs2012_x64.fidb
https://github.com/NationalSecurityAgency/ghidra-data/raw/Ghidra_${version}/FunctionID/vs2012_x86.fidb
https://github.com/NationalSecurityAgency/ghidra-data/raw/Ghidra_${version}/FunctionID/vs2015_x64.fidb
@ -30,11 +46,19 @@ distfiles="https://github.com/NationalSecurityAgency/ghidra/archive/Ghidra_${ver
https://github.com/NationalSecurityAgency/ghidra-data/raw/Ghidra_${version}/FunctionID/vs2019_x86.fidb
https://github.com/NationalSecurityAgency/ghidra-data/raw/Ghidra_${version}/FunctionID/vsOlder_x64.fidb
https://github.com/NationalSecurityAgency/ghidra-data/raw/Ghidra_${version}/FunctionID/vsOlder_x86.fidb"
checksum="9981fbf594a1155f7cc15adcd7f7adbdf7c143db918bdc4c7afd61a362456612
checksum="495e05442a436ab74f733aaa1b4ebe2cae3f2c70d2437ce4859f41fe15055161
7a9bdf843d43de4d1e94ec2e7b6f55825017b0c4a7ee39ff82660e2493a46f08
4dae732a535846ae5dfab753e82a4d5f93ad9a05a065e2172bb9774a1b15453a
7f736566494756d271aa5e4b1af6c89dc50d074ab1c6374a47df822264226b01
00ed038eb6abaf6ddec8d202a3ed7a81b521458f4cd459948115cfd02ff59d6d
81cf1e33dd667dd217dc56a123326796e6799b8569f2c6efb78c16375caf9b2b
1bfa5c81e6880caf41a31946cd6d2d069c048bcc22edf121254b501a048de675
a208a0e3ca1c0a5362735da0ff661822801dce87312b894d7d752add010a21b0
37257794c1ad39ee9be652da0462dc2e394c8159dfd913a8a4e8eb6fd346da0e
a7ca6d488aa8ff7f329d4c545b2dbad8ac31464f1d8b1c87ad1346717731e4db
11e52c67415a381d10d6b462ced9cfb97066179f0e871399e006c4ab101fc85f
4bdcd7d840138086126cd09254dc6195fb4fc6f01c050a1d7236f2630db1d22a
6be126e3225486dff286a8fb9a06246a5253f4c7c53b475ea5f5ac934e64194c
d4e98ab3f790b831793218430bba0d8b24a5fbf4da65b0c1ffa8cb0cfbeb0cdc
a490ed7e2ed21e587459feaeace7036b7ede4ce84e72e10dfd8c57434a6918b6
e04e9e40f9ecb601c85f4d84ed9bf66b45363be1d1e82c162e4c9902b8cb508f
@ -48,7 +72,10 @@ checksum="9981fbf594a1155f7cc15adcd7f7adbdf7c143db918bdc4c7afd61a362456612
conf_files="/usr/libexec/ghidra/server/server.conf"
skip_extraction="AXMLPrinter2.jar vs2012_x64.fidb vs2015_x64.fidb vs2017_x64.fidb vs2019_x64.fidb
vsOlder_x64.fidb vsOlder_x86.fidb vs2012_x86.fidb vs2015_x86.fidb vs2017_x86.fidb vs2019_x86.fidb
java-sarif-2.1-modified.jar"
java-sarif-2.1-modified.jar Pybag-${_pybag_ver}-py3-none-any.whl
capstone-${_capstone_ver}-py3-none-win_amd64.whl comtypes-${_comtypes_ver}-py3-none-any.whl
pywin32-${_pywin32_ver}-cp312-cp312-win_amd64.whl protobuf-${_protobuf_ver}-py2.py3-none-any.whl
setuptools-${_setuptools_ver}-py3-none-any.whl wheel-${_wheel_ver}-py2.py3-none-any.whl"
nopie=yes
nostrip_files="animals createStructure dataMutability inline ldiv opaque
setRegister switch compilerVsDecompiler custom globalRegVars.so
@ -78,11 +105,19 @@ post_extract() {
}
do_configure() {
mkdir -p dependencies/{GhidraServer,fidb,flatRepo}
cp -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/yajsw-stable-${_yajsw_ver}.zip dependencies/GhidraServer
mkdir -p dependencies/{GhidraServer,fidb,flatRepo,Debugger-agent-dbgeng,Debugger-rmi-trace}
cp -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/*.fidb dependencies/fidb
cp -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/AXMLPrinter2.jar dependencies/flatRepo
cp -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/java-sarif-2.1-modified.jar dependencies/flatRepo
vsrccopy yajsw-stable-${_yajsw_ver}.zip dependencies/GhidraServer
vsrccopy AXMLPrinter2.jar dependencies/flatRepo
vsrccopy java-sarif-2.1-modified.jar dependencies/flatRepo
vsrccopy Pybag-${_pybag_ver}-py3-none-any.whl dependencies/Debugger-agent-dbgeng
vsrccopy capstone-${_capstone_ver}-py3-none-win_amd64.whl dependencies/Debugger-agent-dbgeng
vsrccopy comtypes-${_comtypes_ver}-py3-none-any.whl dependencies/Debugger-agent-dbgeng
vsrccopy pywin32-${_pywin32_ver}-cp312-cp312-win_amd64.whl dependencies/Debugger-agent-dbgeng
vsrccopy protobuf-${_protobuf_ver}-py2.py3-none-any.whl dependencies/Debugger-rmi-trace
vsrccopy psutil-${_psutil_ver}.tar.gz dependencies/Debugger-rmi-trace
vsrccopy setuptools-${_setuptools_ver}-py3-none-any.whl dependencies/Debugger-rmi-trace
vsrccopy wheel-${_wheel_ver}-py2.py3-none-any.whl dependencies/Debugger-rmi-trace
for _fn in ir reader reader-api translator; do
cp -f ../dex-tools-${_dex_ver}/lib/dex-${_fn}-${_dex_ver}.jar dependencies/flatRepo
done