From 2fc2b12ea134cdcc05d910f1162349dac6e4671b Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Thu, 16 Feb 2006 16:25:03 +0000 Subject: [PATCH] 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 --- pkgs/os-specific/linux/iproute/default.nix | 12 ++++++++++++ .../iproute/iproute2-2.6.15-060110-path.patch | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/os-specific/linux/iproute/default.nix create mode 100644 pkgs/os-specific/linux/iproute/iproute2-2.6.15-060110-path.patch diff --git a/pkgs/os-specific/linux/iproute/default.nix b/pkgs/os-specific/linux/iproute/default.nix new file mode 100644 index 000000000000..dbebbcebf683 --- /dev/null +++ b/pkgs/os-specific/linux/iproute/default.nix @@ -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]; + +} diff --git a/pkgs/os-specific/linux/iproute/iproute2-2.6.15-060110-path.patch b/pkgs/os-specific/linux/iproute/iproute2-2.6.15-060110-path.patch new file mode 100644 index 000000000000..8bf0bd265419 --- /dev/null +++ b/pkgs/os-specific/linux/iproute/iproute2-2.6.15-060110-path.patch @@ -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 +