2010-07-28 13:55:54 +02:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2008-01-30 20:49:42 +01:00
|
|
|
stdenv.mkDerivation {
|
2010-07-28 13:55:54 +02:00
|
|
|
name = "procmail-3.22";
|
2008-02-22 10:47:37 +01:00
|
|
|
|
2014-12-17 19:11:30 +01:00
|
|
|
buildInputs = [ stdenv.cc.libc ];
|
2008-02-22 10:47:37 +01:00
|
|
|
|
2010-02-12 05:07:41 +01:00
|
|
|
# getline is defined differently in glibc now. So rename it.
|
2007-09-03 14:10:57 +02:00
|
|
|
installPhase = "
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p \$out/bin
|
2008-02-22 10:47:37 +01:00
|
|
|
sed -e \"s%^RM.*$%RM=`type -f rm | awk '{print $3;}'` -f%\" -i Makefile
|
2007-09-03 14:10:57 +02:00
|
|
|
sed -e \"s%^BASENAME.*%\BASENAME=$out%\" -i Makefile
|
2008-02-22 10:47:37 +01:00
|
|
|
sed -e \"s%^LIBS=.*%LIBS=-lm%\" -i Makefile
|
2010-02-12 05:07:41 +01:00
|
|
|
sed -e \"s%getline%thisgetline%g\" -i src/*.c src/*.h
|
2007-09-03 14:10:57 +02:00
|
|
|
make DESTDIR=\$out install
|
|
|
|
";
|
2008-02-22 10:47:37 +01:00
|
|
|
|
2015-03-03 08:39:54 +01:00
|
|
|
phases = "unpackPhase patchPhase installPhase";
|
|
|
|
|
|
|
|
patches = [ ./CVE-2014-3618.patch ];
|
2008-02-22 10:47:37 +01:00
|
|
|
|
2007-09-03 14:10:57 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-3.22.tar.gz;
|
|
|
|
sha256 = "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08";
|
|
|
|
};
|
2015-02-26 12:33:24 +01:00
|
|
|
|
|
|
|
meta.homepage = "http://www.procmail.org/";
|
2007-09-03 14:10:57 +02:00
|
|
|
}
|