f5f7da678b
More information available here: https://www.openwall.com/lists/oss-security/2011/12/31/1 The original patch is by Sebastian Pipping and is available here: https://web.archive.org/web/20120128080247/http://git.goodpoint.de/?p=mpack.git;a=commitdiff;h=0c87201f64491575350b18d04c62ec142e119d1f We copy the patch in-tree, as the original source of the patch did not have the "raw" diff made available. Closes #90905
37 lines
913 B
Nix
37 lines
913 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mpack";
|
|
version = "1.6";
|
|
|
|
src = fetchurl {
|
|
url = "http://ftp.andrew.cmu.edu/pub/mpack/mpack-${version}.tar.gz";
|
|
sha256 = "0k590z96509k96zxmhv72gkwhrlf55jkmyqlzi72m61r7axhhh97";
|
|
};
|
|
|
|
patches = [ ./build-fix.patch ./sendmail-via-execvp.diff ./CVE-2011-4919.patch ];
|
|
|
|
postPatch = ''
|
|
for f in *.{c,man,pl,unix} ; do
|
|
substituteInPlace $f --replace /usr/tmp /tmp
|
|
done
|
|
|
|
# this just shuts up some warnings
|
|
for f in {decode,encode,part,unixos,unixpk,unixunpk,xmalloc}.c ; do
|
|
sed -i 'i#include <stdlib.h>' $f
|
|
done
|
|
'';
|
|
|
|
postInstall = ''
|
|
install -Dm644 -t $out/share/doc/mpack INSTALL README.*
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "Utilities for encoding and decoding binary files in MIME";
|
|
license = licenses.free;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|