1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

Refreshed iproute package.

svn path=/nixpkgs/trunk/; revision=8906
This commit is contained in:
Michael Raskin 2007-06-20 13:01:59 +00:00
parent 56b2d0eb9e
commit f8db720230
2 changed files with 12 additions and 25 deletions

View file

@ -1,12 +1,16 @@
{stdenv, fetchurl, bison, flex, db4}:
stdenv.mkDerivation {
name = "iproute2-2.6.15-060110";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/iproute2-2.6.15-060110.tar.gz;
md5 = "04f57a6d366d36426d276178b600f5c5";
pkgs:
pkgs.stdenv.mkDerivation {
name = "iproute";
src = pkgs.fetchurl {
url = http://ftp.debian.org/debian/pool/main/i/iproute/iproute_20070313.orig.tar.gz;
sha256 = "1j7cmlr7p9xcg9ys8fhjnynwrp475rbkr2j2c5jqm1xzczw60f9v";
};
buildInputs = [bison flex db4];
patches = [./iproute2-2.6.15-060110-path.patch];
preConfigure = "for script in $(find . -type f); do sed -e 's@#! /bin/bash@#! /bin/sh@' -i $script; done;";
makeFlags = " SBINDIR=\\$(out)/sbin CONFDIR=\\$(out)/etc DOCDIR=\\$(out)/doc MANDIR=\\$(out)/man ";
buildInputs = [pkgs.bison pkgs.flex pkgs.db4];
}

View file

@ -1,17 +0,0 @@
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