121eaf4192
grepcidr can be used to filter a list of IP addresses against one or more Classless Inter-Domain Routing (CIDR) specifications, or arbitrary networks specified by an address range. As with grep, there are options to invert matching and load patterns from a file. grepcidr is capable of comparing thousands or even millions of IPs to networks with little memory usage and in reasonable computation time. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
12 lines
269 B
Ruby
12 lines
269 B
Ruby
require 'formula'
|
|
|
|
class Grepcidr <Formula
|
|
url 'http://www.pc-tools.net/files/unix/grepcidr-1.3.tar.gz'
|
|
homepage 'http://www.pc-tools.net/unix/grepcidr/'
|
|
md5 '7ccade25ce9fe6d6a02348ba8e4cf4a3'
|
|
|
|
def install
|
|
system "make"
|
|
bin.install 'grepcidr'
|
|
end
|
|
end
|