From d0c4bdca165be44a5c7f8dbbc8d89eaa502dbb32 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Mon, 15 Nov 2010 09:20:18 +0000
Subject: [PATCH] Patching Varnish requires latest version of the patch
 command.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40258 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 buildout/software-profiles/patch.cfg   | 8 ++++++++
 buildout/software-profiles/varnish.cfg | 2 ++
 2 files changed, 10 insertions(+)
 create mode 100644 buildout/software-profiles/patch.cfg

diff --git a/buildout/software-profiles/patch.cfg b/buildout/software-profiles/patch.cfg
new file mode 100644
index 0000000000..61f644629c
--- /dev/null
+++ b/buildout/software-profiles/patch.cfg
@@ -0,0 +1,8 @@
+[buildout]
+parts =
+  patch
+
+[patch]
+recipe = erp5.recipe.cmmisafe
+url = ftp://ftp.gnu.org/gnu/patch/patch-2.6.1.tar.gz
+md5sum = d758eb96d3f75047efc004a720d33daf
diff --git a/buildout/software-profiles/varnish.cfg b/buildout/software-profiles/varnish.cfg
index c40050efbb..b681629455 100644
--- a/buildout/software-profiles/varnish.cfg
+++ b/buildout/software-profiles/varnish.cfg
@@ -8,6 +8,7 @@ parts =
 
 extends =
   ../software-profiles/pcre.cfg
+  ../software-profiles/patch.cfg
 
 [varnish]
 <= varnish-2.0
@@ -35,4 +36,5 @@ configure-options =
 patches =
   ${varnish-2.1.4-r5467-patch:location}/${varnish-2.1.4-r5467-patch:filename}
 environment =
+  PATH=${patch:location}/bin:%(PATH)s
   LDFLAGS=-Wl,-rpath -Wl,${pcre:location}/lib
-- 
2.30.9