Last active
May 3, 2018 17:33
-
-
Save madssj/ba9b0c756fea49e15ff8 to your computer and use it in GitHub Desktop.
sshpass for homebrew. Install with brew install https://gist.githubusercontent.com/madssj/ba9b0c756fea49e15ff8/raw/dbde74648e32e0ec815cdb645069fc60d56ad6a9/sshpass.rb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Because the package manager really should *not* be the | |
# judge over if you should install a package or not - I actually | |
# need to use sshpass because of things outside of my control. | |
# | |
# Of course I'll use a long and secure encrypted ssh key when | |
# possible. | |
# | |
# Sometimes this is not possible. Deal with it. | |
# | |
# Note: If you in any way can, use public/private key authentication. | |
# If you can't, here's an updated sshpass formular for brew. | |
require 'formula' | |
class Sshpass < Formula | |
url 'http://sourceforge.net/projects/sshpass/files/sshpass/1.05/sshpass-1.05.tar.gz' | |
homepage 'http://sourceforge.net/projects/sshpass' | |
sha256 'c3f78752a68a0c3f62efb3332cceea0c8a1f04f7cf6b46e00ec0c3000bc8483e' | |
def install | |
system "./configure", "--disable-debug", "--disable-dependency-tracking", | |
"--prefix=#{prefix}" | |
system "make install" | |
end | |
def test | |
system "sshpass" | |
end | |
def caveats | |
s = <<-EOS.undent | |
Use public key authentication whenever you can. Please promise me that. | |
EOS | |
return s | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment