homebrew-core/Formula/ssh-copy-id.rb
Dominyk Tiller 9e1ff058d5 ssh-copy-id 7.2p2
Closes Homebrew/homebrew#49999.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-03-11 13:37:22 +08:00

22 lines
697 B
Ruby

class SshCopyId < Formula
desc "Add a public key to a remote machine's authorized_keys file"
homepage "http://www.openssh.com/"
url "http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.2p2.tar.gz"
mirror "https://www.mirrorservice.org/pub/OpenBSD/OpenSSH/portable/openssh-7.2p2.tar.gz"
version "7.2p2"
sha256 "a72781d1a043876a224ff1b0032daa4094d87565a68528759c1c2cab5482548c"
head "https://github.com/openssh/openssh-portable.git"
bottle :unneeded
def install
bin.install "contrib/ssh-copy-id"
man1.install "contrib/ssh-copy-id.1"
end
test do
output = shell_output("#{bin}/ssh-copy-id -h 2>&1", 1)
assert_match "identity_file", output
end
end