2016-04-04 20:00:47 +00:00
|
|
|
class Certstrap < Formula
|
|
|
|
desc "Tools to bootstrap CAs, certificate requests, and signed certificates"
|
|
|
|
homepage "https://github.com/square/certstrap"
|
|
|
|
url "https://github.com/square/certstrap.git",
|
2016-04-06 16:51:37 +00:00
|
|
|
:tag => "v1.0.1",
|
|
|
|
:revision => "c66ef6751a6e5a900c6d96cbdd0e3ee9b18792d8"
|
2016-04-04 20:00:47 +00:00
|
|
|
|
2016-04-05 13:56:27 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-04-06 22:35:20 +00:00
|
|
|
sha256 "5772fab8033d5550b1abac449ba0f41a2cf15ce5ed4de6d85857a8c86accef5a" => :el_capitan
|
|
|
|
sha256 "d6cba517c38934484bdd754a3934ceccffb759ca5e87f19ca120a0d00d84ec85" => :yosemite
|
|
|
|
sha256 "d0070d92e962492cf582f371b6ec803a1ee9b8ae4a05172b3e06b242155704da" => :mavericks
|
2016-04-05 13:56:27 +00:00
|
|
|
end
|
|
|
|
|
2016-04-04 20:00:47 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
depends_on "godep" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./build"
|
|
|
|
bin.install "bin/certstrap"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/certstrap", "init", "--common-name", "Homebrew Test CA", "--passphrase", "beerformyhorses"
|
|
|
|
end
|
|
|
|
end
|