2014-02-18 06:15:18 +01:00
|
|
|
{ stdenv, fetchurl, pam, openssl, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-06-18 00:06:31 +02:00
|
|
|
name = "duo-unix-${version}";
|
|
|
|
version = "1.9.11";
|
2014-02-18 06:15:18 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dl.duosecurity.com/duo_unix-${version}.tar.gz";
|
2014-06-18 00:06:31 +02:00
|
|
|
sha256 = "0747avzmzzz1gaisahgjlpxyxxbrn04w1mip90lfj9wp2x6a9jgm";
|
2014-02-18 06:15:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pam openssl zlib ];
|
|
|
|
configureFlags =
|
|
|
|
[ "--with-pam=$(out)/lib/security"
|
|
|
|
"--prefix=$(out)"
|
|
|
|
"--sysconfdir=$(out)/etc/duo"
|
2014-03-20 19:54:46 +01:00
|
|
|
"--with-openssl=${openssl}"
|
2014-03-20 20:05:38 +01:00
|
|
|
"--enable-lib64=no"
|
2014-02-18 06:15:18 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Duo Security Unix login integration";
|
|
|
|
homepage = "https://duosecurity.com";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|