diff options
| author | Thomas Danielsson | 2014-01-30 00:20:18 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-01-31 18:46:39 +0100 |
| commit | aaf901cb0a0672cfad90563261094a0110f73489 (patch) | |
| tree | e589b9a41a68a5e92f3cb0bc561f355deb46708a /Library/Formula | |
| parent | b43dcebcf849f1818b5c87fa7866d7196a57551f (diff) | |
| download | homebrew-aaf901cb0a0672cfad90563261094a0110f73489.tar.bz2 | |
subnetcalc 2.2.0 (new formula)
IPv4/IPv6 Subnet Calculator
Closes #26271.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/subnetcalc.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/subnetcalc.rb b/Library/Formula/subnetcalc.rb new file mode 100644 index 000000000..4f7eef5c7 --- /dev/null +++ b/Library/Formula/subnetcalc.rb @@ -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 |
