inetutils: fix service name
This commit is contained in:
parent
1aadcd712d
commit
67adf69a16
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, ncurses, perl }:
|
{ stdenv, fetchurl, ncurses, perl, help2man }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "inetutils-1.9.4";
|
name = "inetutils-1.9.4";
|
||||||
@ -8,9 +8,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "05n65k4ixl85dc6rxc51b1b732gnmm8xnqi424dy9f1nz7ppb3xy";
|
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";
|
configureFlags = "--with-ncurses-include-dir=${ncurses.dev}/include";
|
||||||
|
|
||||||
@ -18,6 +21,7 @@ stdenv.mkDerivation rec {
|
|||||||
# $TMPDIR is too long.
|
# $TMPDIR is too long.
|
||||||
#doCheck = true;
|
#doCheck = true;
|
||||||
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# XXX: These programs are normally installed setuid but since it
|
# XXX: These programs are normally installed setuid but since it
|
||||||
# fails, they end up being non-executable, hence this hack.
|
# fails, they end up being non-executable, hence this hack.
|
||||||
|
11
pkgs/tools/networking/inetutils/service-name.patch
Normal file
11
pkgs/tools/networking/inetutils/service-name.patch
Normal file
@ -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…
x
Reference in New Issue
Block a user