diff --git a/Formula/sub-aligator.rb b/Formula/sub-aligator.rb new file mode 100644 index 0000000..8263362 --- /dev/null +++ b/Formula/sub-aligator.rb @@ -0,0 +1,17 @@ +class SubAligator < Formula + desc "Internal IP subnet allocator" + homepage "https://git.janvete.com/seth/sub-aligator" + url "https://git.janvete.com/seth/sub-aligator/archive/v0.1.0.tar.gz" + sha256 "44b0c1282a59584d00e8b534fad3570aa8c1f90362012d4fe445039b88f61fe4" + license "MIT" + + depends_on "rust" => :build + + def install + system "cargo", "install", *std_cargo_args + end + + test do + system "#{bin}/sub-aligator", "--version" + end +end