diff options
author | tron <tron@pkgsrc.org> | 2001-09-22 16:22:30 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2001-09-22 16:22:30 +0000 |
commit | 271cdf78e723f71ae3b2a6dc4f731be5d958e7b4 (patch) | |
tree | a9fb03114d5fe573a3f19a838a94a56c18ebb891 /net | |
parent | 435eb7d35d074e8b7d923d82711d7996b0f708ca (diff) | |
download | pkgsrc-271cdf78e723f71ae3b2a6dc4f731be5d958e7b4.tar.gz |
Instead "connect1.gnutellanet.com" to "connect4.gnutellanet.com" instead
of the dead "gnutellahosts.com" as initial host list server to access
the Gnutella network. Bump package version to 0.1nb1.
Diffstat (limited to 'net')
-rw-r--r-- | net/napshare/Makefile | 3 | ||||
-rw-r--r-- | net/napshare/distinfo | 4 | ||||
-rw-r--r-- | net/napshare/patches/patch-aa | 29 |
3 files changed, 31 insertions, 5 deletions
diff --git a/net/napshare/Makefile b/net/napshare/Makefile index 28a29d0e3fd..9c1f84557c3 100644 --- a/net/napshare/Makefile +++ b/net/napshare/Makefile @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.1.1.1 2001/06/14 14:41:01 tron Exp $ +# $NetBSD: Makefile,v 1.2 2001/09/22 16:22:30 tron Exp $ DISTNAME= napshare-0.1 +PKGNAME= ${DISTNAME}nb1 CATEGORIES= net MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=napshare/} diff --git a/net/napshare/distinfo b/net/napshare/distinfo index 414b64c86f2..b6d1080c9bb 100644 --- a/net/napshare/distinfo +++ b/net/napshare/distinfo @@ -1,5 +1,5 @@ -$NetBSD: distinfo,v 1.1.1.1 2001/06/14 14:41:01 tron Exp $ +$NetBSD: distinfo,v 1.2 2001/09/22 16:22:30 tron Exp $ SHA1 (napshare-0.1.tar.gz) = cf2ec9e3663048cdc9cfa9eecc7a050e25bae833 Size (napshare-0.1.tar.gz) = 162000 bytes -SHA1 (patch-aa) = 336124f8dbb247149790c2468f9bd90941bf5bee +SHA1 (patch-aa) = 0ee2e27b3b8d915d656a30fc695a5c216d8e6857 diff --git a/net/napshare/patches/patch-aa b/net/napshare/patches/patch-aa index 951c12ddbd0..7aa9adc7fea 100644 --- a/net/napshare/patches/patch-aa +++ b/net/napshare/patches/patch-aa @@ -1,7 +1,7 @@ -$NetBSD: patch-aa,v 1.1.1.1 2001/06/14 14:41:01 tron Exp $ +$NetBSD: patch-aa,v 1.2 2001/09/22 16:22:30 tron Exp $ --- src/main.c.orig Sun May 27 05:26:22 2001 -+++ src/main.c Tue Jun 12 23:17:55 2001 ++++ src/main.c Sat Sep 22 18:18:32 2001 @@ -2,7 +2,9 @@ #include "gnutella.h" @@ -12,3 +12,28 @@ $NetBSD: patch-aa,v 1.1.1.1 2001/06/14 14:41:01 tron Exp $ #include "interface.h" #include "support.h" +@@ -274,13 +276,19 @@ + + /* Auto-connect to the network. */ + if(up_connections && !stop_host_get) { ++ gint i; ++ const gchar *hosts[] = { "connect1.gnutellanet.com" , "connect2.gnutellanet.com" , "connect3.gnutellanet.com" , "connect4.gnutellanet.com" , NULL }; + guint32 autoConnectIp = 0; + +- autoConnectIp = host_to_ip("gnutellahosts.com"); +- if (autoConnectIp != 0) +- { +- node_add(NULL, autoConnectIp, 6346); +- } ++ i = 0; ++ while (hosts[i] != NULL) ++ { ++ autoConnectIp = host_to_ip(hosts[i++]); ++ if (autoConnectIp != 0) ++ { ++ node_add(NULL, autoConnectIp, 6346); ++ } ++ } + } + + |