Subject: CVS commit: pkgsrc
To: None <source-changes@netbsd.org>
From: matt debergalis <deberg@netbsd.org>
List: source-changes
Date: 08/12/2000 18:12:43
Module Name:	pkgsrc
Committed By:	deberg
Date:		Sat Aug 12 15:12:42 UTC 2000

Modified Files:
	pkgsrc/net/gnut: Makefile
	pkgsrc/net/gnut/files: md5 patch-sum
	pkgsrc/net/gnut/patches: patch-ab
Added Files:
	pkgsrc/net/gnut/patches: patch-ad

Log Message:
update to gnut-0.4.12, w/ help from itojun.

v0.4.12 2000.08.04
-------
 (0804) drop very long queries (more than 80 characters) because such
packets have recently been seen spamming the Gnutella network.
 (0804) (internal) Update aclocal.m4, configure, install-sh, missing,
mkinstalldirs and the Makefile.in's to agree with my version of
aclocal, autoconf and automake, then rebuild configure.
 (0802) (internal) Fix minor file-locking bugs: unlock download file
if HAVE_FNCTL, don't unlock upload files (because they're never
locked!).
 (0801) Changes to default_upload_cap and default_download_cap now
take effect immediately on current transfers.
 (0801) Transfer rates are now computed and displayed by a
decaying-average formula with a half-life of about 10 seconds, to more
accurately show actual rises and falls in the transfer rate.
 (0801) (internal) add get_rate_limit(), decay_rate()
 (0801) #get# checks IP address before sending push request.
 (0731) Add quotes around strings displayed by #monitor#.
 (0731) Add "no_rfc_1597" setting to disable VPN address checks.
 (0731) (internal) change host address routines in host.c to support
no_rfc_1597 setting.
 (0731) Make #push# error messages (for IP address checks) more
informative.
 (0731) Add configure check for <term.h>
 (0730) Add some overlap code for transfer, but it's disabled for the
time being.
 (0728) Add "search_extensions" variable, to specify filename
extensions to use in limiting search results.

v0.4.11 2000.07.28
-------
 (0728) Drop queries of 3 characters or less.
 (0727) Fix #push# command -- it now sends the proper GUID in the PUSH
packet, so the remote host actually recognizes and responds now.
<homer>DOH!</homer>
 (0727) Shared files are now displayed to remote hosts as filenames
only, not full pathnames.
 (0727) PUSH handler ignores requests from IP addresses that failed to
connect or issue a GET on a previous PUSH attempt, for an amount of
time that depends on the type of failure.
 (0725) #response# (and #find# or #search# without argument) display
current query string.
 (0725) PUSH handler no longer tries to make multiple simultaneous
connections to the same host for the same file.
 (0725) Change default TTL from 4 to 7.
 (0725) #monitor# command now takes an argument, which is used as a
boolean AND filter against the query match strings displayed.
 (0724) Respond to PUSH requests with full pathname of requested file,
thus making PUSH transfers work properly for files in a subdirectory.
 (0723) Add option "strict_search", which specifies filtering search
results to make sure they match (by boolean AND, and not ignoring
punctuation) the string given in the #find# or #search# command ( but
not yet implemented for searches through the HTTP interface).
 (internal) Change all "//" style comments to "/* */" (makes it
compile on old or non-GCC compilers). Move more text strings to
gnut_ui.h.

v0.4.10 2000.07.21
-------
 (0721) (internal) ./configure now checks for getopt_long() in two
