2014-02-18 09:15:18 +04:00
|
|
|
{ stdenv, fetchurl, pam, openssl, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-06-18 02:06:31 +04:00
|
|
|
name = "duo-unix-${version}";
|
2016-08-24 20:26:38 +03:00
|
|
|
version = "1.9.19";
|
2014-02-18 09:15:18 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dl.duosecurity.com/duo_unix-${version}.tar.gz";
|
2016-08-24 20:26:38 +03:00
|
|
|
sha256 = "02hvayknj0kvdik4mqm9j9isqzxk0f992i9v274s27891xqgj8rd";
|
2014-02-18 09:15:18 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pam openssl zlib ];
|
|
|
|
configureFlags =
|
|
|
|
[ "--with-pam=$(out)/lib/security"
|
|
|
|
"--prefix=$(out)"
|
|
|
|
"--sysconfdir=$(out)/etc/duo"
|
2016-04-16 20:44:32 +03:00
|
|
|
"--with-openssl=${openssl.dev}"
|
2014-03-20 23:05:38 +04:00
|
|
|
"--enable-lib64=no"
|
2014-02-18 09:15:18 +04: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 ];
|
|
|
|
};
|
|
|
|
}
|