Merge remote-tracking branch 'origin/java'
[slapos.git] / component / stunnel / stunnel-4-hooks.py
1 import os
2 def pre_configure_hook(options, buildout):
3 # remove certificate generation
4 # based on Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-misc/stunnel/stunnel-4.33.ebuild
5 name = os.path.join('tools','Makefile.in')
6 f = file(name, 'r')
7 d = f.read().replace('install-data-local:', 'do-not-run-this:')
8 f.close()
9 file(name, 'w').write(d)