Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37910722
en ru br
ALT Linux repositórios
S:1.1-alt1

Group :: Rede/Outros
RPM: udptunnel

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: udptunnel-no-explicit-nis.patch
Download


--- udptunnel-1.1/configure.in.orig	2001-09-06 21:07:21.000000000 +0200
+++ udptunnel-1.1/configure.in	2020-08-25 21:38:54.273078764 +0200
@@ -13,8 +13,8 @@
 
 
 dnl Checks for libraries.
-AC_CHECK_LIB(nsl, gethostname)
-AC_CHECK_LIB(socket, socket)
+AC_SEARCH_LIBS(gethostname, nsl)
+AC_SEARCH_LIBS(socket, socket)
 
 dnl Checks for header files.
 AC_HEADER_STDC
--- udptunnel-1.1/host2ip.c.orig	1999-05-19 21:58:25.000000000 +0200
+++ udptunnel-1.1/host2ip.c	2020-08-25 21:44:26.851277034 +0200
@@ -37,19 +37,9 @@
   else if ((hep = gethostbyname(host))) {
     in = *(struct in_addr *)(hep->h_addr_list[0]);
   }
-  /* As a last resort, try YP. */
   else {
-    static char *domain = 0;  /* YP domain */
-    char *value;              /* key value */
-    int value_len;            /* length of returned value */
-
-    if (!domain) yp_get_default_domain(&domain);
-    if (yp_match(domain, "hosts.byname", host, strlen(host), &value, &value_len) == 0) {
-      in.s_addr = inet_addr(value);
-    } else {
       /* Everything failed */
       in.s_addr = INADDR_ANY;
-    }
   }
   return in;
 } /* host2ip */
diff --git a/udptunnel/host2ip.c b/udptunnel/host2ip.c
index 78f23aa..e435285 100755
--- udptunnel/host2ip.c
+++ udptunnel/host2ip.c
@@ -4,7 +4,6 @@
 #include <netdb.h>           /* gethostbyname() */
 #include <netinet/in.h>      /* sockaddr_in */
 #include <arpa/inet.h>       /* inet_addr() */
-#include <rpcsvc/ypclnt.h>   /* YP */
 #include <ctype.h>           /* isspace() */
 
 #include "host2ip.h"
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009