diff --git a/Formula/t/teleport.rb b/Formula/t/teleport.rb index 6f72079c45d8..d23c7a3343bb 100644 --- a/Formula/t/teleport.rb +++ b/Formula/t/teleport.rb @@ -1,8 +1,8 @@ class Teleport < Formula desc "Modern SSH server for teams managing distributed infrastructure" homepage "https://goteleport.com/" - url "https://github.com/gravitational/teleport/archive/refs/tags/v18.5.0.tar.gz" - sha256 "e3596062dd1d673c348f1242918f85dc82258cd55075c8cd875634405aa9e53a" + url "https://github.com/gravitational/teleport/archive/refs/tags/v18.6.0.tar.gz" + sha256 "6dd393fd7f8301be468ec5f9b9a9dbee50259f396385dd9b61d5470de3b245cf" license all_of: ["AGPL-3.0-or-later", "Apache-2.0"] head "https://github.com/gravitational/teleport.git", branch: "master" @@ -18,14 +18,15 @@ class Teleport < Formula end bottle do - sha256 cellar: :any, arm64_tahoe: "457abe1231e8881262b4d4bbfd8054a7cbb5721b31d907012a456c3016863c52" - sha256 cellar: :any, arm64_sequoia: "8eb3b48cecc755cbb676ed9403df98f80bea91b0771adce36b938e10d8877b7d" - sha256 cellar: :any, arm64_sonoma: "c4c5d7d6934f77daaf56c09ea51d2079427609902d8f1d27297a4c74408992d6" - sha256 cellar: :any, sonoma: "6b9ccd93b95fdd69d66113e660fae54b3e604daba84bc83addd6e38a61b12ac5" - sha256 cellar: :any_skip_relocation, arm64_linux: "deadffa867dfaf755ae2084c764d359e8f3c1fb19f041344dc746e72a0e442e4" - sha256 cellar: :any_skip_relocation, x86_64_linux: "b16a0fdb09210519c03654a1c7d035d395c8f28a32e3eeff39e43f78653b964e" + sha256 cellar: :any, arm64_tahoe: "f6face3615798814237ca294c99b77b9ebdf49f37a285299612c6ed811c863a6" + sha256 cellar: :any, arm64_sequoia: "b895f97ac3241b36cfcf83b28aaf4fa0c814e574673ce65cb40a636bf249d0e5" + sha256 cellar: :any, arm64_sonoma: "bb84d67558aaf8045eddbccf0575c65bd7cb5b9ff40bffde11501ac7591739c5" + sha256 cellar: :any, sonoma: "24e9e23e5debaaef99e6785b2169d38653be0263a75f0f24e43ce4d5280e7301" + sha256 cellar: :any_skip_relocation, arm64_linux: "70502bd7d57392aae8727dbc123f0fb7df6ae41f13f76b004ca157058c3f93ee" + sha256 cellar: :any_skip_relocation, x86_64_linux: "77fb1831f4f42e2ef70e317c4899e3332691cccba3b1d1a614b6a96057059aa8" end + depends_on "binaryen" => :build depends_on "go" => :build depends_on "node@22" => :build # node 24 support issue, https://github.com/gravitational/teleport/issues/57202 depends_on "pkgconf" => :build @@ -33,7 +34,6 @@ class Teleport < Formula depends_on "rust" => :build # TODO: try to remove rustup dependancy, see https://github.com/Homebrew/homebrew-core/pull/191633#discussion_r1774378671 depends_on "rustup" => :build - depends_on "wasm-pack" => :build depends_on "libfido2" depends_on "openssl@3" @@ -46,6 +46,11 @@ class Teleport < Formula conflicts_with cask: "teleport-suite@16" conflicts_with cask: "tsh", because: "both install `tsh` binaries" + resource "wasm-bindgen" do + url "https://github.com/wasm-bindgen/wasm-bindgen/archive/refs/tags/0.2.99.tar.gz" + sha256 "1df06317203c9049752e55e59aee878774c88805cc6196630e514fa747f921f2" + end + # disable `wasm-opt` for ironrdp pkg release build, upstream pr ref, https://github.com/gravitational/teleport/pull/50178 patch :DATA @@ -59,6 +64,13 @@ def install system "rustup", "set", "profile", "minimal" system "rustup", "default", "stable" + resource("wasm-bindgen").stage do + system "cargo", "install", *std_cargo_args(path: "crates/cli", root: buildpath) + end + + # Replace wasm-bindgen binary call to the built one + inreplace "Makefile", "wasm-bindgen target", buildpath/"bin/wasm-bindgen target" + ENV.deparallelize { system "make", "full", "FIDO2=dynamic" } bin.install Dir["build/*"] end