homebrew-core/Formula/mpssh.rb

33 lines
1.1 KiB
Ruby

class Mpssh < Formula
desc "Mass parallel ssh"
homepage "https://github.com/ndenev/mpssh"
url "https://github.com/ndenev/mpssh/archive/1.3.3.tar.gz"
sha256 "510e11c3e177a31c1052c8b4ec06357c147648c86411ac3ed4ac814d0d927f2f"
head "https://github.com/ndenev/mpssh.git"
bottle do
cellar :any_skip_relocation
sha256 "e5ac485861dfca0be2bb1ca2eb5826b5ca5977c0d2abb12dc58de011c18046f1" => :el_capitan
sha256 "2b91c9a9dbae19e99b8b8735bb3292cc056dcf8e06472c0b2d354f64896a4186" => :yosemite
sha256 "60d489a872cb7ed8855c0f95913af4fffe3082b6bee8669b0080c3d30d73249d" => :mavericks
sha256 "a528ce8c03771e3366f5380b18e2a43aba6283e09bb8945234c42dc25116cf41" => :mountain_lion
end
stable do
patch do
# don't install binaries as root (upstream commit)
url "https://github.com/ndenev/mpssh/commit/3cbb868b6fdf8dff9ab86868510c0455ad1ec1b3.diff"
sha256 "f5df424a91df1f427f96cd482d0bc22cfd90ac25c9e6beb8ca029f3a1038c3de"
end
end
def install
system "make", "install", "CC=#{ENV.cc}", "BIN=#{bin}"
man1.install "mpssh.1"
end
test do
system "#{bin}/mpssh"
end
end