2011-02-02 17:05:18 +01:00
|
|
|
{ stdenv, fetchurl, libsysfs, openssl }:
|
2004-08-05 21:30:00 +02:00
|
|
|
|
2011-02-02 17:05:18 +01:00
|
|
|
assert stdenv ? glibc;
|
2007-05-16 16:54:28 +02:00
|
|
|
|
2004-08-05 21:30:00 +02:00
|
|
|
stdenv.mkDerivation {
|
2011-02-02 17:05:18 +01:00
|
|
|
name = "iputils-20101006";
|
|
|
|
|
2004-08-05 21:30:00 +02:00
|
|
|
src = fetchurl {
|
2011-02-02 17:05:18 +01:00
|
|
|
url = http://www.skbuff.net/iputils/iputils-s20101006.tar.bz2;
|
|
|
|
sha256 = "1rvfvdnmzlmgy9a6xv5v4n785zmn10v2l7yaq83rdfgbh1ng8fpx";
|
2004-08-05 21:30:00 +02:00
|
|
|
};
|
|
|
|
|
2011-02-02 17:05:18 +01:00
|
|
|
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;
|
|
|
|
};
|
2004-08-05 21:30:00 +02:00
|
|
|
}
|