Skip to content

Commit

Permalink
initial homestar formula
Browse files Browse the repository at this point in the history
  • Loading branch information
walkah committed Oct 16, 2023
1 parent 962a567 commit 466c72c
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
32 changes: 32 additions & 0 deletions Formula/homestar.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
class Homestar < Formula
desc "IPVM reference implementation"
homepage "https://fission.codes/ipvm"
url "https://github.com/ipvm-wg/homestar/archive/33ca93b27a83e6dde28df4046dd5d5d71161cc8a.tar.gz"
version "0.1.0"
sha256 "5fb6f521698f19a0febd5195ed7ee56f457c8d38522902b52c5565a10eabfd15"
license "Apache-2.0"

head "https://github.com/ipvm-wg/homestar.git", branch: "main"

depends_on "rust" => :build
depends_on "ipfs"

def install
system "cargo", "install", *std_cargo_args(path: "homestar-runtime")

# sample config
(etc/"homestar").install "homestar-runtime/config/settings.toml" => "settings.toml"
end

# Run as a service
service do
run [opt_bin/"homestar", "start", "--config", etc/"homestar/settings.toml", "--db", var/"homestar.db"]
keep_alive true
log_path var/"log/homestar.log"
error_log_path var/"log/homestar_error.log"
end

test do
assert_match "homestar #{version}", shell_output("#{bin}/homestar --version")
end
end
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,21 @@ Homebrew tap formula for [@fission-codes](https://github.com/fission-codes) tool

## Installation

The Fission CLI is currently available via homebrew on macOS and Linux.
### Fission CLI

The Fission CLI is currently available via homebrew on macOS.

```sh
brew install fission-codes/fission/fission-cli
```

### Homestar

Homestar is the IPVM reference implementation.

```sh
brew install fission-codes/fission/homestar

# Optionally
brew services start fission-codes/fission/homestar
```

0 comments on commit 466c72c

Please sign in to comment.