diff options
| author | Diego Zamboni | 2013-09-17 12:14:22 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-17 19:23:22 -0700 |
| commit | 4dc372dc934a89e65cccc372992c8211a11efcc0 (patch) | |
| tree | 1e9bbd0bd6f22ac4db5b4d50c70a8959c5ef58c8 /Library/Formula | |
| parent | 88e2875445016fb273ffcfe4a2d4d02580aeb057 (diff) | |
| download | homebrew-4dc372dc934a89e65cccc372992c8211a11efcc0.tar.bz2 | |
CFEngine 3.5.2
Closes #22623.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cfengine.rb | 46 |
1 files changed, 44 insertions, 2 deletions
diff --git a/Library/Formula/cfengine.rb b/Library/Formula/cfengine.rb index 720f41362..5f7f0fa64 100644 --- a/Library/Formula/cfengine.rb +++ b/Library/Formula/cfengine.rb @@ -4,11 +4,19 @@ require 'formula' # https://github.com/mxcl/homebrew/issues/20339 class Cfengine < Formula homepage 'http://cfengine.com/' - url 'http://cfengine.com/source-code/download?file=cfengine-3.5.0.tar.gz' - sha1 'bddb179b5015d4d9d45fba3c2e63ca764bc46bf3' + url 'http://cfengine.com/source-code/download?file=cfengine-3.5.2.tar.gz' + sha1 '57ffeee2a2a6acb1764a8a0d7979538d683ccf5a' depends_on 'pcre' depends_on 'tokyo-cabinet' + depends_on 'libxml2' if MacOS.version < :mountain_lion + + def patches + # Fix compilation errors. Both changes are merged upstream already + # https://github.com/cfengine/core/pull/947 + # https://github.com/cfengine/core/commit/d03fcc2d38a4db0c79386aaef30597102bf45853 + DATA + end def install # Find our libpcre @@ -25,3 +33,37 @@ class Cfengine < Formula system "#{bin}/cf-agent", "-V" end end + +__END__ +diff --git a/cf-agent/verify_environments.c b/cf-agent/verify_environments.c +index afb84ad..c59b599 100644 +--- a/cf-agent/verify_environments.c ++++ b/cf-agent/verify_environments.c +@@ -282,13 +282,13 @@ static void VerifyEnvironments(EvalContext *ctx, Attributes a, Promise *pp) + { + case cfv_virt_vbox: + case cfv_virt_test: +- VerifyVirtDomain(hyper_uri, envtype, a, pp); ++ VerifyVirtDomain(ctx, hyper_uri, envtype, a, pp); + break; + case cfv_virt_xen_net: + case cfv_virt_kvm_net: + case cfv_virt_esx_net: + case cfv_virt_test_net: +- VerifyVirtNetwork(hyper_uri, envtype, a, pp); ++ VerifyVirtNetwork(ctx, hyper_uri, envtype, a, pp); + break; + default: + break; +diff --git a/cf-agent/verify_files_utils.c b/cf-agent/verify_files_utils.c +index 21f195c..ec4ba0d 100644 +--- a/cf-agent/verify_files_utils.c ++++ b/cf-agent/verify_files_utils.c +@@ -2271,7 +2271,6 @@ static void VerifyCopiedFileAttributes(EvalContext *ctx, const char *src, const + if (!CopyFileExtendedAttributesDisk(src, dest)) + { + cfPS(ctx, LOG_LEVEL_INFO, PROMISE_RESULT_FAIL, pp, attr, "Could not preserve extended attributes (ACLs and security contexts) on file '%s'", dest); +- return NULL; + } + } + } |
