diff --git a/software/zimbra/instance.cfg b/software/zimbra/instance.cfg.in similarity index 99% rename from software/zimbra/instance.cfg rename to software/zimbra/instance.cfg.in index 6d1b2972ed359fbdd55ccbe36b3936faad31fe9e..e7e3148f34f290c0d263d0b65d976c9de1c06474 100644 --- a/software/zimbra/instance.cfg +++ b/software/zimbra/instance.cfg.in @@ -240,8 +240,8 @@ make-binary = ${ant:location}/bin/ant make-targets = environment-dependency = ${environment:recipe} junit-path = ${junit:destination}/${junit:filename} -pre-make-hook = ${:_profile_base_location_}/junixsocket-hooks.py:fix_build_xml -post-make-hook = ${:_profile_base_location_}/junixsocket-hooks.py:install_library +pre-make-hook = {{ junixsocket_hooks }}:fix_build_xml +post-make-hook = {{ junixsocket_hooks }}:install_library [junixsocket-sources] diff --git a/software/zimbra/software.cfg b/software/zimbra/software.cfg index 7082f6bf168c7e19ea952ac3c21d6275af78df2b..a21d8218ee4403a72616871321aa38157faca6cb 100644 --- a/software/zimbra/software.cfg +++ b/software/zimbra/software.cfg @@ -10,10 +10,11 @@ parts = [instance] -recipe = slapos.recipe.build:download -url = ${:_profile_base_location_}/instance.cfg -filename = ${buildout:directory}/instance.cfg -#md5sum = b501b73cdf50ddfb89b6bf3a096f05ea +recipe = slapos.recipe.template:jinja2 +template = ${:_profile_base_location_}/instance.cfg.in +rendered = ${buildout:directory}/instance.cfg +context = + key junixsocket_hooks junixsocket-hooks:filename [junixsocket-hooks]