nixpkgs/pkgs/tools/networking/dhcp/builder.sh
Eelco Dolstra f69d866898 * Hackery to get dhclient to pass PATH to dhclient-script.
svn path=/nixpkgs/trunk/; revision=7924
2007-02-20 14:59:11 +00:00

21 lines
389 B
Bash

source $stdenv/setup
export DESTDIR=$out
# Hack to prevent dhclient from overriding the PATH specified with
# '-e' on the command-line.
makeFlags="CLIENT_PATH='\"FAKE_PATH=/nothing\"'"
configurePhase=configurePhase
configurePhase() {
./configure
prefix=$out
}
preBuild=preBuild
preBuild() {
substituteInPlace client/scripts/linux --replace /bin/bash $shell
}
genericBuild