mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
opendmarc: make perl scripts work
This commit is contained in:
parent
549540559a
commit
9cf43741c6
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchFromGitHub, autoreconfHook, libmilter }:
|
||||
{ stdenv, fetchFromGitHub, autoreconfHook, libmilter, perl, perlPackages, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "opendmarc";
|
||||
@ -13,16 +13,24 @@ stdenv.mkDerivation rec {
|
||||
|
||||
outputs = [ "bin" "dev" "out" "doc" ];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
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
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A free open source software implementation of the DMARC specification";
|
||||
homepage = "http://www.trusteddomain.org/opendmarc/";
|
||||
|
Loading…
Reference in New Issue
Block a user