aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorYacin Nadji2010-07-02 12:13:22 -0400
committerAdam Vandenberg2010-07-02 09:33:03 -0700
commitc3e6ee54a5b5b0a77936be0cf077a261fdfa825f (patch)
tree4528506f695c3eb96f054e517eb1a3641eb073e0 /Library
parent07601da18bd987f8644de90647f6b3848a0c091f (diff)
downloadhomebrew-c3e6ee54a5b5b0a77936be0cf077a261fdfa825f.tar.bz2
Add new formula: grepcidr
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>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/grepcidr.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/Library/Formula/grepcidr.rb b/Library/Formula/grepcidr.rb
new file mode 100644
index 000000000..b1c30e27b
--- /dev/null
+++ b/Library/Formula/grepcidr.rb
@@ -0,0 +1,12 @@
+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