OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
update: net/tor

bsdusrgmail.com
Date: Fri Aug 01 2008 - 09:58:36 CDT


This updates tor to the current stable version. It compiles and runs
on my i386 and alpha, but should probably be tested further.

This patch may be deficient somehow, I've never done this before.

diff -ur oldtor/Makefile tor/Makefile
--- oldtor/Makefile Sat Jan 19 11:03:21 2008
+++ tor/Makefile Fri Aug 1 09:25:41 2008
-2,9 +2,9

 COMMENT= anonymity service using onion routing

-DISTNAME= tor-0.1.2.19
+DISTNAME= tor-0.2.0.30
 CATEGORIES= net
-HOMEPAGE= http://tor.eff.org/
+HOMEPAGE= http://www.torproject.org/

 MAINTAINER= Rui Reis <ruiopenbsd.org>

diff -ur oldtor/distinfo tor/distinfo
--- oldtor/distinfo Sat Jan 19 11:03:21 2008
+++ tor/distinfo Fri Aug 1 09:26:20 2008
-1,5 +1,5
-MD5 (tor-0.1.2.19.tar.gz) = Sz+ZY7hDAQr1qjvWJm0R4A==
-RMD160 (tor-0.1.2.19.tar.gz) = TxtUdKS7rS48gu8Pzi3YOJB+SNU=
-SHA1 (tor-0.1.2.19.tar.gz) = UCLasN4kmeLGY44aLp7ubHn7cHw=
-SHA256 (tor-0.1.2.19.tar.gz) = flcZighY9bqGUddSJSSMhbYZ6QXw/027Rf/6LQOhqmE=
-SIZE (tor-0.1.2.19.tar.gz) = 1264275
+MD5 (tor-0.2.0.30.tar.gz) = 03tYLuNbT2lWSwY1pEm19g==
+RMD160 (tor-0.2.0.30.tar.gz) = 5Ro4qhUxB2vJci4VhEA/kX0gfdA=
+SHA1 (tor-0.2.0.30.tar.gz) = xvuzvwFB9LNMyQhFNzs9+otH3cQ=
+SHA256 (tor-0.2.0.30.tar.gz) = vJ6L+EHvZPiwbu+R7qtDD5EUejxNemkZgm+jOyBFM4c=
+SIZE (tor-0.2.0.30.tar.gz) = 2155463
Only in oldtor/patches: CVS
diff -ur oldtor/patches/patch-configure tor/patches/patch-configure
--- oldtor/patches/patch-configure Sun Nov 4 03:39:20 2007
+++ tor/patches/patch-configure Fri Aug 1 10:06:29 2008
-1,10 +1,9
-$OpenBSD: patch-configure,v 1.7 2007/11/04 08:39:20 rui Exp $
---- configure.orig Sun Oct 28 11:18:29 2007
-+++ configure Thu Nov 1 13:44:09 2007
- -17576,7 +17576,7 _ACEOF
+--- configure.orig Fri Aug 1 10:02:16 2008
++++ configure Fri Aug 1 10:05:45 2008
+ -19341,7 +19341,7
  # Set CFLAGS _after_ all the above checks, since our warnings are stricter
  # than autoconf's macros like.
- if test $ac_cv_c_compiler_gnu = yes; then
+ if test "$ac_cv_c_compiler_gnu" = yes; then
 - CFLAGS="$CFLAGS -Wall -g -O2"
 + CFLAGS="$CFLAGS -Wall"
  else
diff -ur oldtor/patches/patch-src_config_torrc_sample_in
tor/patches/patch-src_config_torrc_sample_in
--- oldtor/patches/patch-src_config_torrc_sample_in Sun Nov 4 03:39:20 2007
+++ tor/patches/patch-src_config_torrc_sample_in Fri Aug 1 10:01:45 2008
-1,7 +1,6
-$OpenBSD: patch-src_config_torrc_sample_in,v 1.6 2007/11/04 08:39:20 rui Exp $
---- src/config/torrc.sample.in.orig Fri May 25 01:51:41 2007
-+++ src/config/torrc.sample.in Thu Nov 1 13:44:09 2007
- -43,18 +43,18 SocksListenAddress 127.0.0.1 # accept connections only
+--- src/config/torrc.sample.in.orig Fri Aug 1 09:53:29 2008
++++ src/config/torrc.sample.in Fri Aug 1 09:53:13 2008
+ -37,18 +37,18
  ## Send every possible message to LOCALSTATEDIR/log/tor/debug.log
  #Log debug file LOCALSTATEDIR/log/tor/debug.log
  ## Use the system log instead of Tor's logfiles
-23,9 +22,9

  ## The port on which Tor will listen for local connections from Tor
  ## controller applications, as documented in control-spec.txt.
- -142,3 +142,6 SocksListenAddress 127.0.0.1 # accept connections only
- #ExitPolicy accept *:119 # accept nntp as well as default exit policy
- #ExitPolicy reject *:* # no exits allowed
+ -148,3 +148,6
+ #RelayBandwidthRate 50KBytes
+ #ExitPolicy reject *:*

 +## Revoke privileges
 +User _tor