pptp: Fix path to ip
routing.c has hardcoded /bin/ip. Use ${iproute2}/sbin/ip instead.
This commit is contained in:
parent
64f932f8fd
commit
8071b4040e
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, perl, ppp }:
|
{ stdenv, fetchurl, perl, ppp, iproute }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "pptp-1.7.2";
|
name = "pptp-1.7.2";
|
||||||
@ -11,6 +11,7 @@ stdenv.mkDerivation rec {
|
|||||||
patchPhase =
|
patchPhase =
|
||||||
''
|
''
|
||||||
sed -e 's/install -o root/install/' -i Makefile
|
sed -e 's/install -o root/install/' -i Makefile
|
||||||
|
sed -e 's,/bin/ip,${iproute}/sbin/ip,' -i routing.c
|
||||||
'';
|
'';
|
||||||
preConfigure =
|
preConfigure =
|
||||||
''
|
''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user