summaryrefslogtreecommitdiff
path: root/package/tor/patches
diff options
context:
space:
mode:
Diffstat (limited to 'package/tor/patches')
-rw-r--r--package/tor/patches/patch-configure12
-rw-r--r--package/tor/patches/patch-contrib_suse_tor_sh11
-rw-r--r--package/tor/patches/patch-contrib_tor_sh11
-rw-r--r--package/tor/patches/patch-contrib_torctl27
-rw-r--r--package/tor/patches/patch-src_common_util_h33
-rw-r--r--package/tor/patches/patch-src_or_eventdns_c18
-rw-r--r--package/tor/patches/patch-tor_spec11
7 files changed, 100 insertions, 23 deletions
diff --git a/package/tor/patches/patch-configure b/package/tor/patches/patch-configure
deleted file mode 100644
index b87f3dde8..000000000
--- a/package/tor/patches/patch-configure
+++ /dev/null
@@ -1,12 +0,0 @@
-$Id$
---- tor-0.1.1.26.orig/configure 2006-12-15 01:12:11.000000000 +0100
-+++ tor-0.1.1.26/configure 2007-02-17 21:46:29.000000000 +0100
-@@ -15193,7 +15193,7 @@ _ACEOF
- # 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
-- CFLAGS="$CFLAGS -Wall -g -O2"
-+ CFLAGS="$CFLAGS -Wall"
- else
- CFLAGS="$CFLAGS -g -O"
- fi
diff --git a/package/tor/patches/patch-contrib_suse_tor_sh b/package/tor/patches/patch-contrib_suse_tor_sh
new file mode 100644
index 000000000..2bc55db33
--- /dev/null
+++ b/package/tor/patches/patch-contrib_suse_tor_sh
@@ -0,0 +1,11 @@
+--- tor-0.2.1.20.orig/contrib/suse/tor.sh 2009-10-15 18:16:23.000000000 +0200
++++ tor-0.2.1.20/contrib/suse/tor.sh 2009-12-03 23:45:45.000000000 +0100
+@@ -43,7 +43,7 @@ rc_reset
+ # Increase open file descriptors a reasonable amount
+ ulimit -n 8192
+
+-TORCTL=/usr/local/bin/torctl
++TORCTL=/usr/bin/torctl
+
+ # torctl will use these environment variables
+ TORUSER=_tor
diff --git a/package/tor/patches/patch-contrib_tor_sh b/package/tor/patches/patch-contrib_tor_sh
new file mode 100644
index 000000000..4f953b0fd
--- /dev/null
+++ b/package/tor/patches/patch-contrib_tor_sh
@@ -0,0 +1,11 @@
+--- tor-0.2.1.20.orig/contrib/tor.sh 2009-10-15 18:16:22.000000000 +0200
++++ tor-0.2.1.20/contrib/tor.sh 2009-12-03 23:45:44.000000000 +0100
+@@ -26,7 +26,7 @@ fi
+ # Increase open file descriptors a reasonable amount
+ ulimit -n 8192
+
+-TORCTL=/usr/local/bin/torctl
++TORCTL=/usr/bin/torctl
+
+ # torctl will use these environment variables
+ TORUSER=_tor
diff --git a/package/tor/patches/patch-contrib_torctl b/package/tor/patches/patch-contrib_torctl
new file mode 100644
index 000000000..b531711db
--- /dev/null
+++ b/package/tor/patches/patch-contrib_torctl
@@ -0,0 +1,27 @@
+--- tor-0.2.1.20.orig/contrib/torctl 2009-10-15 18:16:22.000000000 +0200
++++ tor-0.2.1.20/contrib/torctl 2009-12-03 23:45:44.000000000 +0100
+@@ -24,19 +24,19 @@
+ EXEC=tor
+ #
+ # the path to your binary, including options if necessary
+-TORBIN="/usr/local/bin/$EXEC"
++TORBIN="/usr/bin/$EXEC"
+ #
+ # the path to the configuration file
+-TORCONF="/usr/local/etc/tor/torrc"
++TORCONF="/etc/tor/torrc"
+ #
+ # the path to your PID file
+-PIDFILE="/usr/local/var/run/tor/tor.pid"
++PIDFILE="/var/run/tor/tor.pid"
+ #
+ # The path to the log file
+-LOGFILE="/usr/local/var/log/tor/tor.log"
++LOGFILE="/var/log/tor/tor.log"
+ #
+ # The path to the datadirectory
+-TORDATA="/usr/local/var/lib/tor"
++TORDATA="/var/lib/tor"
+ #
+ TORARGS="--pidfile $PIDFILE --log \"notice file $LOGFILE\" --runasdaemon 1"
+ TORARGS="$TORARGS --datadirectory $TORDATA"
diff --git a/package/tor/patches/patch-src_common_util_h b/package/tor/patches/patch-src_common_util_h
index 4052d16f1..f6607ffc1 100644
--- a/package/tor/patches/patch-src_common_util_h
+++ b/package/tor/patches/patch-src_common_util_h
@@ -1,12 +1,23 @@
-$Id$
---- tor-0.1.1.26.orig/src/common/util.h 2006-09-24 19:47:57.000000000 +0200
-+++ tor-0.1.1.26/src/common/util.h 2007-02-17 23:09:46.000000000 +0100
-@@ -36,7 +36,7 @@
- * And I'm not just saying that because some of our asserts check
- * security-critical properties.
- */
+--- tor-0.2.1.20.orig/src/common/util.h 2009-06-19 08:13:53.000000000 +0200
++++ tor-0.2.1.20/src/common/util.h 2009-12-03 23:47:21.000000000 +0100
+@@ -24,20 +24,6 @@
+ #define O_TEXT 0
+ #endif
+
+-/* Replace assert() with a variant that sends failures to the log before
+- * calling assert() normally.
+- */
+-#ifdef NDEBUG
+-/* Nobody should ever want to build with NDEBUG set. 99% of our asserts will
+- * be outside the critical path anyway, so it's silly to disable bug-checking
+- * throughout the entire program just because a few asserts are slowing you
+- * down. Profile, optimize the critical path, and keep debugging on.
+- *
+- * And I'm not just saying that because some of our asserts check
+- * security-critical properties.
+- */
-#error "Sorry; we don't support building with NDEBUG."
-+#define tor_assert(expr) ((void)(0))
- #else
- #define tor_assert(expr) do { \
- if (!(expr)) { \
+-#endif
+
+ /** Like assert(3), but send assertion failures to the log as well as to
+ * stderr. */
diff --git a/package/tor/patches/patch-src_or_eventdns_c b/package/tor/patches/patch-src_or_eventdns_c
new file mode 100644
index 000000000..138469f09
--- /dev/null
+++ b/package/tor/patches/patch-src_or_eventdns_c
@@ -0,0 +1,18 @@
+--- tor-0.2.1.20.orig/src/or/eventdns.c 2009-09-17 08:02:18.000000000 +0200
++++ tor-0.2.1.20/src/or/eventdns.c 2009-12-03 23:49:27.000000000 +0100
+@@ -375,7 +375,6 @@ error_is_eagain(int err)
+ #define TOLOWER(c) TOR_TOLOWER(c)
+ #define TOUPPER(c) TOR_TOUPPER(c)
+
+-#ifndef NDEBUG
+ static const char *
+ debug_ntoa(u32 address)
+ {
+@@ -404,7 +403,6 @@ debug_ntop(const struct sockaddr *sa)
+ }
+ return "<unknown>";
+ }
+-#endif
+
+ static evdns_debug_log_fn_type evdns_log_fn = NULL;
+
diff --git a/package/tor/patches/patch-tor_spec b/package/tor/patches/patch-tor_spec
new file mode 100644
index 000000000..a4bc4adaa
--- /dev/null
+++ b/package/tor/patches/patch-tor_spec
@@ -0,0 +1,11 @@
+--- tor-0.2.1.20.orig/tor.spec 2009-10-15 18:16:22.000000000 +0200
++++ tor-0.2.1.20/tor.spec 2009-12-03 23:45:44.000000000 +0100
+@@ -101,7 +101,7 @@
+ %endif
+
+ %if %{!?_localstatedir:1}%{?_localstatedir:0}
+-%define _localstatedir /usr/local/var
++%define _localstatedir /var
+ %endif
+
+ ## Package information