2015-10-26 18:13:04 +00:00
|
|
|
class AnsibleCmdb < Formula
|
|
|
|
desc "Generates static HTML overview page from Ansible facts"
|
|
|
|
homepage "https://github.com/fboender/ansible-cmdb"
|
2016-12-18 11:45:30 +00:00
|
|
|
url "https://github.com/fboender/ansible-cmdb/releases/download/1.18/ansible-cmdb-1.18.zip"
|
|
|
|
sha256 "0000dd3f91cd67dc470e7304de02b61eefc74f7fa2106d4f9b19d83926585fd3"
|
2015-10-26 18:13:04 +00:00
|
|
|
|
2015-11-27 10:48:33 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-12-18 11:48:25 +00:00
|
|
|
sha256 "a660ede2ff58a3de356c3d973a6cb053eaecca6d634ce140b2aed73069314c7f" => :sierra
|
|
|
|
sha256 "6eed3df2edd78dbd2bdf7320830f241e191114cfdebf4f741783c8ab8d91db21" => :el_capitan
|
|
|
|
sha256 "6eed3df2edd78dbd2bdf7320830f241e191114cfdebf4f741783c8ab8d91db21" => :yosemite
|
2015-11-27 10:48:33 +00:00
|
|
|
end
|
|
|
|
|
2015-10-26 18:13:04 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
depends_on "libyaml"
|
|
|
|
|
|
|
|
def install
|
|
|
|
bin.mkpath
|
2016-01-04 14:41:57 +00:00
|
|
|
man1.mkpath
|
2015-10-26 18:13:04 +00:00
|
|
|
inreplace "Makefile" do |s|
|
|
|
|
s.gsub! "/usr/local/lib/${PROG}", prefix
|
|
|
|
s.gsub! "/usr/local/bin", bin
|
2016-01-21 13:06:42 +00:00
|
|
|
s.gsub! "/usr/local/share/man/man1", man1
|
2015-10-26 18:13:04 +00:00
|
|
|
end
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-08-08 14:18:32 +00:00
|
|
|
system bin/"ansible-cmdb", "-dt", "html_fancy", "."
|
2015-10-26 18:13:04 +00:00
|
|
|
end
|
|
|
|
end
|