2015-11-01 21:59:44 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libbsd, openssl, libmilter
|
|
|
|
, perl, makeWrapper }:
|
2010-02-09 10:32:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-11-23 14:49:18 +00:00
|
|
|
name = "opendkim-${version}";
|
|
|
|
version = "2.10.3";
|
|
|
|
|
2010-02-09 10:32:55 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/opendkim/files/${name}.tar.gz";
|
2015-12-11 17:00:49 +00:00
|
|
|
sha256 = "06v8bqhh604sz9rh5bvw278issrwjgc4h1wx2pz9a84lpxbvm823";
|
2010-02-09 10:32:55 +00:00
|
|
|
};
|
|
|
|
|
2015-11-01 21:59:44 +00:00
|
|
|
configureFlags= [ "--with-milter=${libmilter}" ];
|
2010-02-09 10:32:55 +00:00
|
|
|
|
2015-11-01 21:59:44 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs = [ libbsd openssl libmilter perl ];
|
|
|
|
|
|
|
|
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
|
|
|
}
|