2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2005-08-21 18:11:25 +02:00
|
|
|
|
2007-02-20 15:59:11 +01:00
|
|
|
# Hack to prevent dhclient from overriding the PATH specified with
|
|
|
|
# '-e' on the command-line.
|
2007-03-16 12:55:21 +01:00
|
|
|
makeFlagsArray=(CLIENT_PATH='\"FAKE_PATH=/nothing\"' \
|
|
|
|
USERBINDIR=$out/bin BINDIR=$out/sbin CLIENTBINDIR=$out/sbin \
|
2007-03-16 14:04:28 +01:00
|
|
|
ADMMANDIR=$out/share/man/man8 FFMANDIR=$out/share/man/man5 \
|
|
|
|
LIBMANDIR=$out/share/man/man3 USRMANDIR=$out/share/man/man1 \
|
2007-06-20 14:45:02 +02:00
|
|
|
LIBDIR=$out/lib INCDIR=$out/include VARDB=$OUT/var/run \
|
2007-03-16 12:55:21 +01:00
|
|
|
)
|
2007-02-20 15:59:11 +01:00
|
|
|
|
2005-08-21 18:11:25 +02:00
|
|
|
configurePhase() {
|
2008-05-09 00:08:58 +02:00
|
|
|
# Patch the header that contains absolute paths to the tools.
|
|
|
|
sed -i "includes/dhcpd.h" \
|
|
|
|
-"es|^ *#define \+_PATH_DHCLIENT_SCRIPT.*$|#define _PATH_DHCLIENT_SCRIPT \"$out/sbin/dhclient-script\"|g"
|
|
|
|
|
2007-02-20 15:20:16 +01:00
|
|
|
./configure
|
2005-08-21 18:11:25 +02:00
|
|
|
}
|
|
|
|
|
2005-10-12 22:32:57 +02:00
|
|
|
preBuild() {
|
2007-02-20 15:20:16 +01:00
|
|
|
substituteInPlace client/scripts/linux --replace /bin/bash $shell
|
2005-10-12 22:32:57 +02:00
|
|
|
}
|
|
|
|
|
2005-08-21 18:11:25 +02:00
|
|
|
genericBuild
|