[buildout]
extends =
  ../autoconf/buildout.cfg
  ../automake/buildout.cfg
  ../bison/buildout.cfg
  ../flex/buildout.cfg
  ../gcc/buildout.cfg
  ../git/buildout.cfg
  ../boost-lib/buildout.cfg
  ../libtool/buildout.cfg
  ../make/buildout.cfg
  ../mariadb/buildout.cfg
  ../pkgconfig/buildout.cfg
  ../ragel/buildout.cfg
  ../zlib/buildout.cfg

parts =
  powerdns

[powerdns]
recipe = slapos.recipe.cmmi
url = http://downloads.powerdns.com/releases/pdns-3.3.1.tar.gz
md5sum = 074e2ff211fd12ecad25b5c1cc190dd4
configure-options =
  --prefix=${buildout:parts-directory}/${:_buildout_section_name_}
  --with-boost=${boost-lib:location}
  --with-modules="geo"
  --with-dynmodules=""
  --without-lua
environment =
  PATH=${gcc:location}/bin:${make:location}/bin:${libtool:location}/bin:${pkgconfig:location}/bin:${bison:location}/bin:${flex:location}/bin:${git:location}/bin:${ragel:location}/bin:%(PATH)s
  LDFLAGS=-L${boost-lib:location}/lib -Wl,-rpath=${boost-lib:location}/lib -L${zlib:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib -lz
  CPPFLAGS=-I${boost-lib:location}/include
make-target =
  install
