31 lines
932 B
Ruby
31 lines
932 B
Ruby
class SshCopyId < Formula
|
|
desc "Add a public key to a remote machine's authorized_keys file"
|
|
homepage "https://www.openssh.com/"
|
|
url "https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.0p1.tar.gz"
|
|
mirror "https://cloudflare.cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-9.0p1.tar.gz"
|
|
version "9.0p1"
|
|
sha256 "03974302161e9ecce32153cfa10012f1e65c8f3750f573a73ab1befd5972a28a"
|
|
license "SSH-OpenSSH"
|
|
head "https://github.com/openssh/openssh-portable.git", branch: "master"
|
|
|
|
livecheck do
|
|
formula "openssh"
|
|
end
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, all: "41e65b946f66a2737c2ce8d3819726c5275f25506e406d9dd804327d63dc26b4"
|
|
end
|
|
|
|
keg_only :provided_by_macos
|
|
|
|
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
|