Skip to content

Commit

Permalink
aircrack-ng: update 1.7 bottle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Ho committed May 23, 2022
1 parent 581d4bf commit 499582f
Showing 1 changed file with 4 additions and 46 deletions.
50 changes: 4 additions & 46 deletions Formula/aircrack-ng.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class AircrackNg < Formula
desc "Next-generation aircrack with lots of new features"
homepage "https://aircrack-ng.org/"
url "https://download.aircrack-ng.org/aircrack-ng-1.6.tar.gz"
sha256 "4f0bfd486efc6ea7229f7fbc54340ff8b2094a0d73e9f617e0a39f878999a247"
url "https://download.aircrack-ng.org/aircrack-ng-1.7.tar.gz"
sha256 "05a704e3c8f7792a17315080a21214a4448fd2452c1b0dd5226a3a55f90b58c3"
license all_of: ["GPL-2.0-or-later", "BSD-3-Clause", "OpenSSL"]

livecheck do
Expand All @@ -11,14 +11,8 @@ class AircrackNg < Formula
end

bottle do
sha256 arm64_monterey: "06f4f523f3117c4f9c4e3f3a34c6f88f9483bea0d381c680569eabbb8acf3ec2"
sha256 arm64_big_sur: "e62728054eaaf86fd66be04eb6a058f5ec0d83711b5b789a106e0c42a03455a8"
sha256 monterey: "2c73ae3414b8b586769134e08950beb8d1c00e05074c3169d813400bc3696088"
sha256 big_sur: "8a131a99a89edd127981b9dc2c91df91ba7a03b7c0d6c74521392e1649fa7d09"
sha256 catalina: "1b5ecf42ef840c108536eac5107cf63c514ca2f3d7e8c4f32e5b301f088729c1"
sha256 mojave: "e6bbba9c16ac26aaacaad5ac4935100a79cf702ab8fcb35fa9797e806ec003fe"
sha256 high_sierra: "fad333ea8e2792d88305c22b62549f63900ea32aa3f856de57d6e8d70740cd49"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2d6c32f3dc5f82c6a897a4a5916c70f686ce40c3aeaf7585e8d449ef971a9d4a"
root_url "https://github.com/gromgit/homebrew-core-mojave/releases/download/aircrack-ng"
sha256 mojave: "e6ab308ef05e96b2aa16b1e28abeba989c5e75d540282acf02cfc29dbcada0ea"
end

depends_on "autoconf" => :build
Expand All @@ -31,47 +25,11 @@ class AircrackNg < Formula

uses_from_macos "libpcap"

# Fix build for Apple Silicon.
# TODO: Remove in the next release
if Hardware::CPU.arm?
patch do
url "https://github.com/aircrack-ng/aircrack-ng/commit/a4cdb89cae06545d547a6c15a5a92f7972fad38d.patch?full_index=1"
sha256 "63ebf16f510533c94a3a1922fe09a98957da337bbb6988887349f5fe17d4ca6c"
end

patch do
url "https://github.com/aircrack-ng/aircrack-ng/commit/00fd71f1fe8e5451cfff3210f2b401eddc2d5fbd.patch?full_index=1"
sha256 "b5ac52c4c4574c470118151c0737bbd06c0f7af38f65e90d40c0a14bfb08477d"
end

patch do
url "https://github.com/aircrack-ng/aircrack-ng/commit/aab7db82306a3da43f75dd6adad7909f08f795c5.patch?full_index=1"
sha256 "eda226f147b6cc5ded0b0bd21f0a8d061989917da79596a1468b42bd8eaa7f99"
end

patch do
url "https://github.com/aircrack-ng/aircrack-ng/commit/dcf87db21139d56825c1e628c24b84bf2232dcef.patch?full_index=1"
sha256 "54d21261eadb066fc54eb5ca60717571cc3168a9154bce4b73647637c85c29c9"
end
end

# MacPorts backport of fix for VERSION file conflict with C++20 version header
# Upstream ref: https://github.com/aircrack-ng/aircrack-ng/commit/35169a66becf48fd014cb5124da3b61b4d25d812
# TODO: Remove this in next release.
patch :p0 do
url "https://raw.githubusercontent.com/macports/macports-ports/fc65d53dc398f8216b837889b3b5e5f41e9b9473/security/aircrack-ng/files/VERSION.patch"
sha256 "62706ad1814ed28f06ee2dd600c6ae5516f4c57d36439dc37a8fdccddc9738ac"
end

# Remove root requirement from OUI update script. See:
# https://github.com/Homebrew/homebrew/pull/12755
patch :DATA

def install
# TODO: Align with VERSION patch. Remove this in next release.
mv "VERSION", "AC_VERSION"
mv "VERSION.in", "AC_VERSION.in"

system "./autogen.sh", "--disable-silent-rules",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
Expand Down

0 comments on commit 499582f

Please sign in to comment.