procmail: unbreak "make install"
procmail's Makefile lacks a ".PHONY: install" line, which turns "make install" into a no-op, at least on macOS. Insert one.
This commit is contained in:
parent
2876b31ed5
commit
20c5aa5b7d
@ -6,11 +6,15 @@ stdenv.mkDerivation {
|
|||||||
patches = [ ./CVE-2014-3618.patch ];
|
patches = [ ./CVE-2014-3618.patch ];
|
||||||
|
|
||||||
# getline is defined differently in glibc now. So rename it.
|
# getline is defined differently in glibc now. So rename it.
|
||||||
|
# Without the .PHONY target "make install" won't install anything on Darwin.
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -e "s%^RM.*$%#%" -i Makefile
|
sed -e "s%^RM.*$%#%" -i Makefile
|
||||||
sed -e "s%^BASENAME.*%\BASENAME=$out%" -i Makefile
|
sed -e "s%^BASENAME.*%\BASENAME=$out%" -i Makefile
|
||||||
sed -e "s%^LIBS=.*%LIBS=-lm%" -i Makefile
|
sed -e "s%^LIBS=.*%LIBS=-lm%" -i Makefile
|
||||||
sed -e "s%getline%thisgetline%g" -i src/*.c src/*.h
|
sed -e "s%getline%thisgetline%g" -i src/*.c src/*.h
|
||||||
|
sed -e "3i\
|
||||||
|
.PHONY: install
|
||||||
|
" -i Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user