From 12335518ab39608d58370c85ff9f5384ad2aa5f7 Mon Sep 17 00:00:00 2001 From: MCApollo <34170230+MCApollo@users.noreply.github.com> Date: Sat, 20 Apr 2019 20:49:46 -0500 Subject: Ported in the homebrew-marauder for a hacky update/import system. TODO: Maybe add a license & fix up messy code. --- homebrew/rp/.beer | 46 +++++++++++++++++++++++++++++++++++++++ homebrew/rp/.make.sh-auto | 4 ++++ homebrew/rp/_metadata/description | 1 + homebrew/rp/_metadata/homepage | 1 + homebrew/rp/_metadata/name | 1 + homebrew/rp/_metadata/version | 1 + homebrew/rp/download.sh | 1 + homebrew/rp/patches.sh | 20 +++++++++++++++++ 8 files changed, 75 insertions(+) create mode 100644 homebrew/rp/.beer create mode 100644 homebrew/rp/.make.sh-auto create mode 100644 homebrew/rp/_metadata/description create mode 100644 homebrew/rp/_metadata/homepage create mode 100644 homebrew/rp/_metadata/name create mode 100644 homebrew/rp/_metadata/version create mode 100755 homebrew/rp/download.sh create mode 100755 homebrew/rp/patches.sh (limited to 'homebrew/rp') 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 -- cgit v1.2.3