2014-02-18 06:15:18 +01:00
|
|
|
{ stdenv, fetchurl, pam, openssl, zlib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "duo-unix";
|
2019-10-21 17:53:30 +02:00
|
|
|
version = "1.11.3";
|
2014-02-18 06:15:18 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dl.duosecurity.com/duo_unix-${version}.tar.gz";
|
2019-10-21 17:53:30 +02:00
|
|
|
sha256 = "097i2dsnbndpnyc4nx1j76qkx1bxwwlxnzmp1h3j4raghddgiq0g";
|
2014-02-18 06:15:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pam openssl zlib ];
|
|
|
|
configureFlags =
|
|
|
|
[ "--with-pam=$(out)/lib/security"
|
|
|
|
"--prefix=$(out)"
|
|
|
|
"--sysconfdir=$(out)/etc/duo"
|
2016-04-16 19:44:32 +02:00
|
|
|
"--with-openssl=${openssl.dev}"
|
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 ];
|
|
|
|
};
|
|
|
|
}
|