[buildout]
extends =
  ../libtool/buildout.cfg
  ../libxml2/buildout.cfg
  ../make/buildout.cfg
  ../ncurses/buildout.cfg
  ../openssl/buildout.cfg
  ../pcre/buildout.cfg
  ../perl/buildout.cfg
  ../pkgconfig/buildout.cfg
  ../tcl/buildout.cfg
  ../zlib/buildout.cfg

parts =
  trafficserver

[trafficserver]
recipe = slapos.recipe.cmmi
url = http://apache.claz.org/trafficserver/trafficserver-4.2.3.tar.bz2
md5sum = 1d06a6e9063ceea3f19dbb84752ec710
configure-options =
  --with-openssl=${openssl-1.0:location}
  --with-xml=libxml2
  --with-libxml2=${libxml2:location}
  --with-pcre=${pcre:location}
  --without-lua
  --with-ncurses=${ncurses:location}
  --with-tcl=${tcl:location}/lib/
  --with-lzma=${xz-utils:location}
  --with-zlib=${zlib:location}
  --disable-hwloc
  --enable-experimental-plugins
environment =
  PATH=${libtool:location}/bin:${make:location}/bin:${perl:location}/bin:${pkgconfig:location}/bin:%(PATH)s
  LDFLAGS =-L${libxml2:location}/lib -Wl,-rpath=${libxml2:location}/lib -L${openssl-1.0:location}/lib -Wl,-rpath=${openssl-1.0:location}/lib -L${tcl:location}/lib -Wl,-rpath=${tcl:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
make-target =
  check
  install

[trafficserver7]
recipe = slapos.recipe.cmmi
url = http://apache.claz.org/trafficserver/trafficserver-7.1.6.tar.bz2
md5sum = 45f67cd652fa3481f76ff92213325c84
configure-options =
  --with-openssl=${openssl:location}
  --with-pcre=${pcre:location}
  --with-ncurses=${ncurses:location}
  --with-tcl=${tcl:location}/lib/
  --with-lzma=${xz-utils:location}
  --with-zlib=${zlib:location}
  --disable-curl
  --disable-hwloc
  --enable-experimental-plugins
environment =
  PATH=${libtool:location}/bin:${make:location}/bin:${perl:location}/bin:${pkgconfig:location}/bin:%(PATH)s
  LDFLAGS =-L${openssl:location}/lib -Wl,-rpath=${openssl:location}/lib -L${tcl:location}/lib -Wl,-rpath=${tcl:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
make-target =
  check
  install
