cidrmerge 1.5.3 (new formula)
Closes Homebrew/homebrew#38332. Signed-off-by: Xu Cheng <xucheng@me.com>master
parent
12bc200ad1
commit
056825e34b
|
@ -0,0 +1,20 @@
|
|||
class Cidrmerge < Formula
|
||||
homepage "http://cidrmerge.sourceforge.net"
|
||||
url "https://downloads.sourceforge.net/project/cidrmerge/cidrmerge/cidrmerge-1.5.3/cidrmerge-1.5.3.tar.gz"
|
||||
sha256 "21b36fc8004d4fc4edae71dfaf1209d3b7c8f8f282d1a582771c43522d84f088"
|
||||
|
||||
def install
|
||||
system "make"
|
||||
bin.install "cidrmerge"
|
||||
end
|
||||
|
||||
test do
|
||||
input = <<-EOS.undent
|
||||
10.1.1.0/24
|
||||
10.1.1.1/32
|
||||
192.1.4.5/32
|
||||
192.1.4.4/32
|
||||
EOS
|
||||
assert_equal "10.1.1.0/24\n192.1.4.4/31\n", pipe_output("#{bin}/cidrmerge", input)
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue