inetutils: fix service name

wip/yesman
Jörg Thalheim 7 years ago
parent 1aadcd712d
commit 67adf69a16
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
  1. 10
      pkgs/tools/networking/inetutils/default.nix
  2. 11
      pkgs/tools/networking/inetutils/service-name.patch

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ncurses, perl }:
{ stdenv, fetchurl, ncurses, perl, help2man }:
stdenv.mkDerivation rec {
name = "inetutils-1.9.4";
@ -8,9 +8,12 @@ stdenv.mkDerivation rec {
sha256 = "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy";
};
patches = [ ./whois-Update-Canadian-TLD-server.patch ];
patches = [
./whois-Update-Canadian-TLD-server.patch
./service-name.patch
];
buildInputs = [ ncurses /* for `talk' */ perl /* for `whois' */ ];
buildInputs = [ ncurses /* for `talk' */ perl /* for `whois' */ help2man ];
configureFlags = "--with-ncurses-include-dir=${ncurses.dev}/include";
@ -18,6 +21,7 @@ stdenv.mkDerivation rec {
# $TMPDIR is too long.
#doCheck = true;
postInstall = ''
# XXX: These programs are normally installed setuid but since it
# fails, they end up being non-executable, hence this hack.

@ -0,0 +1,11 @@
--- inetutils-1.9.4.org/whois/whois.c 2015-03-31 17:40:50.000000000 +0200
+++ inetutils-1.9.4/whois/whois.c 2017-04-20 10:23:38.487358708 +0200
@@ -576,7 +576,7 @@
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
- if ((i = getaddrinfo (server, port ? port : "whois", &hints, &res)) != 0)
+ if ((i = getaddrinfo (server, port ? port : "nicname", &hints, &res)) != 0)
err_quit ("getaddrinfo: %s", gai_strerror (i));
for (ressave = res; res; res = res->ai_next)
Loading…
Cancel
Save