2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libmilter, perl, perlPackages, makeWrapper }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "opendmarc";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.4.2";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "trusteddomainproject";
|
|
|
|
repo = "opendmarc";
|
|
|
|
rev = "rel-opendmarc-${builtins.replaceStrings [ "." ] [ "-" ] version}";
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-vnWtTvHhzCed7P6rN3wAz6zfRvtV0cLn5GhDxLF8H3c=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" "doc" ];
|
|
|
|
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook makeWrapper ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac --replace ' docs/Makefile' ""
|
|
|
|
patchShebangs contrib reports
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-milter=${libmilter}"
|
|
|
|
];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for b in $bin/bin/opendmarc-{expire,import,params,reports}; do
|
|
|
|
wrapProgram $b --set PERL5LIB ${perlPackages.makeFullPerlPath (with perlPackages; [ Switch DBI DBDmysql HTTPMessage ])}
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "A free open source software implementation of the DMARC specification";
|
|
|
|
homepage = "http://www.trusteddomain.org/opendmarc/";
|
|
|
|
license = with licenses; [ bsd3 sendmail ];
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = teams.helsinki-systems.members;
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
}
|