aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/cfengine.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/Library/Formula/cfengine.rb b/Library/Formula/cfengine.rb
new file mode 100644
index 000000000..f2109640a
--- /dev/null
+++ b/Library/Formula/cfengine.rb
@@ -0,0 +1,19 @@
+require 'formula'
+
+class Cfengine < Formula
+ url 'https://cfengine.com/source_code/download?file=cfengine-3.2.0.tar.gz'
+ homepage 'http://cfengine.com/'
+ md5 '5fdd5a0bf6c5111114ee8fb2259483ae'
+
+ depends_on 'tokyo-cabinet'
+
+ def install
+ system "./configure", "--with-tokyocabinet", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "/usr/bin/make install"
+ end
+
+ def test
+ system "#{sbin}/cf-agent -V"
+ end
+end