Commit 65ed05ed authored by Peter Palfrader's avatar Peter Palfrader Committed by Roger Dingledine
Browse files

Forward port patches/06_add_compile_time_defaults.dpatch

parent a57b9877
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2,8 +2,9 @@ tor (0.2.2.1-alpha-1) experimental; urgency=low

  * New upstream version.
  * Forward port patches/03_tor_manpage_in_section_8.dpatch.
  * Forward port patches/06_add_compile_time_defaults.dpatch.

 -- Peter Palfrader <weasel@debian.org>  Thu, 03 Sep 2009 15:06:58 +0200
 -- Peter Palfrader <weasel@debian.org>  Thu, 03 Sep 2009 15:10:26 +0200

tor (0.2.1.19-1) unstable; urgency=low

+11 −10
Original line number Diff line number Diff line
@@ -23,9 +23,9 @@ esac
exit 0

@DPATCH@
diff -urNad tor-trunk~/src/or/config.c tor-trunk/src/or/config.c
--- tor-trunk~/src/or/config.c	2009-01-18 01:47:33.000000000 +0100
+++ tor-trunk/src/or/config.c	2009-02-05 00:25:17.614844812 +0100
diff -urNad tor~/src/or/config.c tor/src/or/config.c
--- tor~/src/or/config.c	2009-09-03 15:05:41.000000000 +0200
+++ tor/src/or/config.c	2009-09-03 15:09:37.662104166 +0200
@@ -12,6 +12,7 @@
 #define CONFIG_PRIVATE
 
@@ -34,16 +34,17 @@ diff -urNad tor-trunk~/src/or/config.c tor-trunk/src/or/config.c
 #ifdef MS_WINDOWS
 #include <shlobj.h>
 #endif
@@ -711,6 +712,8 @@
 #if defined(HAVE_EVENT_GET_VERSION) && defined(HAVE_EVENT_GET_METHOD)
 static void check_libevent_version(const char *m, int server);
 #endif
@@ -717,6 +718,9 @@
 static void init_libevent(void);
 static int opt_streq(const char *s1, const char *s2);
 
+static int debian_running_as_debiantor();
+static int debian_config_fix_defaults();
 
+
 /** Magic value for or_options_t. */
 #define OR_OPTIONS_MAGIC 9090909
@@ -3917,6 +3920,9 @@
 
@@ -4086,6 +4090,9 @@
   char *command_arg = NULL;
   char *errmsg=NULL;
 
@@ -53,7 +54,7 @@ diff -urNad tor-trunk~/src/or/config.c tor-trunk/src/or/config.c
   if (argv) { /* first time we're called. save command line args */
     backup_argv = argv;
     backup_argc = argc;
@@ -5307,3 +5313,62 @@
@@ -5304,3 +5311,62 @@
   return 0;
 }