2010-02-09 10:32:55 +00:00
|
|
|
{stdenv, fetchurl, m4}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-02-24 20:31:02 +00:00
|
|
|
name = "libmilter-8.14.8";
|
2010-02-09 10:32:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-02-24 20:31:02 +00:00
|
|
|
url = "ftp://ftp.sendmail.org/pub/sendmail/sendmail.8.14.8.tar.gz";
|
|
|
|
sha256 = "1zmhzkj3gzx8022hsrysr3nzlcmv1qisb5i4jbx91661bw96ksq2";
|
2010-02-09 10:32:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/lib
|
2010-02-09 10:32:55 +00: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')
|
|
|
|
EOF
|
|
|
|
sh Build -f ./a.m4
|
|
|
|
'';
|
|
|
|
|
2010-02-09 10:37:44 +00:00
|
|
|
patches = [ ./install.patch ./sharedlib.patch];
|
2010-02-09 10:32:55 +00:00
|
|
|
|
|
|
|
buildInputs = [m4];
|
|
|
|
}
|