opendkim: adopt, cleanup and fix opendkim-genkey

This commit is contained in:
Nikolay Amiantov 2015-11-02 00:59:44 +03:00
parent 84817f8069
commit 1ea34520cd

View File

@ -1,4 +1,5 @@
{stdenv, fetchurl, openssl, libmilter, libbsd}:
{ stdenv, fetchurl, pkgconfig, libbsd, openssl, libmilter
, perl, makeWrapper }:
stdenv.mkDerivation rec {
name = "opendkim-2.10.3";
@ -7,15 +8,22 @@ stdenv.mkDerivation rec {
sha256 = "06v8bqhh604sz9rh5bvw278issrwjgc4h1wx2pz9a84lpxbvm823";
};
configureFlags="--with-openssl=${openssl} --with-milter=${libmilter}";
configureFlags= [ "--with-milter=${libmilter}" ];
buildInputs = [openssl libmilter libbsd];
nativeBuildInputs = [ pkgconfig makeWrapper ];
meta = {
buildInputs = [ libbsd openssl libmilter perl ];
postInstall = ''
wrapProgram $out/sbin/opendkim-genkey \
--prefix PATH : ${openssl}/bin
'';
meta = with stdenv.lib; {
description = "C library for producing DKIM-aware applications and an open source milter for providing DKIM service";
homepage = http://opendkim.org/;
maintainers = [ ];
platforms = with stdenv.lib.platforms; all;
homepage = http://www.opendkim.org/;
maintainers = with maintainers; [ abbradar ];
license = licenses.bsd3;
platforms = platforms.unix;
};
}