Skip to content

Commit

Permalink
ghidra: Code analyzer, add version 10.1.5
Browse files Browse the repository at this point in the history
thomas committed Sep 7, 2022
1 parent cdbec37 commit 0630c69
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions ghidra-10.1.5-0.build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#! /bin/bash

set -e

PKG=ghidra
VERSION=10.1.5
BUILD=0

PREFIX=/pkg/$PKG-$VERSION-$BUILD
if [ -n "$TESTING" ]; then PREFIX=/scratch/local2/$USER/$PKG-$VERSION-$BUILD ; fi

mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
. /pkg/openjdk-17.0.2.8-0/profile
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true'
PATH=$PREFIX:\$PATH
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH ; fi
EOF
. $PREFIX/profile

BUILDDIR=$PREFIX/build

mkdir -p $BUILDDIR
cd $BUILDDIR

# orig: https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_10.1.5_build/ghidra_10.1.5_PUBLIC_20220726.zip
BEEHIVE=https://beehive.molgen.mpg.de/bd542513e7b52f7f06eede128409de37/ghidra_10.1.5_PUBLIC_20220726.zip
VERSIONpubl=${VERSION}_PUBLIC # 10.1.5_PUBLIC
VERSIONdate=${VERSIONpubl}_20220726 # 10.1.5_PUBLIC_2022072
test -e ghidra_$VERSIONdate.zip || wget -nv $BEEHIVE
test -d ghidra_$VERSIONpubl || bsdtar -xf ghidra_$VERSIONdate.zip

mv ghidra_$VERSIONpubl/* $PREFIX
rmdir ghidra_$VERSIONpubl

exit

0 comments on commit 0630c69

Please sign in to comment.