Skip to content

Instantly share code, notes, and snippets.

@madssj
Last active May 3, 2018 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madssj/ba9b0c756fea49e15ff8 to your computer and use it in GitHub Desktop.
Save madssj/ba9b0c756fea49e15ff8 to your computer and use it in GitHub Desktop.
# 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