-
Notifications
You must be signed in to change notification settings - Fork 0
/
narrowlink-agent.rb
41 lines (35 loc) · 1.32 KB
/
narrowlink-agent.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
40
41
class NarrowlinkAgent < 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 "MPL-2.0"
# 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: "agent")
end
service do
run [opt_bin/"narrowlink-agent"]
keep_alive true
working_dir var
log_path var/"log/narrowlink/agent-access.log"
error_log_path var/"log/narrowlink/agent-error.log"
end
test do
assert_match "Narrowlink Agent", shell_output("#{bin}/narrowlink-agent --version")
end
end