summaryrefslogtreecommitdiff
path: root/net/tor
diff options
context:
space:
mode:
authorwiz <wiz>2008-08-01 17:23:21 +0000
committerwiz <wiz>2008-08-01 17:23:21 +0000
commit56f072a19bb3e2eb438d877ef02e6d5f24370428 (patch)
tree0f1145e002b91e42f6f7550bd4cbc7eb90549aa2 /net/tor
parentc446ee7be6d2acfefade4957ad84ade4d8b56f28 (diff)
downloadpkgsrc-56f072a19bb3e2eb438d877ef02e6d5f24370428.tar.gz
Update to current stable version, tor-0.2.0.30, based on wip/tor.
Thanks to athaba, netcap, and tvierling. Changes in version 0.2.0.30 - 2008-07-15 This new stable release switches to a more efficient directory distribution design, adds features to make connections to the Tor network harder to block, allows Tor to act as a DNS proxy, adds separate rate limiting for relayed traffic to make it easier for clients to become relays, fix a variety of potential anonymity problems, and includes the usual huge pile of other features and bug fixes.
Diffstat (limited to 'net/tor')
-rw-r--r--net/tor/MESSAGE9
-rw-r--r--net/tor/Makefile22
-rw-r--r--net/tor/PLIST6
-rw-r--r--net/tor/distinfo13
-rw-r--r--net/tor/options.mk4
-rw-r--r--net/tor/patches/patch-aa13
-rw-r--r--net/tor/patches/patch-ab13
-rw-r--r--net/tor/patches/patch-ac13
-rw-r--r--net/tor/patches/patch-ad13
-rw-r--r--net/tor/patches/patch-ae21
10 files changed, 52 insertions, 75 deletions
diff --git a/net/tor/MESSAGE b/net/tor/MESSAGE
index 9ca72242a0b..a787aa22946 100644
--- a/net/tor/MESSAGE
+++ b/net/tor/MESSAGE
@@ -1,15 +1,10 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.5 2008/01/06 19:56:54 jschauma Exp $
+$NetBSD: MESSAGE,v 1.6 2008/08/01 17:23:21 wiz Exp $
You probably want to install www/privoxy to torify your browsers. Please
-see https://wiki.torproject.org/noreply/TheOnionRouter/TorifyHOWTO/WebBrowsers
-for details.
+see https://wiki.torproject.org/wiki/TheOnionRouter/TorifyHOWTO for details.
Other applications can be torified with the help of libtsocks (net/tsocks).
A tsocks configuration file for this is installed as
${PREFIX}/share/examples/tor/tor-tsocks.conf.
-
-If you wish to chroot tor, you may find the following URLs helpful:
- http://pestilenz.org/~bauerm/tor-openbsd-howto.html
- http://wiki.noreply.org/wiki/TheOnionRouter/TorInChroot
===========================================================================
diff --git a/net/tor/Makefile b/net/tor/Makefile
index c5e3b2f191f..b8ad131a727 100644
--- a/net/tor/Makefile
+++ b/net/tor/Makefile
@@ -1,12 +1,11 @@
-# $NetBSD: Makefile,v 1.53 2008/04/22 18:06:09 tnn Exp $
+# $NetBSD: Makefile,v 1.54 2008/08/01 17:23:21 wiz Exp $
#
-DISTNAME= tor-0.1.2.19
-PKGREVISION= 1
+DISTNAME= tor-0.2.0.30
CATEGORIES= net security
MASTER_SITES= http://www.torproject.org/dist/
-MAINTAINER= pkgsrc-users@NetBSD.org
+MAINTAINER= athaba@inode.at
HOMEPAGE= http://www.torproject.org/
COMMENT= Anonymizing overlay network for TCP
@@ -33,15 +32,12 @@ PKG_USERS_VARS+= TOR_USER
RCD_SCRIPTS= tor
RCD_SCRIPT_SRC.tor= ${FILESDIR}/tor.in
PKG_GROUPS= ${TOR_GROUP}
-PKG_USERS= ${TOR_USER}:${TOR_GROUP}
-PKG_GECOS.${TOR_USER}= Torifier
-PKG_HOME.${TOR_USER}= ${PKG_HOME}
+PKG_USERS= ${TOR_USER}:${TOR_GROUP}::Torifier:${PKG_HOME}
USER_GROUP= ${TOR_USER} ${TOR_GROUP}
OWN_DIRS_PERMS+= ${PKG_HOME} ${USER_GROUP} 0700
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
-CONFIGURE_ARGS+= --with-libevent-dir=${BUILDLINK_PREFIX.libevent:Q}
CONF_FILES+= ${PREFIX}/share/examples/tor/tor-tsocks.conf \
${PKG_SYSCONFDIR}/tor-tsocks.conf
@@ -53,19 +49,23 @@ FILES_SUBST+= TOR_USER=${TOR_USER:Q} TOR_GROUP=${TOR_GROUP:Q}
CHECK_PORTABILITY_SKIP+=contrib/*
+.if !empty(PKGSRC_COMPILER:Mmipspro)
+CFLAGS+= -c99
+.endif
+
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tor
${INSTALL_DATA} ${WRKSRC}/src/config/torrc.sample \
${PREFIX}/share/examples/tor/torrc.sample
${INSTALL_DATA} ${WRKSRC}/contrib/tor-tsocks.conf \
${PREFIX}/share/examples/tor/tor-tsocks.conf
+ -${RMDIR} ${PREFIX}/etc/tor/tor
-BUILDLINK_API_DEPENDS.libevent+= libevent>=1.1a
-
+BUILDLINK_API_DEPENDS.libevent+= libevent>=1.2
.include "../../devel/libevent/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
-.include "../../mk/pthread.buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
## We include this after other b3.mk files since we use PTHREAD_TYPE.
##
diff --git a/net/tor/PLIST b/net/tor/PLIST
index 22a462e7f80..e333c4eea90 100644
--- a/net/tor/PLIST
+++ b/net/tor/PLIST
@@ -1,11 +1,15 @@
-@comment $NetBSD: PLIST,v 1.6 2006/05/26 02:21:41 jschauma Exp $
+@comment $NetBSD: PLIST,v 1.7 2008/08/01 17:23:21 wiz Exp $
bin/tor
+bin/tor-gencert
bin/tor-resolve
bin/torify
+man/man1/tor-gencert.1
man/man1/tor-resolve.1
man/man1/tor.1
man/man1/torify.1
share/examples/rc.d/tor
share/examples/tor/tor-tsocks.conf
share/examples/tor/torrc.sample
+share/tor/geoip
+@dirrm share/tor
@dirrm share/examples/tor
diff --git a/net/tor/distinfo b/net/tor/distinfo
index 9b3db1691af..0d2a6af4197 100644
--- a/net/tor/distinfo
+++ b/net/tor/distinfo
@@ -1,8 +1,7 @@
-$NetBSD: distinfo,v 1.28 2008/02/19 13:48:12 obache Exp $
+$NetBSD: distinfo,v 1.29 2008/08/01 17:23:21 wiz Exp $
-SHA1 (tor-0.1.2.19.tar.gz) = 5022dab0de2499e2c6638e1a2e9eee6c79fb707c
-RMD160 (tor-0.1.2.19.tar.gz) = 4f1b5474a4bbad2e3c82ef0fce2dd838907e48d5
-Size (tor-0.1.2.19.tar.gz) = 1264275 bytes
-SHA1 (patch-ac) = adcc070e4d522143c4d882bd13436cd2b71f289b
-SHA1 (patch-ad) = 72a68cbd00a5febdff82ba9268bdad2b47ea8159
-SHA1 (patch-ae) = ca9bb6a0a4c4d9ce260add9f0b14a16fb4a455e1
+SHA1 (tor-0.2.0.30.tar.gz) = c6fbb3bf0141f4b34cc90845373b3dfa8b47ddc4
+RMD160 (tor-0.2.0.30.tar.gz) = e51a38aa1531076bc9722e1584403f917d207dd0
+Size (tor-0.2.0.30.tar.gz) = 2155463 bytes
+SHA1 (patch-aa) = 630e1e0a9591c136987b504e73c64ff9f53b54e9
+SHA1 (patch-ab) = 3363efdcf8b9918c1249add1046077f2323a11ff
diff --git a/net/tor/options.mk b/net/tor/options.mk
index 31aac5342cc..93622746e4e 100644
--- a/net/tor/options.mk
+++ b/net/tor/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.2 2007/12/16 21:51:54 rillig Exp $
+# $NetBSD: options.mk,v 1.3 2008/08/01 17:23:21 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.tor
PKG_SUPPORTED_OPTIONS= threads
@@ -6,8 +6,8 @@ PKG_SUPPORTED_OPTIONS= threads
.if !empty(PTHREAD_TYPE:Mnative)
PKG_SUGGESTED_OPTIONS+= threads
.endif
-.include "../../mk/bsd.options.mk"
+.include "../../mk/bsd.options.mk"
###
### This enables new code for threaded operation on NetBSD, OpenBSD, etc.
diff --git a/net/tor/patches/patch-aa b/net/tor/patches/patch-aa
new file mode 100644
index 00000000000..88a45a1e4fa
--- /dev/null
+++ b/net/tor/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.3 2008/08/01 17:23:21 wiz Exp $
+
+--- contrib/Makefile.in.orig 2008-06-03 21:41:27.000000000 +0200
++++ contrib/Makefile.in
+@@ -185,7 +185,7 @@ SUBDIRS = osx suse
+ DIST_SUBDIRS = osx suse
+ confdir = $(sysconfdir)/tor
+ EXTRA_DIST = exitlist tor-tsocks.conf torify.1 tor.nsi.in tor.sh torctl rc.subr cross.sh tor-mingw.nsi.in package_nsis-mingw.sh tor.ico tor-ctrl.sh linux-tor-prio.sh tor-exit-notice.html
+-conf_DATA = tor-tsocks.conf
++#conf_DATA = tor-tsocks.conf
+ bin_SCRIPTS = torify
+ man_MANS = torify.1
+ all: all-recursive
diff --git a/net/tor/patches/patch-ab b/net/tor/patches/patch-ab
new file mode 100644
index 00000000000..df3312b9043
--- /dev/null
+++ b/net/tor/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.3 2008/08/01 17:23:21 wiz Exp $
+
+--- src/config/Makefile.in.orig 2008-06-03 21:41:28.000000000 +0200
++++ src/config/Makefile.in
+@@ -166,7 +166,7 @@ top_srcdir = @top_srcdir@
+ confdir = $(sysconfdir)/tor
+ tordatadir = $(datadir)/tor
+ EXTRA_DIST = geoip
+-conf_DATA = torrc.sample
++#conf_DATA = torrc.sample
+ tordata_DATA = geoip
+ all: all-am
+
diff --git a/net/tor/patches/patch-ac b/net/tor/patches/patch-ac
deleted file mode 100644
index b7ba79768c1..00000000000
--- a/net/tor/patches/patch-ac
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ac,v 1.4 2007/08/09 19:33:58 drochner Exp $
-
---- contrib/Makefile.in.orig 2007-05-25 02:52:01.000000000 +0200
-+++ contrib/Makefile.in
-@@ -176,7 +176,7 @@ SUBDIRS = osx suse
- DIST_SUBDIRS = osx suse
- confdir = $(sysconfdir)/tor
- EXTRA_DIST = exitlist tor-tsocks.conf torify.1 TorControl.py tor.nsi.in tor.sh torctl rc.subr ExerciseServer.py PathDemo.py cross.sh tor-mingw.nsi.in package_nsis-mingw.sh tor.ico
--conf_DATA = tor-tsocks.conf
-+#conf_DATA = tor-tsocks.conf
- bin_SCRIPTS = torify
- man_MANS = torify.1
- all: all-recursive
diff --git a/net/tor/patches/patch-ad b/net/tor/patches/patch-ad
deleted file mode 100644
index c5a7939fa40..00000000000
--- a/net/tor/patches/patch-ad
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ad,v 1.3 2007/08/09 19:33:58 drochner Exp $
-
---- src/config/Makefile.in.orig 2007-05-25 02:52:01.000000000 +0200
-+++ src/config/Makefile.in
-@@ -155,7 +155,7 @@ top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
- confdir = $(sysconfdir)/tor
- EXTRA_DIST =
--conf_DATA = torrc.sample
-+#conf_DATA = torrc.sample
- all: all-am
-
- .SUFFIXES:
diff --git a/net/tor/patches/patch-ae b/net/tor/patches/patch-ae
deleted file mode 100644
index 88f9c637e53..00000000000
--- a/net/tor/patches/patch-ae
+++ /dev/null
@@ -1,21 +0,0 @@
-$NetBSD: patch-ae,v 1.6 2008/02/19 13:48:12 obache Exp $
-
---- configure.orig 2008-01-17 19:49:56.000000000 +0000
-+++ configure
-@@ -5497,6 +5497,8 @@ fi
-
- done
-
-+# these checks don't work, assume types are present
-+if false; then
-
- { echo "$as_me:$LINENO: checking for u_int64_t" >&5
- echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
-@@ -5750,6 +5752,7 @@ _ACEOF
-
- fi
-
-+fi
-
- { echo "$as_me:$LINENO: checking for libevent directory" >&5
- echo $ECHO_N "checking for libevent directory... $ECHO_C" >&6; }