homebrew-core/Formula/iproute2mac.rb

21 lines
547 B
Ruby
Raw Normal View History

class Iproute2mac < Formula
desc "CLI wrapper for basic network utilities on Mac OS X - ip command"
homepage "https://github.com/brona/iproute2mac"
2016-06-04 03:47:45 +00:00
url "https://github.com/brona/iproute2mac/archive/v1.1.1.tar.gz"
sha256 "1fe47faf3302f6d8ea45c9d59269dfed835580acefdb0c62cb14f0c70dcc66b1"
2015-11-16 20:35:07 +00:00
bottle :unneeded
depends_on :python if MacOS.version <= :snow_leopard
def install
bin.install "src/ip.py" => "ip"
end
test do
system "#{bin}/ip", "route"
system "#{bin}/ip", "address"
system "#{bin}/ip", "neigh"
end
end