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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "opendmarc";
|
pname = "opendmarc";
|
||||||
@ -13,16 +13,24 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
outputs = [ "bin" "dev" "out" "doc" ];
|
outputs = [ "bin" "dev" "out" "doc" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
buildInputs = [ perl ];
|
||||||
|
nativeBuildInputs = [ autoreconfHook makeWrapper ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace configure.ac --replace ' docs/Makefile' ""
|
substituteInPlace configure.ac --replace ' docs/Makefile' ""
|
||||||
|
patchShebangs contrib reports
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-milter=${libmilter}"
|
"--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; {
|
meta = with stdenv.lib; {
|
||||||
description = "A free open source software implementation of the DMARC specification";
|
description = "A free open source software implementation of the DMARC specification";
|
||||||
homepage = "http://www.trusteddomain.org/opendmarc/";
|
homepage = "http://www.trusteddomain.org/opendmarc/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user