2011-08-10 23:20:14 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Whatmask < Formula
|
|
|
|
homepage 'http://www.laffeycomputer.com/whatmask.html'
|
2013-01-27 23:28:17 +00:00
|
|
|
url 'http://downloads.laffeycomputer.com/current_builds/whatmask/whatmask-1.2.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '313762672acacd40de8021132b1024a5c96e2ad5'
|
2011-08-10 23:20:14 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--mandir=#{man}",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
2011-11-22 19:18:12 +00:00
|
|
|
|
2013-03-26 15:38:56 +00:00
|
|
|
test do
|
|
|
|
%x[#{bin}/whatmask /24] == <<-EOS
|
2011-11-22 19:18:12 +00:00
|
|
|
|
|
|
|
---------------------------------------------
|
|
|
|
TCP/IP SUBNET MASK EQUIVALENTS
|
|
|
|
---------------------------------------------
|
|
|
|
CIDR = .....................: /24
|
|
|
|
Netmask = ..................: 255.255.255.0
|
|
|
|
Netmask (hex) = ............: 0xffffff00
|
|
|
|
Wildcard Bits = ............: 0.0.0.255
|
|
|
|
Usable IP Addresses = ......: 254
|
|
|
|
|
|
|
|
EOS
|
|
|
|
end
|
2011-08-10 23:20:14 +00:00
|
|
|
end
|