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
|
|
|
|
2017-12-05 16:42:33 +01:00
|
|
|
patches = [
|
|
|
|
./CVE-2014-3618.patch
|
|
|
|
(fetchurl {
|
|
|
|
url = https://sources.debian.org/data/main/p/procmail/3.22-26/debian/patches/30;
|
|
|
|
sha256 = "11zmz1bj0v9pay3ldmyyg7473b80h89gycrhndsgg9q50yhcqaaq";
|
|
|
|
name = "CVE-2017-16844";
|
|
|
|
})
|
|
|
|
];
|
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.
|
2016-12-26 14:46:18 +01:00
|
|
|
# Without the .PHONY target "make install" won't install anything on Darwin.
|
2016-07-14 12:09:12 +02:00
|
|
|
postPatch = ''
|
|
|
|
sed -e "s%^RM.*$%#%" -i Makefile
|
|
|
|
sed -e "s%^BASENAME.*%\BASENAME=$out%" -i Makefile
|
|
|
|
sed -e "s%^LIBS=.*%LIBS=-lm%" -i Makefile
|
|
|
|
sed -e "s%getline%thisgetline%g" -i src/*.c src/*.h
|
2016-12-26 14:46:18 +01:00
|
|
|
sed -e "3i\
|
|
|
|
.PHONY: install
|
|
|
|
" -i Makefile
|
2016-07-14 12:09:12 +02:00
|
|
|
'';
|
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
|
|
|
|
2016-07-14 12:09:12 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mail processing and filtering utility";
|
|
|
|
homepage = http://www.procmail.org/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
2007-09-03 14:10:57 +02:00
|
|
|
}
|