summaryrefslogtreecommitdiff
path: root/homebrew/rp
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/rp
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/rp')
-rw-r--r--homebrew/rp/.beer46
-rw-r--r--homebrew/rp/.make.sh-auto4
-rw-r--r--homebrew/rp/_metadata/description1
-rw-r--r--homebrew/rp/_metadata/homepage1
-rw-r--r--homebrew/rp/_metadata/name1
-rw-r--r--homebrew/rp/_metadata/version1
-rwxr-xr-xhomebrew/rp/download.sh1
-rwxr-xr-xhomebrew/rp/patches.sh20
8 files changed, 75 insertions, 0 deletions
diff --git a/homebrew/rp/.beer b/homebrew/rp/.beer
new file mode 100644
index 000000000..c31348e38
--- /dev/null
+++ b/homebrew/rp/.beer
@@ -0,0 +1,46 @@
+{
+ "name": "Rp",
+ "description": "Tool to find ROP sequences in PE/Elf/Mach-O x86/x64 binaries",
+ "url": "https://github.com/0vercl0k/rp/archive/v1.tar.gz",
+ "mirror": null,
+ "homepage": "https://0vercl0k.github.io/rp/",
+ "depends": [
+ {
+ "depend": "cmake",
+ "build-depend": true
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff --git a/CMakeLists.txt b/CMakeLists.txt\n",
+ "index 79d576b..34c2afa 100644\n",
+ "--- a/CMakeLists.txt\n",
+ "+++ b/CMakeLists.txt\n",
+ "@@ -36,12 +36,10 @@ set(RP_NAME \"${RP_NAME}-${RP_PLAT}\")\n",
+ "\n",
+ " if(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT(optX86BUILD))\n",
+ " set(FLAG_CXX \"-m64\")\n",
+ "- set(RP_NAME \"${RP_NAME}-x64\")\n",
+ " set(BEA_LIBRARY \"BeaEngine.x64.${RP_PLAT}.${EXTENSION_LIBRARY}\")\n",
+ " set(ARGTABLE_LIBRARY \"argtable2.x64.${RP_PLAT}.${EXTENSION_LIBRARY}\")\n",
+ " else()\n",
+ " set(FLAG_CXX \"-m32\")\n",
+ "- set(RP_NAME \"${RP_NAME}-x86\")\n",
+ " set(BEA_LIBRARY \"BeaEngine.x86.${RP_PLAT}.${EXTENSION_LIBRARY}\")\n",
+ " set(ARGTABLE_LIBRARY \"argtable2.x86.${RP_PLAT}.${EXTENSION_LIBRARY}\")\n",
+ " endif(CMAKE_SIZEOF_VOID_P EQUAL 8 AND NOT(optX86BUILD))\n"
+ ]
+ }
+ ],
+ "install": [
+ "mkdir \"build\" do",
+ "system \"cmake\", \"..\"",
+ "system \"make\""
+ ],
+ "version": "1",
+ "file": "rp.rb"
+} \ No newline at end of file
diff --git a/homebrew/rp/.make.sh-auto b/homebrew/rp/.make.sh-auto
new file mode 100644
index 000000000..2a7faa691
--- /dev/null
+++ b/homebrew/rp/.make.sh-auto
@@ -0,0 +1,4 @@
+pkg:setup
+mkdir "build" && cd build
+cmake ..
+make
diff --git a/homebrew/rp/_metadata/description b/homebrew/rp/_metadata/description
new file mode 100644
index 000000000..2790d571a
--- /dev/null
+++ b/homebrew/rp/_metadata/description
@@ -0,0 +1 @@
+Tool to find ROP sequences in PE/Elf/Mach-O x86/x64 binaries
diff --git a/homebrew/rp/_metadata/homepage b/homebrew/rp/_metadata/homepage
new file mode 100644
index 000000000..e67b7cb7a
--- /dev/null
+++ b/homebrew/rp/_metadata/homepage
@@ -0,0 +1 @@
+https://0vercl0k.github.io/rp/
diff --git a/homebrew/rp/_metadata/name b/homebrew/rp/_metadata/name
new file mode 100644
index 000000000..ffb40f660
--- /dev/null
+++ b/homebrew/rp/_metadata/name
@@ -0,0 +1 @@
+Rp
diff --git a/homebrew/rp/_metadata/version b/homebrew/rp/_metadata/version
new file mode 100644
index 000000000..d00491fd7
--- /dev/null
+++ b/homebrew/rp/_metadata/version
@@ -0,0 +1 @@
+1
diff --git a/homebrew/rp/download.sh b/homebrew/rp/download.sh
new file mode 100755
index 000000000..bca8f77e1
--- /dev/null
+++ b/homebrew/rp/download.sh
@@ -0,0 +1 @@
+wget https://github.com/0vercl0k/rp/archive/v1.tar.gz \ No newline at end of file
diff --git a/homebrew/rp/patches.sh b/homebrew/rp/patches.sh
new file mode 100755
index 000000000..fb2500603
--- /dev/null
+++ b/homebrew/rp/patches.sh
@@ -0,0 +1,20 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+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))
+EOF