pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/tor Update tor to 0.1.2.17.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e42d878df0b7
branches:  trunk
changeset: 533221:e42d878df0b7
user:      obache <obache%pkgsrc.org@localhost>
date:      Tue Sep 11 15:53:57 2007 +0000

description:
Update tor to 0.1.2.17.

Changes in version 0.1.2.17 - 2007-08-30
  o Major bugfixes (security):
    - We removed support for the old (v0) control protocol. It has been
      deprecated since Tor 0.1.1.1-alpha, and keeping it secure has
      become more of a headache than it's worth.

  o Major bugfixes (load balancing):
    - When choosing nodes for non-guard positions, weight guards
      proportionally less, since they already have enough load. Patch
      from Mike Perry.
    - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
      will allow fast Tor servers to get more attention.
    - When we're upgrading from an old Tor version, forget our current
      guards and pick new ones according to the new weightings. These
      three load balancing patches could raise effective network capacity
      by a factor of four. Thanks to Mike Perry for measurements.

  o Major bugfixes (stream expiration):
    - Expire not-yet-successful application streams in all cases if
      they've been around longer than SocksTimeout. Right now there are
      some cases where the stream will live forever, demanding a new
      circuit every 15 seconds. Fixes bug 454; reported by lodger.

  o Minor features (controller):
    - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
      is valid before any authentication has been received. It tells
      a controller what kind of authentication is expected, and what
      protocol is spoken. Implements proposal 119.

  o Minor bugfixes (performance):
    - Save on most routerlist_assert_ok() calls in routerlist.c, thus
      greatly speeding up loading cached-routers from disk on startup.
    - Disable sentinel-based debugging for buffer code: we squashed all
      the bugs that this was supposed to detect a long time ago, and now
      its only effect is to change our buffer sizes from nice powers of
      two (which platform mallocs tend to like) to values slightly over
      powers of two (which make some platform mallocs sad).

  o Minor bugfixes (misc):
    - If exit bandwidth ever exceeds one third of total bandwidth, then
      use the correct formula to weight exit nodes when choosing paths.
      Based on patch from Mike Perry.
    - Choose perfectly fairly among routers when choosing by bandwidth and
      weighting by fraction of bandwidth provided by exits. Previously, we
      would choose with only approximate fairness, and correct ourselves
      if we ran off the end of the list.
    - If we require CookieAuthentication but we fail to write the
      cookie file, we would warn but not exit, and end up in a state
      where no controller could authenticate. Now we exit.
    - If we require CookieAuthentication, stop generating a new cookie
      every time we change any piece of our config.
    - Refuse to start with certain directory authority keys, and
      encourage people using them to stop.
    - Terminate multi-line control events properly. Original patch
      from tup.
    - Fix a minor memory leak when we fail to find enough suitable
      servers to choose a circuit.
    - Stop leaking part of the descriptor when we run into a particularly
      unparseable piece of it.

diffstat:

 net/tor/Makefile         |  16 ++++++++--------
 net/tor/distinfo         |  10 +++++-----
 net/tor/patches/patch-ae |   8 ++++----
 3 files changed, 17 insertions(+), 17 deletions(-)

diffs (84 lines):

diff -r 7b1da6623c33 -r e42d878df0b7 net/tor/Makefile
--- a/net/tor/Makefile  Tue Sep 11 15:26:14 2007 +0000
+++ b/net/tor/Makefile  Tue Sep 11 15:53:57 2007 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.45 2007/09/11 15:26:14 obache Exp $
+# $NetBSD: Makefile,v 1.46 2007/09/11 15:53:57 obache Exp $
 #
 
-DISTNAME=              tor-0.1.2.16
-PKGREVISION=           1
+DISTNAME=              tor-0.1.2.17
 CATEGORIES=            net security
 MASTER_SITES=          http://tor.eff.org/dist/
 
@@ -16,9 +15,14 @@
 USE_PKGLOCALEDIR=      yes
 GNU_CONFIGURE=         yes
 
+CONFIGURE_ENV+=                CPP=${CPP:Q}
+
+TEST_TARGET=           check
+
 TOR_USER?=             tor
 TOR_GROUP?=            tor
-PKG_HOME?=             /var/chroot/tor
+PKG_HOME?=             ${VARBASE}/chroot/tor
+BUILD_DEFS+=           VARBASE
 
 PKG_GROUPS_VARS+=      TOR_GROUP
 PKG_USERS_VARS+=       TOR_USER
@@ -51,12 +55,8 @@
                ${PREFIX}/share/examples/tor/torrc.sample
        ${INSTALL_DATA} ${WRKSRC}/contrib/tor-tsocks.conf               \
                ${PREFIX}/share/examples/tor/tor-tsocks.conf
-       ${INSTALL_DATA_DIR} ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}
 
 BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1a
-# XXX the pkgsrc libevent builtin.mk does not detect the version of a builtin
-# libevent, so we need to force use of the pkgsrc one
-USE_BUILTIN.libevent=  no
 .include "../../devel/libevent/buildlink3.mk"
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../security/openssl/buildlink3.mk"
diff -r 7b1da6623c33 -r e42d878df0b7 net/tor/distinfo
--- a/net/tor/distinfo  Tue Sep 11 15:26:14 2007 +0000
+++ b/net/tor/distinfo  Tue Sep 11 15:53:57 2007 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.24 2007/08/09 19:33:58 drochner Exp $
+$NetBSD: distinfo,v 1.25 2007/09/11 15:53:57 obache Exp $
 
-SHA1 (tor-0.1.2.16.tar.gz) = f8eb950612db49b2f7176c068ca69e0091950bdb
-RMD160 (tor-0.1.2.16.tar.gz) = 813a8726470361ee6629e71a10be67be9cfdd325
-Size (tor-0.1.2.16.tar.gz) = 1254796 bytes
+SHA1 (tor-0.1.2.17.tar.gz) = 01092fb75c407b5c1d7f33db069cf7641973d94d
+RMD160 (tor-0.1.2.17.tar.gz) = 7ec316cdcc57ab5e817af1dcda913438b332f7e3
+Size (tor-0.1.2.17.tar.gz) = 1251636 bytes
 SHA1 (patch-ac) = adcc070e4d522143c4d882bd13436cd2b71f289b
 SHA1 (patch-ad) = 72a68cbd00a5febdff82ba9268bdad2b47ea8159
-SHA1 (patch-ae) = 6697fd7fdf5ecf5a1ae40db2d40dee1a169c324a
+SHA1 (patch-ae) = 82977c38f18942de883a17d285ad9addd95e02f7
diff -r 7b1da6623c33 -r e42d878df0b7 net/tor/patches/patch-ae
--- a/net/tor/patches/patch-ae  Tue Sep 11 15:26:14 2007 +0000
+++ b/net/tor/patches/patch-ae  Tue Sep 11 15:53:57 2007 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ae,v 1.3 2007/08/09 19:33:58 drochner Exp $
+$NetBSD: patch-ae,v 1.4 2007/09/11 15:53:58 obache Exp $
 
---- configure.orig     2007-07-12 13:12:23.000000000 +0200
+--- configure.orig     2007-08-30 21:01:38.000000000 +0000
 +++ configure
-@@ -5345,6 +5345,8 @@ done
+@@ -5356,6 +5356,8 @@ done
  
  fi
  
@@ -11,7 +11,7 @@
  
  { echo "$as_me:$LINENO: checking for u_int64_t" >&5
  echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
-@@ -5598,6 +5600,7 @@ _ACEOF
+@@ -5609,6 +5611,7 @@ _ACEOF
  
  fi
  



Home | Main Index | Thread Index | Old Index