Skip to content

Commit

Permalink
Merge pull request #2 from SiaFoundation/chris/hostd
Browse files Browse the repository at this point in the history
Add hostd formula
  • Loading branch information
ChrisSchinnerl committed Jan 19, 2024
2 parents d3e10c2 + cf38421 commit 15b8896
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Formula/hostd.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class Hostd < Formula
desc "Hostd: A host for Sia"
homepage "https://github.com/SiaFoundation/hostd"
url "https://github.com/SiaFoundation/hostd.git", :tag => "v1.0.2-beta.1"

depends_on "go" => :build

def install
system "go", "generate", "./..."
system "go", "build", "-tags='netgo'", "-trimpath", "-o", bin/"hostd", "-a", "-ldflags", "-s -w", "./cmd/hostd"
end

test do
system "#{bin}/hostd", "version"
end
end

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Or `brew tap siafoundation/sia` and then `brew install <formula>`.
### Available Formulae

- [renterd](https://github.com/SiaFoundation/renterd)
- [hostd](https://github.com/SiaFoundation/hostd)

## Documentation

Expand Down

0 comments on commit 15b8896

Please sign in to comment.