2010-07-28 11:55:54 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2008-01-30 19:49:42 +00:00
|
|
|
stdenv.mkDerivation {
|
2010-07-28 11:55:54 +00:00
|
|
|
name = "procmail-3.22";
|
2008-02-22 09:47:37 +00:00
|
|
|
|
2016-07-14 10:09:12 +00:00
|
|
|
patches = [ ./CVE-2014-3618.patch ];
|
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 10:09:12 +00: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 10:09:12 +00:00
|
|
|
'';
|
2008-02-22 09:47:37 +00:00
|
|
|
|
2007-09-03 12:10:57 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-3.22.tar.gz;
|
|
|
|
sha256 = "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08";
|
|
|
|
};
|
2015-02-26 11:33:24 +00:00
|
|
|
|
2016-07-14 10:09:12 +00: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 12:10:57 +00:00
|
|
|
}
|