homebrew-core/Formula/prips.rb
2018-10-23 14:23:51 +02:00

25 lines
883 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.1.0.tar.xz"
mirror "https://deb.debian.org/debian/pool/main/p/prips/prips_1.1.0.orig.tar.xz"
sha256 "f6f85ee0234218e426cb72b27411902a55e1daa02f22d1e7270ff41e07fe0444"
bottle do
cellar :any_skip_relocation
sha256 "6dd9b01ce2a3e4267378068d0e48539d82637be1147064b1417f7bb70c4eed8b" => :mojave
sha256 "5ce5225196dc7056ca5083f4b872ba0db72a1e2482f6410c8f6e20e92b838525" => :high_sierra
sha256 "fc7f9aa1dcb04691722fe04f020c69da38eec97f4292269350a2934f624ac373" => :sierra
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