From 74c988959aa36fb9716a08530e1dc9c82f6ec588 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 2 Feb 2011 16:05:18 +0000 Subject: * Updated iputils (though perhaps we should just use GNU inetutils). svn path=/nixpkgs/trunk/; revision=25765 --- pkgs/os-specific/linux/iputils/default.nix | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'pkgs/os-specific/linux/iputils/default.nix') diff --git a/pkgs/os-specific/linux/iputils/default.nix b/pkgs/os-specific/linux/iputils/default.nix index 81433a313b9..a50aefaec97 100644 --- a/pkgs/os-specific/linux/iputils/default.nix +++ b/pkgs/os-specific/linux/iputils/default.nix @@ -1,15 +1,29 @@ -{stdenv, fetchurl, linuxHeaders, glibc}: +{ stdenv, fetchurl, libsysfs, openssl }: -assert stdenv.isLinux && stdenv.system != "powerpc-linux"; +assert stdenv ? glibc; stdenv.mkDerivation { - name = "iputils-20020927"; - builder = ./builder.sh; + name = "iputils-20101006"; + src = fetchurl { - url = ftp://ftp.nl.debian.org/debian/pool/main/i/iputils/iputils_20020927.orig.tar.gz; - md5 = "b5493f7a2997130a4f86c486c9993b86"; + url = http://www.skbuff.net/iputils/iputils-s20101006.tar.bz2; + sha256 = "1rvfvdnmzlmgy9a6xv5v4n785zmn10v2l7yaq83rdfgbh1ng8fpx"; }; - inherit linuxHeaders glibc; - patches = [ ./open-max.patch ]; + buildInputs = [ libsysfs openssl ]; + + # Urgh, it uses Make's `-l' dependency "feature". + makeFlags = "VPATH=${libsysfs}/lib:${stdenv.glibc}/lib:${openssl}/lib"; + + installPhase = + '' + mkdir -p $out/sbin + cp -p arping ping ping6 rdisc tracepath tracepath6 traceroute6 $out/sbin/ + ''; + + meta = { + homepage = http://www.skbuff.net/iputils/; + description = "A set of small useful utilities for Linux networking"; + platforms = stdenv.lib.platforms.linux; + }; } -- cgit 1.4.1