54 lines
2.3 KiB
Ruby
54 lines
2.3 KiB
Ruby
class Rp < Formula
|
|
desc "Tool to find ROP sequences in PE/Elf/Mach-O x86/x64 binaries"
|
|
homepage "https://github.com/0vercl0k/rp"
|
|
url "https://github.com/0vercl0k/rp/archive/v1.tar.gz"
|
|
version "1.0"
|
|
sha256 "3bf69aee23421ffdc5c7fc3ce6c30eb7510640d384ce58f4a820bae02effebe3"
|
|
license "MIT"
|
|
head "https://github.com/0vercl0k/rp.git", branch: "master"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, monterey: "470af1a486ea35fe801dbc487a1a0cd1b855fdeffe68532f3b1110efa841f8e2"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "afe31e255f4d94101d0a11fd9625937c5f1846dd21fd4189304295cdb8bcf3e0"
|
|
sha256 cellar: :any_skip_relocation, catalina: "f173bd7e78a13f9fe20fbe70e3bda26e91a5aec77bd094a4d0b447afee0ff1b9"
|
|
sha256 cellar: :any_skip_relocation, mojave: "9e7dee319426b8db92302fdd19ee37f3ea5b0b3b8ebb1865e29127aa340ec7b5"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "40042ba7ad3506a62f79ed836480bf2d33a3ea171a19905a51db60c3a037cb0b"
|
|
sha256 cellar: :any_skip_relocation, sierra: "93aea19e1b6c6511e309f87003f173485a36e2b870734b6162e0bc43ae5f2a70"
|
|
sha256 cellar: :any_skip_relocation, el_capitan: "1ed1c49f3495c6da683908c34d17f345c5f3bde2a5112674bbd41f6a92da1ab2"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "ff4254026a73200222f6c631c92d97ffc1c9ac36027089139f085fdf9163f812"
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
# In order to have the same binary name in 32 and 64 bits.
|
|
patch :DATA
|
|
|
|
def install
|
|
mkdir "build" do
|
|
system "cmake", "..", *std_cmake_args
|
|
system "make"
|
|
end
|
|
os = OS.mac? ? "osx" : "lin"
|
|
bin.install "bin/rp-#{os}"
|
|
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))
|