2013-10-13 15:27:51 +00:00
|
|
|
class Rp < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Tool to find ROP sequences in PE/Elf/Mach-O x86/x64 binaries"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://0vercl0k.github.io/rp/"
|
|
|
|
head "https://github.com/0vercl0k/rp.git"
|
|
|
|
url "https://github.com/0vercl0k/rp/archive/v1.tar.gz"
|
|
|
|
version "1.0"
|
|
|
|
sha256 "3bf69aee23421ffdc5c7fc3ce6c30eb7510640d384ce58f4a820bae02effebe3"
|
2013-10-13 15:27:51 +00:00
|
|
|
|
|
|
|
depends_on :macos => :lion
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "cmake" => :build
|
2013-10-13 15:27:51 +00:00
|
|
|
|
2014-03-20 19:05:18 +00:00
|
|
|
# In order to have the same binary name in 32 and 64 bits.
|
|
|
|
patch :DATA
|
2013-10-13 15:27:51 +00:00
|
|
|
|
|
|
|
def install
|
2015-08-03 12:55:31 +00:00
|
|
|
mkdir "build" do
|
2013-10-13 15:27:51 +00:00
|
|
|
system "cmake", ".."
|
|
|
|
system "make"
|
|
|
|
end
|
2015-08-03 12:55:31 +00:00
|
|
|
bin.install "bin/rp-osx"
|
2013-10-13 15:27:51 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
index 79d576b..34c2afa 100644
|
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
|
|
|
@@ -36,12 +36,10 @@ set(RP_NAME "${RP_NAME}-${RP_PLAT}")
|
|
|
|
|
|
|
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT(optX86BUILD))
|
|
|
|
set(FLAG_CXX "-m64")
|
|
|
|
- set(RP_NAME "${RP_NAME}-x64")
|
|
|
|
set(BEA_LIBRARY "BeaEngine.x64.${RP_PLAT}.${EXTENSION_LIBRARY}")
|
|
|
|
set(ARGTABLE_LIBRARY "argtable2.x64.${RP_PLAT}.${EXTENSION_LIBRARY}")
|
|
|
|
else()
|
|
|
|
set(FLAG_CXX "-m32")
|
|
|
|
- set(RP_NAME "${RP_NAME}-x86")
|
|
|
|
set(BEA_LIBRARY "BeaEngine.x86.${RP_PLAT}.${EXTENSION_LIBRARY}")
|
|
|
|
set(ARGTABLE_LIBRARY "argtable2.x86.${RP_PLAT}.${EXTENSION_LIBRARY}")
|
|
|
|
endif(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT(optX86BUILD))
|