-
Notifications
You must be signed in to change notification settings - Fork 0
/
narrowlink.rb
39 lines (34 loc) · 1.61 KB
/
narrowlink.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
class Narrowlink < Formula
desc "Self-hosted solution for secure device connectivity across restricted networks"
homepage "https://github.com/narrowlink/narrowlink"
url "https://github.com/narrowlink/narrowlink/archive/refs/tags/0.2.6.tar.gz"
sha256 "6682e742431fa3496cbfd550039c6fe46c87fbce6a74d0d2c227cae38e8e2dd3"
license all_of: ["MPL-2.0", "AGPL-3.0-only"]
# livecheck do
# url :stable
# regex(/^v?(\d+(?:\.\d+)+)$/i)
# end
# bottle do
# root_url "https://narrowlink.com/"
# sha256 cellar: :any_skip_relocation, arm64_sonoma: ""
# sha256 cellar: :any_skip_relocation, arm64_ventura: ""
# sha256 cellar: :any_skip_relocation, arm64_monterey: ""
# sha256 cellar: :any_skip_relocation, sonoma: ""
# sha256 cellar: :any_skip_relocation, ventura: ""
# sha256 cellar: :any_skip_relocation, monterey: ""
# sha256 cellar: :any_skip_relocation, x86_64_linux: ""
# end
depends_on "rust" => :build
def install
system "cargo", "install", *std_cargo_args(path: "client")
system "cargo", "install", *std_cargo_args(path: "agent")
system "cargo", "install", *std_cargo_args(path: "gateway")
system "cargo", "install", *std_cargo_args(path: "token-generator")
end
test do
assert_match "Narrowlink Client", shell_output("#{bin}/narrowlink --version")
assert_match "Narrowlink Agent", shell_output("#{bin}/narrowlink-agent --version")
assert_match "Narrowlink Gateway", shell_output("#{bin}/narrowlink-gateway --version")
assert_match "Narrowlink Token Generator", shell_output("#{bin}/narrowlink-token-generator --version")
end
end