homebrew-core/Formula/cfengine.rb

26 lines
648 B
Ruby
Raw Normal View History

require 'formula'
class Cfengine < Formula
homepage 'http://cfengine.com/'
url 'https://cfengine.com/source-code/download?file=cfengine-3.3.1.tar.gz'
sha1 '254b1a5db2d4b01daf49455c9c9a5dac5b3f2fdb'
depends_on 'tokyo-cabinet'
depends_on 'pcre'
def install
# Find our libpcre
ENV.append 'LDFLAGS', "-L#{HOMEBREW_PREFIX}/lib"
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-workdir=#{var}/cfengine",
"--with-tokyocabinet"
2012-04-18 04:51:58 +00:00
system "make install"
end
def test
system "#{bin}/cf-agent -V"
end
end