summary refs log tree commit diff
path: root/pkgs/tools/networking/inetutils
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2008-02-21 18:58:11 +0000
committerLudovic Courtès <ludo@gnu.org>2008-02-21 18:58:11 +0000
commita21609b1ab35db1a01ad5175e71cd39f90b4bd62 (patch)
tree07e3fce1a8e2675e0d3c6a66798481889be0cff0 /pkgs/tools/networking/inetutils
parent4050f8fa459d392c61aaf28a5a85212a5c0033f7 (diff)
downloadnixpkgs-a21609b1ab35db1a01ad5175e71cd39f90b4bd62.tar
nixpkgs-a21609b1ab35db1a01ad5175e71cd39f90b4bd62.tar.gz
nixpkgs-a21609b1ab35db1a01ad5175e71cd39f90b4bd62.tar.bz2
nixpkgs-a21609b1ab35db1a01ad5175e71cd39f90b4bd62.tar.lz
nixpkgs-a21609b1ab35db1a01ad5175e71cd39f90b4bd62.tar.xz
nixpkgs-a21609b1ab35db1a01ad5175e71cd39f90b4bd62.tar.zst
nixpkgs-a21609b1ab35db1a01ad5175e71cd39f90b4bd62.zip
Add GNU Inetutils.
svn path=/nixpkgs/trunk/; revision=10817
Diffstat (limited to 'pkgs/tools/networking/inetutils')
-rw-r--r--pkgs/tools/networking/inetutils/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/networking/inetutils/default.nix b/pkgs/tools/networking/inetutils/default.nix
new file mode 100644
index 00000000000..e276ec10aa4
--- /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+";
+  };
+}