2010-07-28 12:55:54 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2008-01-30 19:49:42 +00:00
|
|
|
stdenv.mkDerivation {
|
2010-07-28 12:55:54 +01:00
|
|
|
name = "procmail-3.22";
|
2008-02-22 09:47:37 +00:00
|
|
|
|
2017-12-05 15:42:33 +00:00
|
|
|
patches = [
|
|
|
|
./CVE-2014-3618.patch
|
|
|
|
(fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://sources.debian.org/data/main/p/procmail/3.22-26/debian/patches/30";
|
2017-12-05 15:42:33 +00:00
|
|
|
sha256 = "11zmz1bj0v9pay3ldmyyg7473b80h89gycrhndsgg9q50yhcqaaq";
|
|
|
|
name = "CVE-2017-16844";
|
|
|
|
})
|
|
|
|
];
|
2008-02-22 09:47:37 +00:00
|
|
|
|
2010-02-12 04:07:41 +00:00
|
|
|
# getline is defined differently in glibc now. So rename it.
|
2016-12-26 13:46:18 +00:00
|
|
|
# Without the .PHONY target "make install" won't install anything on Darwin.
|
2016-07-14 11:09:12 +01: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 13:46:18 +00:00
|
|
|
sed -e "3i\
|
|
|
|
.PHONY: install
|
|
|
|
" -i Makefile
|
2016-07-14 11:09:12 +01:00
|
|
|
'';
|
2008-02-22 09:47:37 +00:00
|
|
|
|
2007-09-03 13:10:57 +01:00
|
|
|
src = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-3.22.tar.gz";
|
2007-09-03 13:10:57 +01:00
|
|
|
sha256 = "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08";
|
|
|
|
};
|
2015-02-26 11:33:24 +00:00
|
|
|
|
2016-07-14 11:09:12 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Mail processing and filtering utility";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.procmail.org/";
|
2016-07-14 11:09:12 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
|
|
|
};
|
2007-09-03 13:10:57 +01:00
|
|
|
}
|