37 lines
1.4 KiB
Ruby
37 lines
1.4 KiB
Ruby
class Liboping < Formula
|
|
desc "C library to generate ICMP echo requests"
|
|
homepage "https://noping.cc/"
|
|
url "https://noping.cc/files/liboping-1.10.0.tar.bz2"
|
|
sha256 "eb38aa93f93e8ab282d97e2582fbaea88b3f889a08cbc9dbf20059c3779d5cd8"
|
|
license "LGPL-2.1"
|
|
|
|
bottle do
|
|
sha256 arm64_big_sur: "a8ea63333bfc0a7ec880d0c5727316ff622ff2f4854efc93bd9bc082080f9365"
|
|
sha256 big_sur: "0edb72c3d81dbc8869b28d27f063372f7eed0ac4318624fe94e4ac5be7d2337a"
|
|
sha256 catalina: "997e8eb17c7878cbd0c34bd6532b76ef804899751a58b3b434656d1b9ced07d9"
|
|
sha256 mojave: "7b0258598b329b83ce9fd0cf18be77aa027226c8391a013cb3699faeeb1fd71f"
|
|
sha256 high_sierra: "accffc91ab24ccba1214727abadb59c497f403e3bcad1dfe8ff0377d32e05ebc"
|
|
sha256 sierra: "42b80e23afe4fb4f296d039b0bdd4ccd0da21937514fdd04a90bc01d39da7aec"
|
|
sha256 el_capitan: "de0bb72a0752469b262db3a24a41c84746930858462cd08993c057caadd46264"
|
|
sha256 yosemite: "c4f46d01bdace450a49e2c4fc4ba4056070bf1b869ed07f1b0a1d6a4f7646bc9"
|
|
end
|
|
|
|
uses_from_macos "ncurses"
|
|
|
|
def install
|
|
system "./configure", "--disable-debug",
|
|
"--disable-dependency-tracking",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
def caveats
|
|
"Run oping and noping sudo'ed in order to avoid the 'Operation not permitted'"
|
|
end
|
|
|
|
test do
|
|
system bin/"oping", "-h"
|
|
system bin/"noping", "-h"
|
|
end
|
|
end
|