2009-01-03 15:13:19 +00:00
|
|
|
{fetchurl, stdenv, flex, bison, db4}:
|
2006-02-16 16:25:03 +00:00
|
|
|
|
2009-01-03 15:13:19 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "iproute-2.6.22-070710";
|
2007-06-20 14:01:59 +01:00
|
|
|
|
2009-01-03 15:13:19 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = http://developer.osdl.org/dev/iproute2/download/iproute2-2.6.22-070710.tar.gz;
|
|
|
|
sha256 = "3c6b48af9e655e4f0a34c7718e288960a1dc84a3ac7eb726e855adb45fbd953a";
|
2006-02-16 16:25:03 +00:00
|
|
|
};
|
2009-01-03 15:13:19 +00:00
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
mkdir tmp; cd tmp
|
|
|
|
unpackFile "$src"
|
|
|
|
'';
|
2006-02-16 16:25:03 +00:00
|
|
|
|
2009-01-03 15:13:19 +00:00
|
|
|
patchPhase = ''
|
|
|
|
for script in $(find . -type f); do sed -e 's@#! /bin/bash@#! /bin/sh@' -i $script;
|
|
|
|
done;
|
|
|
|
sed -e s@/usr/lib@$out/lib@ -i tc/Makefile
|
|
|
|
'';
|
2007-06-20 14:01:59 +01:00
|
|
|
|
|
|
|
makeFlags = " SBINDIR=\\$(out)/sbin CONFDIR=\\$(out)/etc DOCDIR=\\$(out)/doc MANDIR=\\$(out)/man ";
|
2009-01-03 15:13:19 +00:00
|
|
|
|
|
|
|
buildInputs = [bison flex db4];
|
2006-02-16 16:25:03 +00:00
|
|
|
}
|