places. Create gnut_ui.h, move all language-specific strings from
gnut_http.c into gnut_ui.h
 (0721) HTTP search form pop-up choices (time and # replies) now
default to the same values you used in your previous search. Also,
increase the number of choices (delays from 15 to 240; results from 5
to 320)
 (0721) Improve look of HTML pages. Add GnutellaNet statistics to each
page. Make number-of-replies setting in HTTP search work.
 (0721) HTTP search sends a trickle of data while searching so the
browser won't say "(stalled)" in the status line
 (0720) HTTP server now formats search results in a table, and
includes size and server speed for each file. Add "please wait ##
seconds for page to finish loading" message.

v0.4.9 2000.07.19
------
 (0719) #find# "results received" display now prints only when the
number actually changes (important to users of screen reader software
and users running #gnut# over #ssh# or a slow terminal link).
 (0719) Add 'beep_on_all' preference; if set (and if 'wait_after_find'
is also set) #find# will beep every time the number of responses goes
up, rather than just the first time.
 (0719) #monitor# no longer prints non-ASCII characters (which often
screw up an xterm or console window so bad that you'd have to log out
to recover)
 (0719) #sleep# and #kill# no longer cause a segfault if they have no
argument.
 (0719) Update gnut URL in "Powered by gnut" link on web page.
 (0719) (internal) Remove a debug printf. Fix small memory leak in
gnut_connection_delete()

v0.4.8 2000.06.16
------
 (0615) Rewrite parts of manual and tutorial to reflect the
changes in gnut. Bring up new web site. Automate synchronization
of documentation files and web site. Put 0.4.1 on web site.
 (0612) Enforce max_responses on the actual list in memory (rather
than on just the displayed results).
 (0612) Add CRC check to eliminate duplicate query results (necessary
because of the new-connection-query-packet change in 0.4.7)
 (0612) Implement VPN host address filtering: gnut no longer uses
hosts that are unreachable because they have behind-firewall
addresses, unless they're in your own firewall address range; also
removes some non-downloadable files from results list (but only if you
and the other file are both in VPN's and the VPN's are different
ranges).
 (internal) add crc32_start(), crc32_add8(), host_ok_for_connect(),
host_ok_for_download(); local_vpn_class global

v0.4.7 2000.06.12
------
 (0611) Sent current query packet out to any new connection as soon as
the connection opens.
 (0611) 'find' with no arguments displays results.
 (0611) 'search' is synonym for 'find'.
 (0611) Add 'download_timeout' preference, because some hosts make
downloads wait in a queue before connecting.
 (0611) Add 'autokill_thres' option, if set to zero it disables
autokill (described in 0.4.6 changes)
 (0611) New connections now appended to end of connection-list rather
than beginning; makes the connection numbers in #info c# more stable,
which in turn makes it easier to issue the #kill# command.
 (internal) Reserve 2 bytes of GUID for possible future multiple
concurrent search feature. kill_worst now breaks ties in preference to
the last 'bad' connection rather than the first.

v0.4.6 2000.06.11
------
 (0611) Add autokill: automatic connection-list grooming. If left
alone, gnut will now optimize its N connections to get the minimum
possible overlap; this means you get more results when you do a
search.
 Dropped packets now counted as in Windows Gnutella ('dropped' =
duplicate). run_config_file() now takes a parameter to only run #set#
commands, which allows us to get settings (like the port number) from
.gnutrc before the rest of initialization.
 (internal) clean up #ifdefs in command_loop()

v0.4.5 2000.06.08 (another INTERIM DEBUG VERSION)
------
 Like version 0.4.4, this version isn't too useful because it prints a
lot of stuff (I was in the middle of fixing the inefficiencies in the
connection list and host list)
 (0608) Dramatically improve stability of connections by handling
the buffer-overrun problem differently: now, instead of dropping
the connection, it simply drops one packet and tries again.
 (0608) Add total packets sent (at bottom of 'info c'). Append new
hosts to hash bucket instead of prepend (improves long-term freshness
of host list). Fix ttl and hops reject checks.
 (internal) add total_sent global, bad_host()

v0.4.4 2000.06.07 (INTERIM DEBUG VERSION)
------
 This version isn't too useful because it prints a lot of stuff (I was
in the middle of fixing the inefficiencies in the connection list and
host list)
 (0607) Randomize choice of next host when opening a new outgoing
connection (it used to always choose a host with a hashcode of 0, and
would repeatedly attempt to connect to the same hosts)
 (0607) (internal) add 'next_hashstart' global; add some debug
printf's; cosmetic reformatting

v0.4.3 2000.06.07
------
 (0607) Added 'kill w' command -- kills connection with worst
duplicate-packet count
 (0607) (internal): rename 'state' field to 'cstate', and 'type' to
'ctype'; add gnut_connection_kill_worst()

v0.4.2 2000.06.07
------
 (0607) Add 'stats_format' config parameter, which makes the
connection stats look more like the original Windows Gnutella.
 (internal) add droprate()

v0.4.1 2000.06.07
------

First version after Robert Munafo began maintenence. 0.4.1 is actually
the same as 0.3.29, but many files have tabs changed to spaces. This
is to make it easier to track changes in CVS when, eventually, the
sources are put into CVS.


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 pkgsrc/net/gnut/Makefile
cvs rdiff -r1.2 -r1.3 pkgsrc/net/gnut/files/md5
cvs rdiff -r1.1 -r1.2 pkgsrc/net/gnut/files/patch-sum
cvs rdiff -r1.1 -r1.2 pkgsrc/net/gnut/patches/patch-ab
cvs rdiff -r0 -r1.1 pkgsrc/net/gnut/patches/patch-ad

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.