homebrew-core/Formula/binwalk.rb

92 lines
3.9 KiB
Ruby

class Binwalk < Formula
include Language::Python::Virtualenv
desc "Searches a binary image for embedded files and executable code"
homepage "https://github.com/ReFirmLabs/binwalk"
url "https://github.com/ReFirmLabs/binwalk/archive/v2.3.3.tar.gz"
sha256 "7e32b94dc77632b51d18732b5456e2a3ef85e4521d7d4a54410e36f93859501f"
license "MIT"
head "https://github.com/ReFirmLabs/binwalk.git", branch: "master"
livecheck do
url :stable
strategy :github_latest
end
bottle do
sha256 cellar: :any, arm64_monterey: "c4f8b3ab0a10b11ecfb8e8219013f52b671c2c8e3dc488c313df51f181082db1"
sha256 cellar: :any, arm64_big_sur: "1e034085ca39b0365e95df6280778c66ef0944e1755bb8b7ad9aa4852a694279"
sha256 cellar: :any, monterey: "65042e23100ef67cf9f27df953a228a15b079bbe70ede1cb6bdd0f19cc25bca4"
sha256 cellar: :any, big_sur: "5863bab81579b7948fe90f4106ab0b71617088b2c2ebeaf5f41d06322f37a0e5"
sha256 cellar: :any, catalina: "a5841b3b76b9ceffe00cbeaa1b09fd47bf36bb7047167bd93cbd4feb9112276d"
sha256 cellar: :any, mojave: "a8aa94d921b8ded782cbbbc96458d388d53eaf40d7d7be530a24af4477f01e4d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "96b1f21982d5955fe9e1dd3e7c42b740293bff518cd567c85cc16177c563d2ef"
end
depends_on "pkg-config" => :build
depends_on "swig" => :build
depends_on "freetype"
depends_on "libpng"
depends_on "numpy"
depends_on "p7zip"
depends_on "pillow"
depends_on "python@3.9"
depends_on "six"
depends_on "ssdeep"
depends_on "xz"
resource "capstone" do
url "https://files.pythonhosted.org/packages/f2/ae/21dbb3ccc30d5cc9e8cdd8febfbf5d16d93b8c10e595280d2aa4631a0d1f/capstone-4.0.2.tar.gz"
sha256 "2842913092c9b69fd903744bc1b87488e1451625460baac173056e1808ec1c66"
end
resource "Cycler" do
url "https://files.pythonhosted.org/packages/c2/4b/137dea450d6e1e3d474e1d873cd1d4f7d3beed7e0dc973b06e8e10d32488/cycler-0.10.0.tar.gz"
sha256 "cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8"
end
resource "gnupg" do
url "https://files.pythonhosted.org/packages/96/6c/21f99b450d2f0821ff35343b9a7843b71e98de35192454606435c72991a8/gnupg-2.3.1.tar.gz"
sha256 "8db5a05c369dbc231dab4c98515ce828f2dffdc14f1534441a6c59b71c6d2031"
end
resource "kiwisolver" do
url "https://files.pythonhosted.org/packages/8e/87/259fde8cf07d06677f0a749cb157d079ebd00d40fe52faaab1a882a66159/kiwisolver-1.3.2.tar.gz"
sha256 "fc4453705b81d03568d5b808ad8f09c77c47534f6ac2e72e733f9ca4714aa75c"
end
resource "matplotlib" do
url "https://files.pythonhosted.org/packages/21/37/197e68df384ff694f78d687a49ad39f96c67b8d75718bc61503e1676b617/matplotlib-3.4.3.tar.gz"
sha256 "fc4f526dfdb31c9bd6b8ca06bf9fab663ca12f3ec9cdf4496fb44bc680140318"
end
resource "psutil" do
url "https://files.pythonhosted.org/packages/e1/b0/7276de53321c12981717490516b7e612364f2cb372ee8901bd4a66a000d7/psutil-5.8.0.tar.gz"
sha256 "0c9ccb99ab76025f2f0bbecf341d4656e9c1351db8cc8a03ccd62e318ab4b5c6"
end
resource "pycryptodome" do
url "https://files.pythonhosted.org/packages/88/7f/740b99ffb8173ba9d20eb890cc05187677df90219649645aca7e44eb8ff4/pycryptodome-3.10.1.tar.gz"
sha256 "3e2e3a06580c5f190df843cdb90ea28d61099cf4924334d5297a995de68e4673"
end
resource "pyparsing" do
url "https://files.pythonhosted.org/packages/c1/47/dfc9c342c9842bbe0036c7f763d2d6686bcf5eb1808ba3e170afdb282210/pyparsing-2.4.7.tar.gz"
sha256 "c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1"
end
resource "python-dateutil" do
url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz"
sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"
end
def install
virtualenv_install_with_resources
end
test do
touch "binwalk.test"
system "#{bin}/binwalk", "binwalk.test"
end
end