./security/ghidra [software reverse engineering (SRE) framework]
[+] Add this package to your ports tracker

[ CVSweb ] [ Homepage ] [ RSS feed ]

Version: 9.1.2, Package name: ghidra-9.1.2
Maintained by: Lawrence Teo
Master sites:
Ghidra is a software reverse engineering (SRE) framework created and maintained
by the National Security Agency Research Directorate. This framework includes a
suite of full-featured, high-end software analysis tools that enable users to
analyze compiled code on a variety of platforms. Capabilities include
disassembly, assembly, decompilation, graphing, and scripting, along with
hundreds of other features. Ghidra supports a wide variety of processor
instruction sets and executable formats and can be run in both user-interactive
and automated modes. Users may also develop their own Ghidra plug-in components
and/or scripts using Java or Python.

Filesize: 24464.527 KB
Version History (View Complete History)
  • (2020-07-19) Updated to version: ghidra-9.1.2
  • (2019-07-23) Package added to openports.se, version ghidra-9.0.4 (created)
[show/hide] View available PLISTS (Can be a lot of data)

CVS Commit History:

   2020-07-18 19:29:23 by Lawrence Teo | Files touched by this commit (13)
Log message:
Update to Ghidra 9.1.2.
Thanks to Jeremy O'Brien for testing!
   2019-09-11 20:10:07 by Lawrence Teo | Files touched by this commit (2)
Log message:
Ghidra's build system prefers g++ over clang, which is not what we want on a
clang-based platform like amd64.  This commit makes Ghidra build with clang by:
* Adding a clang toolChains block in nativeBuildProperties.gradle
* Adding COMPILER="base-clang ports-clang"
* Updating WANTLIB by replacing libstdc++ with ${COMPILER_LIBCXX}
In addition, honor CXX by setting tools.cppCompiler.executable and
tools.linker.executable in nativeBuildProperties.gradle to ${CXX}.  Also print
those variables so that we can confirm that they are set properly.
Lastly, add --stacktrace to the gradle command to facilitate future debugging.
Thanks to daniel@ for bringing this to my attention, naddy@ for his detailed
report of the g++ and CXX issues, and sthen@ for suggesting a possible fix.
ok naddy@ sthen@
   2019-07-22 20:52:58 by Lawrence Teo | Files touched by this commit (1)
Log message:
Take maintainership; ok rpointel@
Add a comment that ST4-${ST4_VER}.jar is only needed during build for antlr;
it is not needed at runtime and therefore does not need to be packed.
   2019-07-22 20:09:20 by Lawrence Teo | Files touched by this commit (22)
Log message:
Build and pack native components so that Ghidra can decompile programs on
OpenBSD.  This is based on a pull request from Jeremy O'Brien at
https://github.com/NationalSecurityAgency/ghidra/pull/490 and the Ghidra
build guide at
https://github.com/NationalSecurityAgency/ghidra/blob/master/DevGuide.md .
In addition, I have made these changes to make Ghidra work better as an OpenBSD
1. I removed the explicit check for Gradle 5.0 because I was able to build
Ghidra with latest versions of Gradle.  At the time of commit, our
java/gradle port is 5.5.1 which is the latest version of Gradle.
2. By default, the Ghidra build process tries to fetch dependent files on demand
while building.  This will cause the build to fail if the port is built using
the _pbuild user.  To fix this, I made the port fetch all the dependent .jar
files prior to building.  I also used gradle's --offline flag which
explicitly tells gradle to "Execute the build without accessing network
3. To prevent the build process from touching $HOME, I made gradle use
${WRKDIR}/gradle as its home and also modified GHelpBuilder.java
(the program that builds help files during build) to log to ${WRKDIR}
instead of $HOME/.ghidra.
4. One of the Gradle scripts (ip.gradle) scans the Ghidra source tree so
I had to explicitly tell it to exclude *.orig and *.beforesubst.
help from bentley@ and Jeremy O'Brien
ok bentley@ rpointel@ (maintainer)
   2019-07-12 14:49:09 by Stuart Henderson | Files touched by this commit (854)
Log message:
   2019-06-10 18:38:36 by Kurt Miller | Files touched by this commit (57)
Log message:
Revision bump all java ports for the jre package removal and java.port.mk
   2019-05-25 20:07:44 by Lawrence Teo | Files touched by this commit (3)
Log message:
Update to Ghidra 9.0.4.
ok rpointel@