remove dependency on /bin/bash for dhclient
svn path=/nixpkgs/trunk/; revision=4094
This commit is contained in:
parent
3d9df37b33
commit
91e960b400
@ -197,7 +197,7 @@ rec {
|
||||
};
|
||||
|
||||
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) {
|
||||
|
@ -10,6 +10,7 @@ configurePhase() {
|
||||
preBuild() {
|
||||
sed -e "s^@nettools\@^$nettools^g" \
|
||||
-e "s^@coreutils\@^$coreutils^g" \
|
||||
-e "s^@bash\@^$bash^g" \
|
||||
-e "s^@iputils\@^$iputils^g" \
|
||||
-e "s^@gnused\@^$gnused^g" \
|
||||
< client/scripts/linux > client/scripts/linux.tmp
|
||||
|
@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, groff, nettools, coreutils, iputils, gnused}:
|
||||
{stdenv, fetchurl, groff, nettools, coreutils, iputils, gnused, bash}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "dhcp-3.0.3";
|
||||
@ -8,6 +8,6 @@ stdenv.mkDerivation {
|
||||
md5 = "f91416a0b8ed3fd0601688cf0b7df58f";
|
||||
};
|
||||
buildInputs = [groff];
|
||||
inherit nettools coreutils iputils gnused;
|
||||
patches = [./dhcp-3.0.3-path.patch];
|
||||
inherit nettools coreutils iputils gnused bash;
|
||||
patches = [./dhcp-3.0.3-path.patch ./dhcp-3.0.3-bash.patch];
|
||||
}
|
||||
|
9
pkgs/tools/networking/dhcp/dhcp-3.0.3-bash.patch
Normal file
9
pkgs/tools/networking/dhcp/dhcp-3.0.3-bash.patch
Normal 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
|
Loading…
Reference in New Issue
Block a user