tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
procmail: clean up and add meta section
Gabriel Ebner
9 years ago
53a8d935
40d5284c
+14
-14
1 changed file
expand all
collapse all
unified
split
pkgs
applications
misc
procmail
default.nix
+14
-14
pkgs/applications/misc/procmail/default.nix
···
3
3
stdenv.mkDerivation {
4
4
name = "procmail-3.22";
5
5
6
6
-
buildInputs = [ stdenv.cc.libc ];
6
6
+
patches = [ ./CVE-2014-3618.patch ];
7
7
8
8
# getline is defined differently in glibc now. So rename it.
9
9
-
installPhase = "
10
10
-
mkdir -p \$out/bin
11
11
-
sed -e \"s%^RM.*$%RM=`type -f rm | awk '{print $3;}'` -f%\" -i Makefile
12
12
-
sed -e \"s%^BASENAME.*%\BASENAME=$out%\" -i Makefile
13
13
-
sed -e \"s%^LIBS=.*%LIBS=-lm%\" -i Makefile
14
14
-
sed -e \"s%getline%thisgetline%g\" -i src/*.c src/*.h
15
15
-
make DESTDIR=\$out install
16
16
-
";
17
17
-
18
18
-
phases = "unpackPhase patchPhase installPhase";
19
19
-
20
20
-
patches = [ ./CVE-2014-3618.patch ];
9
9
+
postPatch = ''
10
10
+
sed -e "s%^RM.*$%#%" -i Makefile
11
11
+
sed -e "s%^BASENAME.*%\BASENAME=$out%" -i Makefile
12
12
+
sed -e "s%^LIBS=.*%LIBS=-lm%" -i Makefile
13
13
+
sed -e "s%getline%thisgetline%g" -i src/*.c src/*.h
14
14
+
'';
21
15
22
16
src = fetchurl {
23
17
url = ftp://ftp.fu-berlin.de/pub/unix/mail/procmail/procmail-3.22.tar.gz;
24
18
sha256 = "05z1c803n5cppkcq99vkyd5myff904lf9sdgynfqngfk9nrpaz08";
25
19
};
26
20
27
27
-
meta.homepage = "http://www.procmail.org/";
21
21
+
meta = with stdenv.lib; {
22
22
+
description = "Mail processing and filtering utility";
23
23
+
homepage = http://www.procmail.org/;
24
24
+
license = licenses.gpl2;
25
25
+
platforms = platforms.unix;
26
26
+
maintainers = with maintainers; [ gebner ];
27
27
+
};
28
28
}