homebrew-core/Formula/prips.rb
2018-01-30 08:50:51 -08:00

25 lines
897 B
Ruby

class Prips < Formula
desc "Print the IP addresses in a given range"
homepage "https://devel.ringlet.net/sysutils/prips/"
url "https://devel.ringlet.net/files/sys/prips/prips-1.0.2.tar.xz"
mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/p/prips/prips_1.0.2.orig.tar.xz"
sha256 "818258776fa981ea1e122051915a4cd3c777c542c89d23bf585712610abe4aed"
bottle do
cellar :any_skip_relocation
sha256 "0180f9d16dce43e8900e060cde301182e9370cf1b7bdb84d8c0acec2d2b5c5af" => :high_sierra
sha256 "2bfab7fad1bead6d1a0e44df90fae171fd6676604bc5cee6c541b37205db694c" => :sierra
sha256 "b07d7014555a9730e0bb7216db26ba2a52e0e04131ca8804fe7a3f0031517fce" => :el_capitan
end
def install
system "make"
bin.install "prips"
man1.install "prips.1"
end
test do
assert_equal "127.0.0.0\n127.0.0.1",
shell_output("#{bin}/prips 127.0.0.0/31").strip
end
end