2010-05-30 02:35:47 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Fping < Formula
|
2012-04-28 21:06:50 +00:00
|
|
|
homepage 'http://fping.org/'
|
2012-08-04 20:37:01 +00:00
|
|
|
url 'http://fping.org/dist/fping-3.2.tar.gz'
|
|
|
|
sha1 'a1f8e00ecc6d5e7089748e2587713b07c7335fc1'
|
2012-04-28 21:06:50 +00:00
|
|
|
|
|
|
|
head 'https://github.com/schweikert/fping.git'
|
2010-05-30 02:35:47 +00:00
|
|
|
|
|
|
|
def install
|
2012-04-28 21:06:50 +00:00
|
|
|
system './configure', "--prefix=#{prefix}", '--disable-dependency-tracking'
|
2010-05-30 02:35:47 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2012-04-28 21:06:50 +00:00
|
|
|
|
|
|
|
def caveats; <<-EOS.undent
|
|
|
|
fping can only be run by root by default so either use sudo to run fping or
|
|
|
|
setuid root #{sbin}/fping
|
|
|
|
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2010-05-30 02:35:47 +00:00
|
|
|
end
|