Skip to content

Commit 2774f8b

Browse files
committed
Add homebrew formula file
1 parent e05274a commit 2774f8b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

homebrew/subcalc.rb

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#
2+
# Formula for the subcalc tool
3+
#
4+
class Subcalc < Formula
5+
desc "Subnet calculation and discovery tool"
6+
homepage "https://github.com/csjayp/subcalc"
7+
url "https://github.com/csjayp/subcalc/archive/v1.2.tar.gz"
8+
sha256 "7bc926b22aa75749e1ab5878932887bc1811115703aac646c04c55f39b2809a8"
9+
10+
def install
11+
system "make"
12+
system "make", "PREFIX=#{prefix}", "install"
13+
end
14+
15+
test do
16+
system "#{bin}/subcalc", "inet", "127.0.0.1/24"
17+
end
18+
end

0 commit comments

Comments
 (0)