From 916639ffd9dc519fb79952dbb99995373d6feb2c Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 24 Feb 2016 09:05:36 +0100 Subject: [PATCH] ADD: Chrisfu 's most excellent homebrew file, adjusted for my fork. REF: https://github.com/chrisfu/homebrew-proxmark3 His notes: :: Install homebrew if you haven't yet already done so: http://brew.sh/ :: Tap this repo: brew tap iceman1001/proxmark3 :: Install Proxmark3: brew install proxmark3 for stable release or brew install --HEAD proxmark3 for latest non-stable from GitHub. --- proxmark3.rb | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 proxmark3.rb diff --git a/proxmark3.rb b/proxmark3.rb new file mode 100644 index 00000000..dc8d9854 --- /dev/null +++ b/proxmark3.rb @@ -0,0 +1,39 @@ +class Proxmark3 < Formula + desc "Proxmark3 client, flasher, HID flasher and firmware bundle" + homepage "http://www.proxmark.org" + url "https://github.com/iceman1001/proxmark3/archive/v1.4.0.tar.gz" + sha256 "d8aa8a8b6df887185069fd35364e370689308f191edd9989be64b3575e312254" + head "https://github.com/iceman1001/proxmark3.git" + + depends_on "automake" => :build + depends_on "readline" + depends_on "p7zip" => :build + depends_on "libusb" + depends_on "libusb-compat" + depends_on "pkg-config" => :build + depends_on "wget" + depends_on "nitsky/stm32/arm-none-eabi-gcc" => :build + + def install + ENV.deparallelize + + system "make", "-C", "client/hid-flasher/" + system "make", "all", "clean" + system "make" + bin.mkpath + bin.install "client/flasher" => "proxmark3-flasher" + bin.install "client/hid-flasher/flasher" => "proxmark3-hid-flasher" + bin.install "client/proxmark3" => "proxmark3" + bin.install "client/fpga_compress" => "fpga_compress" + share.mkpath + (share/"firmware").mkpath + (share/"firmware").install "armsrc/obj/fullimage.elf" => "fullimage.elf" + (share/"firmware").install "bootrom/obj/bootrom.elf" => "bootrom.elf" + ohai "Install success! Upgrade devices on HID firmware with proxmark3-hid-flasher, or devices on more modern firmware with proxmark3-flasher." + ohai "The latest bootloader and firmware binaries are ready and waiting in the current homebrew Cellar within share/firmware." + end + + test do + system "proxmark3", "-h" + end +end -- 2.39.2