30 lines
1.6 KiB
Ruby
30 lines
1.6 KiB
Ruby
class Bittwist < Formula
|
|
desc "Libcap-based Ethernet packet generator"
|
|
homepage "https://bittwist.sourceforge.io"
|
|
url "https://downloads.sourceforge.net/project/bittwist/Mac%20OS%20X/Bit-Twist%202.0/bittwist-macosx-2.0.tar.gz"
|
|
sha256 "8954462ac9e21376d9d24538018d1225ef19ddcddf9d27e0e37fe7597e408eaa"
|
|
license "GPL-2.0"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "32f0ed29ff9caa578d26286aec740330e6218cfe4c9ea2aa35df9587e90b9699"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "501f3df64c0991adb8be19bc835d4abc5277293de53206580ee9851ad36c23ce"
|
|
sha256 cellar: :any_skip_relocation, catalina: "784d96d15ae2ba653dcf4289cfbc58d16359e32bbb9e178a346d2dd6ee62c18a"
|
|
sha256 cellar: :any_skip_relocation, mojave: "5a282944a4d5c10caaea1217aa1b9e6225a2a5d8f5fb941bb3a77eed747cdc90"
|
|
sha256 cellar: :any_skip_relocation, high_sierra: "b19dd7e9297e5f4d26472e93f1fc90bbe5c2b7d11cd18ab04606d3176d064fb7"
|
|
sha256 cellar: :any_skip_relocation, sierra: "b69084cc099ecb0fcea860d9d07fb8a271b1bd645bef603abfe0cb20f4979902"
|
|
sha256 cellar: :any_skip_relocation, el_capitan: "215b6353dcedd6ad0908e725c68204f2aa8413bf32ae3eb0a3afa96eb6c17d60"
|
|
sha256 cellar: :any_skip_relocation, yosemite: "279cade886758dfabfbaa319c6afb302c7e254db0377f0eed1f1155afb800175"
|
|
sha256 cellar: :any_skip_relocation, mavericks: "3dcd106243667b15b4be07203daffb1c97f815051734813c0e37384c6db3747c"
|
|
end
|
|
|
|
def install
|
|
system "make"
|
|
system "make", "install", "prefix=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/bittwist", "-help"
|
|
system "#{bin}/bittwiste", "-help"
|
|
end
|
|
end
|