[buildout]
extends =
  ../../stack/slapos.cfg
  ../../component/pure-ftpd/buildout.cfg
  ../../component/bash/buildout.cfg
  buildout.hash.cfg
  ../../stack/monitor/buildout.cfg

parts =
  slapos-cookbook
  instance-profile
  
  
[python]
part = python3


# force to install plone.recipe.command as it will be used during instanciation 
[slapos-cookbook]
eggs +=
  plone.recipe.command


[instance-profile]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/${:filename}
rendered = ${buildout:directory}/instance.cfg
mode = 0644
extensions = jinja2.ext.do
context =
  section buildout buildout
  key bash_location bash:location
  raw monitor_rendered ${monitor-template:rendered}
  raw pureftpd_bin ${pure-ftpd:location}/sbin/pure-ftpd
  raw pureuploadscript_bin ${pure-ftpd:location}/sbin/pure-uploadscript
  raw purepw_bin ${pure-ftpd:location}/bin/pure-pw


[versions]
slapos.recipe.template = 4.4
