2016-10-21 02:04:38 +02:00
|
|
|
{ stdenv, fetchurl, m4 }:
|
2010-02-09 11:32:55 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-10-21 02:04:38 +02:00
|
|
|
name = "libmilter-${version}";
|
|
|
|
version = "8.15.2";
|
|
|
|
|
2010-02-09 11:32:55 +01:00
|
|
|
src = fetchurl {
|
2016-10-21 02:04:38 +02:00
|
|
|
url = "ftp://ftp.sendmail.org/pub/sendmail/sendmail.${version}.tar.gz";
|
|
|
|
sha256 = "0fdl9ndmspqspdlmghzxlaqk56j3yajk52d7jxcg21b7sxglpy94";
|
2010-02-09 11:32:55 +01:00
|
|
|
};
|
|
|
|
|
2016-10-21 02:04:38 +02:00
|
|
|
buildPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/lib
|
2010-02-09 11:32:55 +01:00
|
|
|
cd libmilter
|
|
|
|
cat > a.m4 <<EOF
|
|
|
|
define(\`confEBINDIR', \`$out/libexec')
|
|
|
|
define(\`confINCLUDEDIR', \`$out/include')
|
|
|
|
define(\`confLIBDIR', \`$out/lib')
|
|
|
|
define(\`confMANROOT', \`$out/man/cat')
|
|
|
|
define(\`confMANROOTMAN', \`$out/man/man')
|
|
|
|
define(\`confMBINDIR', \`$out/sbin')
|
|
|
|
define(\`confSBINDIR', \`$out/sbin')
|
|
|
|
define(\`confSHAREDLIBDIR', \`$out/lib')
|
|
|
|
define(\`confUBINDIR', \`$out/bin')
|
|
|
|
define(\`confINCGRP', \`root')
|
|
|
|
define(\`confLIBGRP', \`root')
|
2015-01-19 10:44:28 +01:00
|
|
|
APPENDDEF(\`confENVDEF', \`-DNETINET6')
|
2010-02-09 11:32:55 +01:00
|
|
|
EOF
|
|
|
|
sh Build -f ./a.m4
|
|
|
|
'';
|
|
|
|
|
2010-02-09 11:37:44 +01:00
|
|
|
patches = [ ./install.patch ./sharedlib.patch];
|
2016-08-02 18:06:29 +02:00
|
|
|
|
2016-10-21 02:04:38 +02:00
|
|
|
buildInputs = [ m4 ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Sendmail Milter mail filtering API library";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2010-02-09 11:32:55 +01:00
|
|
|
}
|