add iproute. This tool is use increasingly instead of ifconfig and friends.

It also allows us to reuse network initialization scripts from other distributions more easily

svn path=/nixpkgs/trunk/; revision=4826
This commit is contained in:
Armijn Hemel 2006-02-16 16:25:03 +00:00
parent 6f02db3237
commit 2fc2b12ea1
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{stdenv, fetchurl, bison, flex, db4}:
stdenv.mkDerivation {
name = "iproute2-2.6.15-060110";
src = fetchurl {
url = http://developer.osdl.org/dev/iproute2/download/iproute2-2.6.15-060110.tar.gz;
md5 = "04f57a6d366d36426d276178b600f5c5";
};
buildInputs = [bison flex db4];
patches = [./iproute2-2.6.15-060110-path.patch];
}

View file

@ -0,0 +1,17 @@
diff -ruN iproute2-2.6.15-060110/Makefile iproute2-2.6.15-060110.new/Makefile
--- iproute2-2.6.15-060110/Makefile 2005-07-08 22:08:47.000000000 +0000
+++ iproute2-2.6.15-060110.new/Makefile 2006-02-16 17:03:31.000000000 +0000
@@ -1,11 +1,11 @@
-DESTDIR=
+DESTDIR=$(out)
SBINDIR=/usr/sbin
CONFDIR=/etc/iproute2
DOCDIR=/usr/share/doc/iproute2
MANDIR=/usr/share/man
# Path to db_185.h include
-DBM_INCLUDE:=/usr/include
+#DBM_INCLUDE:=/usr/include
DEFINES= -DRESOLVE_HOSTNAMES