[buildout]
extends =
  ../patch/buildout.cfg
  ../popt/buildout.cfg
  ../xz-utils/buildout.cfg
parts = logrotate

[logrotate]
recipe = slapos.recipe.cmmi
shared = true
url = https://github.com/logrotate/logrotate/releases/download/3.17.0/logrotate-3.17.0.tar.xz
md5sum = ac2a7151fc8a187201872358a20a2813
# BBB this is only for backward-compatibility.
post-install =
  ln -nsf . @@LOCATION@@/usr
environment =
  PATH=${xz-utils:location}/bin:%(PATH)s
  CPPFLAGS=-I${popt:location}/include
  LDFLAGS=-L${popt:location}/lib -Wl,-rpath=${popt:location}/lib
