2011-11-08 22:07:57 +01:00
|
|
|
{stdenv, fetchurl, pam, openssl}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-07-13 22:44:33 +02:00
|
|
|
name = "uw-imap-2007f";
|
2011-11-08 22:07:57 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz";
|
|
|
|
sha256 = "0a2a00hbakh0640r2wdpnwr8789z59wnk7rfsihh3j0vbhmmmqak";
|
|
|
|
};
|
|
|
|
|
2013-06-24 14:32:02 +02:00
|
|
|
makeFlags = "lnp" # Linux with PAM modules
|
|
|
|
# -fPIC is required to compile php with imap on x86_64 systems
|
|
|
|
+ stdenv.lib.optionalString stdenv.isx86_64 " EXTRACFLAGS=-fPIC";
|
2011-11-08 22:07:57 +01:00
|
|
|
|
|
|
|
buildInputs = [ pam openssl ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e s,/usr/local/ssl,${openssl}, \
|
|
|
|
src/osdep/unix/Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin $out/lib $out/include
|
2011-11-08 22:07:57 +01:00
|
|
|
cp c-client/*.h c-client/linkage.c $out/include
|
|
|
|
cp c-client/c-client.a $out/lib/libc-client.a
|
|
|
|
cp mailutil/mailutil imapd/imapd dmail/dmail mlock/mlock mtest/mtest tmail/tmail \
|
|
|
|
tools/{an,ua} $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.washington.edu/imap/;
|
|
|
|
description = "UW IMAP toolkit - IMAP-supporting software developed by the UW";
|
|
|
|
license = "Apache2";
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
withSSL = true;
|
|
|
|
};
|
|
|
|
}
|