pptp: Fix path to ip

routing.c has hardcoded /bin/ip. Use ${iproute2}/sbin/ip instead.
This commit is contained in:
Yury G. Kudryashov 2012-08-08 12:54:10 +04:00
parent 64f932f8fd
commit 8071b4040e

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, perl, ppp }:
{ stdenv, fetchurl, perl, ppp, iproute }:
stdenv.mkDerivation rec {
name = "pptp-1.7.2";
@ -11,6 +11,7 @@ stdenv.mkDerivation rec {
patchPhase =
''
sed -e 's/install -o root/install/' -i Makefile
sed -e 's,/bin/ip,${iproute}/sbin/ip,' -i routing.c
'';
preConfigure =
''