subnetcalc 2.2.0 (new formula)
IPv4/IPv6 Subnet Calculator Closes Homebrew/homebrew#26271. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
8d2a2ce7a7
commit
0f8c802013
1 changed files with 23 additions and 0 deletions
23
Formula/subnetcalc.rb
Normal file
23
Formula/subnetcalc.rb
Normal file
|
@ -0,0 +1,23 @@
|
|||
require "formula"
|
||||
|
||||
class Subnetcalc < Formula
|
||||
homepage "http://www.iem.uni-due.de/~dreibh/subnetcalc/"
|
||||
url "http://www.iem.uni-due.de/~dreibh/subnetcalc/download/subnetcalc-2.2.0.tar.gz"
|
||||
sha1 "fbe6411443f4140937a85f051e733efd803ec7b3"
|
||||
|
||||
depends_on 'geoip' => :recommended
|
||||
|
||||
def install
|
||||
args = ["--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--prefix=#{prefix}"]
|
||||
args << "--with-geoip=no" if build.without? "geoip"
|
||||
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/subnetcalc", "::1"
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue