From 3f4f2ff501569a008479bc3b3f55b98a5a3c203a Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Tue, 13 May 2014 10:57:33 +0200
Subject: [PATCH] version up : stunnel 5.01.

also cleanup.
---
 component/stunnel/buildout.cfg       | 9 ++-------
 component/stunnel/stunnel-4-hooks.py | 9 ---------
 2 files changed, 2 insertions(+), 16 deletions(-)
 delete mode 100644 component/stunnel/stunnel-4-hooks.py

diff --git a/component/stunnel/buildout.cfg b/component/stunnel/buildout.cfg
index 87e75641f..c65175609 100644
--- a/component/stunnel/buildout.cfg
+++ b/component/stunnel/buildout.cfg
@@ -5,14 +5,9 @@ parts =
   stunnel
 
 [stunnel]
-<= stunnel-4
 recipe = slapos.recipe.cmmi
-
-[stunnel-4]
-recipe = slapos.recipe.cmmi
-url = https://www.stunnel.org/downloads/stunnel-5.00.tar.gz
-md5sum = 4f00fd0faf99e3c9cf258a19dd83d14a
-pre-configure-hook = ${:_profile_base_location_}/stunnel-4-hooks.py#5b099b386c34c5b8d0664c0292ba322a:pre_configure_hook
+url = https://www.stunnel.org/downloads/stunnel-5.01.tar.gz
+md5sum = 7b63266b6fa05da696729e245100da65
 configure-options =
   --enable-ipv6
   --disable-libwrap
diff --git a/component/stunnel/stunnel-4-hooks.py b/component/stunnel/stunnel-4-hooks.py
deleted file mode 100644
index ccca4e1f0..000000000
--- a/component/stunnel/stunnel-4-hooks.py
+++ /dev/null
@@ -1,9 +0,0 @@
-import os
-def pre_configure_hook(options, buildout):
-  # remove certificate generation
-  # based on Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-misc/stunnel/stunnel-4.33.ebuild
-  name = os.path.join('tools','Makefile.in')
-  f = file(name, 'r')
-  d = f.read().replace('install-data-local:', 'do-not-run-this:')
-  f.close()
-  file(name, 'w').write(d)
-- 
2.30.9