mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
Make dhclient work again
svn path=/nixpkgs/trunk/; revision=16517
This commit is contained in:
parent
0b46ac126b
commit
b0e71363d1
@ -21,9 +21,14 @@ stdenv.mkDerivation rec {
|
||||
substituteInPlace $out/sbin/dhclient-script \
|
||||
--replace /sbin/ip ${iproute}/sbin/ip
|
||||
wrapProgram "$out/sbin/dhclient-script" --prefix PATH : \
|
||||
"${nettools}/bin:${nettools}/sbin:${iputils}/bin"
|
||||
"${nettools}/bin:${nettools}/sbin:${iputils}/bin:${stdenv.coreutils}/bin:${stdenv.gnused}/bin"
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
sed -i "includes/dhcpd.h" \
|
||||
-"es|^ *#define \+_PATH_DHCLIENT_SCRIPT.*$|#define _PATH_DHCLIENT_SCRIPT \"$out/sbin/dhclient-script\"|g"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Dynamic Host Configuration Protocol (DHCP) tools";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user