From 37620a022961f87bd3926a3053f4a751cd2698a0 Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Wed, 29 Dec 2021 08:55:03 +1100 Subject: [PATCH] ghidra: update to 10.1.1. --- srcpkgs/ghidra/template | 43 +++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/srcpkgs/ghidra/template b/srcpkgs/ghidra/template index 929ded075627..27f604a88ae1 100644 --- a/srcpkgs/ghidra/template +++ b/srcpkgs/ghidra/template @@ -1,6 +1,6 @@ # Template file for 'ghidra' pkgname=ghidra -version=10.1 +version=10.1.1 revision=1 archs="x86_64* aarch64*" # Other 64bit archs should be easily patchable, @@ -15,15 +15,34 @@ license="Apache-2.0" homepage="https://ghidra-sre.org/" distfiles="https://github.com/NationalSecurityAgency/ghidra/archive/Ghidra_${version}_build.tar.gz https://github.com/pxb1988/dex2jar/releases/download/2.0/dex-tools-2.0.zip - https://sourceforge.net/projects/catacombae/files/HFSExplorer/0.21/hfsexplorer-0_21-bin.zip https://sourceforge.net/projects/yajsw/files/yajsw/yajsw-beta-13.01/yajsw-beta-13.01.zip - https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android4me/AXMLPrinter2.jar" -checksum="6250b2c2ff56d6f7beaf29d6144ae5d52ce33ba0a132ef54e5d4f7839d950dff + https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android4me/AXMLPrinter2.jar + https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2012_x64.fidb + https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2012_x86.fidb + https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2015_x64.fidb + https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2015_x86.fidb + https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2017_x64.fidb + https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2017_x86.fidb + https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2019_x64.fidb + https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vs2019_x86.fidb + https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vsOlder_x64.fidb + https://github.com/NationalSecurityAgency/ghidra-data/raw/master/FunctionID/vsOlder_x86.fidb" +checksum="744fb6c75867f4c33242572e05e469f869f2b273264e8dbfdfb3071d93490203 7907eb4d6e9280b6e17ddce7ee0507eae2ef161ee29f70a10dbc6944fdca75bc - 90c9b54798abca5b12f4a678db7d0a4c970f4702cb153c11919536d0014dedbf 430fb7901bd0fd52a5b90bd0cbd89e9d334077eb72a9b26896f465de1e593a99 - 00ed038eb6abaf6ddec8d202a3ed7a81b521458f4cd459948115cfd02ff59d6d" -skip_extraction="AXMLPrinter2.jar" + 00ed038eb6abaf6ddec8d202a3ed7a81b521458f4cd459948115cfd02ff59d6d + f26548a6df6b6963a418d8c83ac216d9e196b180d944a52b8123c457d472b7c9 + 0a8962cf3699d5b8d4b3a79400382462519edc26570a46b2085200e38534f900 + 187248f87fc1deb695bc3051b2d92f9b7482023a356821154db22478eed13088 + 1d05afa070e9c09b83ee15d544c8559ed0d2b53d7eac476f8f5f8849543b3812 + 1784ad6b25571177ff8212871867559998c6b8256bb1dbaeee864b580c1b2d6a + bc9bf30621190e0eb56c4db5ec30ad0401ca7be0311f5a2ce3d894178eafd19c + aab04eefd1142f7b3c3f86c8d766abe361b167b4fe4157c36fad18777b2a6fbd + 0a2282ac3479ffc022e6cdb4e32e057bc10f0394cfb0f8016d7145be0167f5f7 + fe1856c0acad297d9ba4fb6a2df1d32ba34df766d9f1a2a16da0ca2b375e23dd + 46e56bc82ba68ad4e9a3c6a2e4ecd3428e2c390c7de0a379fa0165a58d46e115" +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" nopie=yes nostrip_files="animals createStructure dataMutability inline ldiv opaque setRegister switch compilerVsDecompiler custom globalRegVars.so @@ -53,15 +72,11 @@ post_extract() { } do_configure() { - mkdir -p dependencies/flatRepo + mkdir -p dependencies/{GhidraServer,fidb,flatRepo} + cp -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/yajsw-beta-13.01.zip dependencies/GhidraServer + cp -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/*.fidb dependencies/fidb cp -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/AXMLPrinter2.jar dependencies/flatRepo - for lib in csframework.jar hfsx_dmglib.jar hfsx.jar iharder-base64.jar; do - cp -f ../lib/$lib dependencies/flatRepo - done cp -f ../dex2jar-2.0/lib/dex-*.jar dependencies/flatRepo - mkdir -p ${wrksrc}/ghidra.bin/Ghidra/Features/GhidraServer/ - cp -f ${XBPS_SRCDISTDIR}/${pkgname}-${version}/yajsw-beta-13.01.zip ${wrksrc}/ghidra.bin/Ghidra/Features/GhidraServer/ - gradle yajswDevUnpack } do_build() {