2010-07-28 15:55:54 +04:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
2008-01-30 22:49:42 +03:00
|
|
|
stdenv.mkDerivation {
|
2010-07-28 15:55:54 +04:00
|
|
|
name = "procmail-3.22";
|
2008-02-22 12:47:37 +03:00
|
|
|
|
2016-07-14 13:09:12 +03:00
|
|
|
patches = [ ./CVE-2014-3618.patch ];
|
2008-02-22 12:47:37 +03:00
|
|
|
|
2010-02-12 07:07:41 +03:00
|
|
|
# getline is defined differently in glibc now. So rename it.
|
2016-12-26 16:46:18 +03:00
|
|
|
# Without the .PHONY target "make install" won't install anything on Darwin.
|
2016-07-14 13:09:12 +03: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 16:46:18 +03:00
|
|
|
sed -e "3i\
|
|
|
|
.PHONY: install
|
|
|
|
" -i Makefile
|
2016-07-14 13:09:12 +03:00
|
|
|
'';
|
2008-02-22 12:47:37 +03:00
|
|
|
|
2007-09-03 16:10:57 +04:00
|
|
|
src = fetchurl {
|
|
|
|
url = ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-3.22.tar.gz;
|
|
|
|
sha256 = "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08";
|
|
|
|
};
|
2015-02-26 14:33:24 +03:00
|
|
|
|
2016-07-14 13:09:12 +03: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 16:10:57 +04:00
|
|
|
}
|