diff --git a/debian/changelog b/debian/changelog index 41d6efe351..5fc09a0d8b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +tor (0.2.0.0-alpha-1~~pre.1) unstable; urgency=low + + * svn r10063. + * Forward port 06_add_compile_time_defaults. + + -- Peter Palfrader Mon, 30 Apr 2007 17:00:11 +0200 + tor (0.1.2.13-2) unstable; urgency=low * In options_init_from_torrc()'s error path only config_free() options diff --git a/debian/patches/06_add_compile_time_defaults.dpatch b/debian/patches/06_add_compile_time_defaults.dpatch index b763eb7a8f..27d4b1e51c 100755 --- a/debian/patches/06_add_compile_time_defaults.dpatch +++ b/debian/patches/06_add_compile_time_defaults.dpatch @@ -23,29 +23,27 @@ esac exit 0 @DPATCH@ -diff -urNad tor-debian~/src/or/config.c tor-debian/src/or/config.c ---- tor-debian~/src/or/config.c 2007-03-06 21:52:33.000000000 +0100 -+++ tor-debian/src/or/config.c 2007-04-27 13:05:42.420147495 +0200 -@@ -12,6 +12,7 @@ - **/ +diff -urNad tor-trunk/src/or/config.c /tmp/dpep.YE8t73/tor-trunk/src/or/config.c +--- tor-trunk/src/or/config.c 2007-04-29 04:11:46.261474906 +0200 ++++ /tmp/dpep.YE8t73/tor-trunk/src/or/config.c 2007-04-29 04:12:24.827577276 +0200 +@@ -14,6 +14,7 @@ + #define CONFIG_PRIVATE #include "or.h" +#include #ifdef MS_WINDOWS #include #endif -@@ -592,6 +593,10 @@ +@@ -595,6 +596,8 @@ + #if defined(HAVE_EVENT_GET_VERSION) && defined(HAVE_EVENT_GET_METHOD) static void check_libevent_version(const char *m, int server); #endif - +static int debian_running_as_debiantor(); +static int debian_config_fix_defaults(); -+ -+ - /*static*/ or_options_t *options_new(void); /** Magic value for or_options_t. */ -@@ -2982,7 +2987,7 @@ + #define OR_OPTIONS_MAGIC 9090909 +@@ -2991,7 +2994,7 @@ int options_init_from_torrc(int argc, char **argv) { @@ -54,7 +52,7 @@ diff -urNad tor-debian~/src/or/config.c tor-debian/src/or/config.c config_line_t *cl; char *cf=NULL, *fname=NULL, *errmsg=NULL; int i, retval; -@@ -2991,6 +2996,9 @@ +@@ -3000,6 +3003,9 @@ static char **backup_argv; static int backup_argc; @@ -64,7 +62,7 @@ diff -urNad tor-debian~/src/or/config.c tor-debian/src/or/config.c if (argv) { /* first time we're called. save commandline args */ backup_argv = argv; backup_argc = argc; -@@ -3120,7 +3128,8 @@ +@@ -3135,7 +3141,8 @@ err: tor_free(fname); torrc_fname = NULL; @@ -74,7 +72,7 @@ diff -urNad tor-debian~/src/or/config.c tor-debian/src/or/config.c if (errmsg) { log(LOG_WARN,LD_CONFIG,"Failed to parse/validate config: %s", errmsg); tor_free(errmsg); -@@ -4306,3 +4315,52 @@ +@@ -4320,3 +4327,52 @@ puts(routerparse_c_id); }