2012-09-25 12:09:09 +02:00
|
|
|
{ stdenv, fetchurl, openssl, db4, gettext, pam }:
|
2010-04-10 22:27:17 +02:00
|
|
|
|
2012-07-07 13:00:53 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cyrus-sasl-2.1.25";
|
2007-10-01 17:11:38 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2012-07-07 13:00:53 +02:00
|
|
|
url = "ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/${name}.tar.gz";
|
|
|
|
sha256 = "418c16e6240a4f9b637cbe3d62937b9675627bad27c622191d47de8686fe24fe";
|
2007-10-01 17:11:38 +02:00
|
|
|
};
|
2012-07-07 13:00:53 +02:00
|
|
|
|
2012-09-25 12:09:09 +02:00
|
|
|
buildInputs = [ openssl db4 gettext ] ++ stdenv.lib.optional stdenv.isLinux pam;
|
2012-07-07 13:00:53 +02:00
|
|
|
|
|
|
|
# Set this variable at build-time to make sure $out can be evaluated.
|
|
|
|
preConfigure = ''
|
|
|
|
configureFlagsArray=( --with-plugindir=$out/lib/sasl2
|
|
|
|
--with-configdir=$out/lib/sasl2
|
2012-09-25 12:40:38 +02:00
|
|
|
--with-saslauthd=/run/saslauthd
|
2012-07-07 13:00:53 +02:00
|
|
|
--enable-login
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://cyrusimap.web.cmu.edu/";
|
|
|
|
description = "library for adding authentication support to connection-based protocols";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
2007-10-01 17:11:38 +02:00
|
|
|
}
|