twoping 3.0.1 (new formula)

2ping is a bi-directional ping utility. It uses 3-way pings (akin to TCP
SYN, SYN/ACK, ACK) and after-the-fact state comparison between a 2ping
listener and a 2ping client to determine which direction packet loss
occurs.

New formula twoping.rb with a 2ping alias.

Closes Homebrew/homebrew#45786.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
master
Ryan Finnie 2015-11-07 13:50:58 -08:00 committed by Mike McQuaid
parent 0e475151d9
commit 22b064f2de
2 changed files with 20 additions and 0 deletions

1
Aliases/2ping Symbolic link
View File

@ -0,0 +1 @@
../Formula/twoping.rb

19
Formula/twoping.rb Normal file
View File

@ -0,0 +1,19 @@
class Twoping < Formula
desc "Ping utility to determine directional packet loss"
homepage "http://www.finnie.org/software/2ping/"
url "http://www.finnie.org/software/2ping/2ping-3.0.1.tar.gz"
sha256 "d6997cd1680151e6f7d5e60137d45cd41bf385d26029878afdaaf5dc4f63dcc4"
def install
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
system "python", *Language::Python.setup_install_args(libexec)
man1.install "doc/2ping.1"
man1.install_symlink "2ping.1" => "2ping6.1"
bin.install Dir["#{libexec}/bin/*"]
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
end
test do
system bin/"2ping", "-c", "5", "test.2ping.net"
end
end