remove dependency on /bin/bash for dhclient

svn path=/nixpkgs/trunk/; revision=4094
This commit is contained in:
Armijn Hemel 2005-10-16 21:48:27 +00:00
parent 3d9df37b33
commit 91e960b400
4 changed files with 14 additions and 4 deletions

View File

@ -197,7 +197,7 @@ rec {
}; };
dhcp = (import ../tools/networking/dhcp) { dhcp = (import ../tools/networking/dhcp) {
inherit fetchurl stdenv groff nettools coreutils iputils gnused; inherit fetchurl stdenv groff nettools coreutils iputils gnused bash;
}; };
dhcpWrapper = (import ../tools/networking/dhcp-wrapper) { dhcpWrapper = (import ../tools/networking/dhcp-wrapper) {

View File

@ -10,6 +10,7 @@ configurePhase() {
preBuild() { preBuild() {
sed -e "s^@nettools\@^$nettools^g" \ sed -e "s^@nettools\@^$nettools^g" \
-e "s^@coreutils\@^$coreutils^g" \ -e "s^@coreutils\@^$coreutils^g" \
-e "s^@bash\@^$bash^g" \
-e "s^@iputils\@^$iputils^g" \ -e "s^@iputils\@^$iputils^g" \
-e "s^@gnused\@^$gnused^g" \ -e "s^@gnused\@^$gnused^g" \
< client/scripts/linux > client/scripts/linux.tmp < client/scripts/linux > client/scripts/linux.tmp

View File

@ -1,4 +1,4 @@
{stdenv, fetchurl, groff, nettools, coreutils, iputils, gnused}: {stdenv, fetchurl, groff, nettools, coreutils, iputils, gnused, bash}:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "dhcp-3.0.3"; name = "dhcp-3.0.3";
@ -8,6 +8,6 @@ stdenv.mkDerivation {
md5 = "f91416a0b8ed3fd0601688cf0b7df58f"; md5 = "f91416a0b8ed3fd0601688cf0b7df58f";
}; };
buildInputs = [groff]; buildInputs = [groff];
inherit nettools coreutils iputils gnused; inherit nettools coreutils iputils gnused bash;
patches = [./dhcp-3.0.3-path.patch]; patches = [./dhcp-3.0.3-path.patch ./dhcp-3.0.3-bash.patch];
} }

View File

@ -0,0 +1,9 @@
diff -ruN dhcp-3.0.3/client/scripts/linux dhcp-3.0.3.new/client/scripts/linux
--- dhcp-3.0.3/client/scripts/linux 2002-11-15 02:09:09.000000000 +0100
+++ dhcp-3.0.3.new/client/scripts/linux 2005-10-16 22:42:09.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!@bash@/bin/bash
# dhclient-script for Linux. Dan Halbert, March, 1997.
# Updated for Linux 2.[12] by Brian J. Murrell, January 1999.
# No guarantees about this. I'm a novice at the details of Linux