2013-03-18 14:07:03 +00:00
|
|
|
{ stdenv, fetchurl, libsysfs, gnutls, openssl, libcap, sp, docbook_sgml_dtd_31
|
2016-05-13 01:53:37 +00:00
|
|
|
, SGMLSpm, libgcrypt }:
|
2004-08-05 19:30:00 +00:00
|
|
|
|
2011-02-02 16:05:18 +00:00
|
|
|
assert stdenv ? glibc;
|
2007-05-16 14:54:28 +00:00
|
|
|
|
2013-03-18 11:21:00 +00:00
|
|
|
let
|
2016-05-13 01:53:37 +00:00
|
|
|
time = "20151218";
|
2013-03-18 11:21:00 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "iputils-${time}";
|
2013-06-04 12:18:55 +00:00
|
|
|
|
2004-08-05 19:30:00 +00:00
|
|
|
src = fetchurl {
|
2013-03-18 11:21:00 +00:00
|
|
|
url = "http://www.skbuff.net/iputils/iputils-s${time}.tar.bz2";
|
2016-05-13 01:53:37 +00:00
|
|
|
sha256 = "189592jlkhxdgy8jc07m4bsl41ik9r6i6aaqb532prai37bmi7sl";
|
2004-08-05 19:30:00 +00:00
|
|
|
};
|
|
|
|
|
2013-03-18 14:07:03 +00:00
|
|
|
prePatch = ''
|
|
|
|
sed -i s/sgmlspl/sgmlspl.pl/ doc/Makefile
|
|
|
|
'';
|
2011-02-02 16:05:18 +00:00
|
|
|
|
2013-06-04 12:18:55 +00:00
|
|
|
makeFlags = "USE_GNUTLS=no";
|
|
|
|
|
2016-05-13 01:53:37 +00:00
|
|
|
buildInputs = [
|
|
|
|
libsysfs openssl libcap sp docbook_sgml_dtd_31 SGMLSpm libgcrypt
|
|
|
|
];
|
2013-03-18 14:07:03 +00:00
|
|
|
|
|
|
|
buildFlags = "man all ninfod";
|
|
|
|
|
2011-02-02 16:05:18 +00:00
|
|
|
installPhase =
|
|
|
|
''
|
2013-03-18 11:21:00 +00:00
|
|
|
mkdir -p $out/sbin $out/bin
|
|
|
|
cp -p ping ping6 tracepath tracepath6 traceroute6 $out/bin/
|
|
|
|
cp -p clockdiff arping rdisc ninfod/ninfod $out/sbin/
|
2013-03-18 14:07:03 +00:00
|
|
|
|
|
|
|
mkdir -p $out/share/man/man8
|
|
|
|
cp -p doc/clockdiff.8 doc/arping.8 doc/ping.8 doc/rdisc.8 \
|
|
|
|
doc/tracepath.8 doc/ninfod.8 $out/share/man/man8
|
|
|
|
ln -s $out/share/man/man8/{ping,ping6}.8
|
|
|
|
ln -s $out/share/man/man8/{tracepath,tracepath6}.8
|
2011-02-02 16:05:18 +00:00
|
|
|
'';
|
2013-06-04 12:18:55 +00:00
|
|
|
|
2011-02-02 16:05:18 +00:00
|
|
|
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 19:30:00 +00:00
|
|
|
}
|