[buildout]
extends =
  ../openssl/buildout.cfg
  ../lz4/buildout.cfg
  ../zstd/buildout.cfg
  ../xxhash/buildout.cfg
  ../perl/buildout.cfg

parts =
  rsync

[rsync]
recipe = slapos.recipe.cmmi
shared = true
url = https://download.samba.org/pub/rsync/src/rsync-3.4.0.tar.gz
md5sum = 92fbfc48655e4d04c859915d88e6cac0
make-options =
  PREFIX=@@LOCATION@@
environment =
  PATH=${perl:location}/bin:%(PATH)s
  CFLAGS=-I${lz4:location}/include/ -I${openssl:location}/include/ -I${xxhash:location}/include/ -I${zstd:location}/include/
  CXXFLAGS=-I${lz4:location}/include/ -I${openssl:location}/include/ -I${xxhash:location}/include/ -I${zstd:location}/include/
  LDFLAGS=-L${lz4:location}/lib/ -Wl,-rpath=${lz4:location}/lib/ -L${openssl:location}/lib/ -Wl,-rpath=${openssl:location}/lib/ -L${xxhash:location}/lib/ -Wl,-rpath=${xxhash:location}/lib/ -L${zstd:location}/lib/ -Wl,-rpath=${zstd:location}/lib/
