# libc-client - UW IMAP server
# ftp://ftp.cac.washington.edu/imap/

[buildout]
extends =
  ../openssl/buildout.cfg

parts =
  cclient-patch
  cclient

[cclient-patch]
recipe = hexagonit.recipe.download
ignore-existing = true
download-only = true
url = ${:_profile_base_location_}/imap-2007f.patch
md5sum = 42c77fdd5d7a976fc302b93aadb3da98
filename = imap-2007f.patch

[cclient]
recipe = slapos.recipe.cmmi
url = ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz
md5sum = 2126fd125ea26b73b20f01fcd5940369
configure-command = true
# cclient does not support parallel compilation
make-options = 
  slx
  SSLTYPE=unix
  SSLDIR=${openssl:location}
  SSLCRYPTO=-lcrypto
  IP=6
  SSLLIB=${openssl:location}/lib
  EXTRACFLAGS=-fPIC
  CCLIENT=${buildout:parts-directory}
  -j1

patches = 
  ${cclient-patch:location}/${cclient-patch:filename}

patch-options = -p1
