From a21609b1ab35db1a01ad5175e71cd39f90b4bd62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 21 Feb 2008 18:58:11 +0000 Subject: [PATCH] Add GNU Inetutils. svn path=/nixpkgs/trunk/; revision=10817 --- pkgs/tools/networking/inetutils/default.nix | 29 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/tools/networking/inetutils/default.nix diff --git a/pkgs/tools/networking/inetutils/default.nix b/pkgs/tools/networking/inetutils/default.nix new file mode 100644 index 000000000000..e276ec10aa41 --- /dev/null +++ b/pkgs/tools/networking/inetutils/default.nix @@ -0,0 +1,29 @@ +{stdenv, fetchurl}: + +stdenv.mkDerivation rec { + name = "inetutils-1.5"; + src = fetchurl { + url = "mirror://gnu/inetutils/${name}.tar.gz"; + sha256 = "048my5fgxnjwr1jcka8yq36c7i019p60r0mg4f6zz96pmys76p1l"; + }; + + # Make sure `configure' honors `$TMPDIR' for chroot builds. + patchPhase = '' + cat configure | sed -'es|/tmp/,iu|$TMPDIR/,iu|g' > ,,tmp && \ + mv ,,tmp configure && chmod +x configure + ''; + + postInstall = '' + # XXX: These programs are normally installed setuid but since it + # fails, they end up being non-executable, hence this hack. + chmod +x $out/bin/{ping,ping6,rcp,rlogin,rsh} + ''; + + meta = { + description = ''GNU Inetutils is a collection of common network + programs, including telnet, FTP, RSH, rlogin and + TFTP clients and servers, among others.''; + homepage = http://www.gnu.org/software/inetutils/; + license = "GPLv3+"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e6e547636ecc..65fd7af8b264 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -622,6 +622,10 @@ rec { version = "0.3rc1"; } null;*/ + inetutils = import ../tools/networking/inetutils { + inherit fetchurl stdenv; + }; + jdiskreport = import ../tools/misc/jdiskreport { inherit fetchurl stdenv unzip jdk; };