2015-11-01 21:59:44 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libbsd, openssl, libmilter
|
2017-07-14 15:39:08 +01:00
|
|
|
, autoreconfHook, perl, makeWrapper }:
|
2010-02-09 10:32:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "opendkim";
|
2016-11-23 14:49:18 +00:00
|
|
|
version = "2.10.3";
|
|
|
|
|
2010-02-09 10:32:55 +00:00
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://sourceforge/opendkim/files/${pname}-${version}.tar.gz";
|
2015-12-11 17:00:49 +00:00
|
|
|
sha256 = "06v8bqhh604sz9rh5bvw278issrwjgc4h1wx2pz9a84lpxbvm823";
|
2010-02-09 10:32:55 +00:00
|
|
|
};
|
|
|
|
|
2018-12-12 00:17:40 +00:00
|
|
|
configureFlags= [
|
|
|
|
"--with-milter=${libmilter}"
|
|
|
|
"ac_cv_func_malloc_0_nonnull=yes"
|
|
|
|
"ac_cv_func_realloc_0_nonnull=yes"
|
|
|
|
];
|
2010-02-09 10:32:55 +00:00
|
|
|
|
2017-07-14 15:39:08 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkgconfig makeWrapper ];
|
2015-11-01 21:59:44 +00:00
|
|
|
|
|
|
|
buildInputs = [ libbsd openssl libmilter perl ];
|
|
|
|
|
2017-07-14 15:39:08 +01:00
|
|
|
patches = [ ./openssl-1.1.patch ];
|
|
|
|
|
2015-11-01 21:59:44 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/sbin/opendkim-genkey \
|
2016-02-01 18:46:16 +00:00
|
|
|
--prefix PATH : ${openssl.bin}/bin
|
2015-11-01 21:59:44 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-12-11 17:00:49 +00:00
|
|
|
description = "C library for producing DKIM-aware applications and an open source milter for providing DKIM service";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.opendkim.org/;
|
2015-11-01 21:59:44 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.unix;
|
2015-12-11 17:00:49 +00:00
|
|
|
};
|
2010-02-09 10:32:55 +00:00
|
|
|
}
|