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

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

parts =
  cclient

[cclient]
recipe = slapos.recipe.cmmi
#url = ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz
url = https://src.fedoraproject.org/lookaside/pkgs/uw-imap/${:filename}/${:md5sum}/${:filename}
filename = 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
  EXTRALDFLAGS="-Wl,-rpath -Wl,${openssl:location}/lib"
  PREFIX=%(location)s
  -j1

patches =
  ${:_profile_base_location_}/imap-2007f.patch#5d1f2f95472f6be465ef7e152a011100
  ${:_profile_base_location_}/imap-2007f-openssl-1.1.patch#c726354e888f2f3b3954e334903cef80

patch-options = -p1