Skip to content

Commit

Permalink
fping: Update to 3.1
Browse files Browse the repository at this point in the history
New website, and new maintainer.

fping has been mothballed since 2002.  A new maintainer has taken
over this project, set up a new website, fping.org, and committed
the project on GitHub.

Change homepage.
Upgrade to version 3.1
Add head url on GitHub
Remove `--man` because it uses a modern configure that works.
Add caveat about this software needing to be owned by root
and run as root or with the setuid bit set.  An issue is open
with the developer to see if there is a workaround for that.

Closes Homebrew#11931.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
  • Loading branch information
nibbles 2bits authored and Sharpie committed Apr 29, 2012
1 parent bd139f9 commit ba13e24
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions fping.rb
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
require 'formula'

class Fping < Formula
url 'http://fping.sourceforge.net/download/fping.tar.gz'
homepage 'http://fping.sourceforge.net/'
md5 'd5e8be59e307cef76bc479e1684df705'
version '2.4b2_to-ipv6'
homepage 'http://fping.org/'
url 'https://github.com/schweikert/fping/tarball/3.1'
sha1 '1584e662ef3ba08e239e626df73ec74bc34548ee'

head 'https://github.com/schweikert/fping.git'

def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system './configure', "--prefix=#{prefix}", '--disable-dependency-tracking'
system "make install"
end

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

end

0 comments on commit ba13e24

Please sign in to comment.