wfaulk

Untitled

Aug 7th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. class Liboping < Formula
  2. desc "C library to generate ICMP echo requests"
  3. homepage "https://noping.cc/"
  4. url "https://noping.cc/files/liboping-1.10.0.tar.bz2"
  5. sha256 "eb38aa93f93e8ab282d97e2582fbaea88b3f889a08cbc9dbf20059c3779d5cd8"
  6.  
  7. bottle do
  8. sha256 "7b0258598b329b83ce9fd0cf18be77aa027226c8391a013cb3699faeeb1fd71f" => :mojave
  9. sha256 "accffc91ab24ccba1214727abadb59c497f403e3bcad1dfe8ff0377d32e05ebc" => :high_sierra
  10. sha256 "42b80e23afe4fb4f296d039b0bdd4ccd0da21937514fdd04a90bc01d39da7aec" => :sierra
  11. sha256 "de0bb72a0752469b262db3a24a41c84746930858462cd08993c057caadd46264" => :el_capitan
  12. sha256 "c4f46d01bdace450a49e2c4fc4ba4056070bf1b869ed07f1b0a1d6a4f7646bc9" => :yosemite
  13. end
  14.  
  15. depends_on "ncurses"
  16. depends_on "pkg-config" => :build
  17.  
  18. def install
  19. ENV.append "LDFLAGS", "-L/usr/local/opt/ncurses/lib"
  20. ENV.append "CPPFLAGS", "-I/usr/local/opt/ncurses/include"
  21. ENV.append "PKG_CONFIG_PATH", "/usr/local/opt/ncurses/lib/pkgconfig"
  22. system "./configure", "--disable-debug",
  23. "--disable-dependency-tracking",
  24. "--prefix=#{prefix}"
  25. system "make", "install"
  26. end
  27.  
  28. def caveats
  29. "Run oping and noping sudo'ed in order to avoid the 'Operation not permitted'"
  30. end
  31.  
  32. test do
  33. system bin/"oping", "-h"
  34. system bin/"noping", "-h"
  35. end
  36. end
Add Comment
Please, Sign In to add comment