7689a348c4
builders. These are redundant now. * Inlined some trivial builders. * Removed a few explicit setup-hook creations. This is done automatically now if setupHook is set. * Deleted the initscripts package. NixOS doesn't use it anymore. svn path=/nixpkgs/branches/stdenv-updates/; revision=15276
25 lines
776 B
Bash
25 lines
776 B
Bash
source $stdenv/setup
|
|
|
|
# Hack to prevent dhclient from overriding the PATH specified with
|
|
# '-e' on the command-line.
|
|
makeFlagsArray=(CLIENT_PATH='\"FAKE_PATH=/nothing\"' \
|
|
USERBINDIR=$out/bin BINDIR=$out/sbin CLIENTBINDIR=$out/sbin \
|
|
ADMMANDIR=$out/share/man/man8 FFMANDIR=$out/share/man/man5 \
|
|
LIBMANDIR=$out/share/man/man3 USRMANDIR=$out/share/man/man1 \
|
|
LIBDIR=$out/lib INCDIR=$out/include VARDB=$OUT/var/run \
|
|
)
|
|
|
|
configurePhase() {
|
|
# 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"
|
|
|
|
./configure
|
|
}
|
|
|
|
preBuild() {
|
|
substituteInPlace client/scripts/linux --replace /bin/bash $shell
|
|
}
|
|
|
|
genericBuild
|