]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
include the geoip file in the tarball, and load it by default
authorRoger Dingledine <arma@torproject.org>
Wed, 28 May 2008 04:37:34 +0000 (04:37 +0000)
committerRoger Dingledine <arma@torproject.org>
Wed, 28 May 2008 04:37:34 +0000 (04:37 +0000)
when tor starts.
this breaks rpms and maybe other packages.

svn:r14764

LICENSE
src/config/Makefile.am
src/or/config.c

diff --git a/LICENSE b/LICENSE
index 57b838d9ee90c97cb644d0270cb2316f15273cc1..197c92a974158df87a72a9783b0d668322868ee4 100644 (file)
--- a/LICENSE
+++ b/LICENSE
@@ -77,4 +77,9 @@ If you got Tor as a static binary with OpenSSL included, then you should know:
  "This product includes software developed by the OpenSSL Project
  for use in the OpenSSL Toolkit (http://www.openssl.org/)"
 ===============================================================================
+"This program uses the IP-to-Country Database provided by
+WebHosting.Info (http://www.webhosting.info), available from
+http://ip-to-country.webhosting.info."
+See the src/config/geoip file in particular.
+===============================================================================
 
index 07e7cf26a9cda913880d32d2f75dd7f73de02573..21fba9177409e6d0750c474a76ac7d7cccdfa94f 100644 (file)
@@ -1,11 +1,12 @@
 confdir = $(sysconfdir)/tor
 
-#EXTRA_DIST = fallback-consensus
+EXTRA_DIST = fallback-consensus geoip
 
 conf_DATA = torrc.sample
 
-#data_DATA = fallback-consensus
+data_DATA = fallback-consensus geoip
 
 # If we don't have it, fake it.
 fallback-consensus:
        touch fallback-consensus
+
index 1d40fda1d518eb210adbd15618ca54c916709c51..74c500d3456c13cb5a271a4d90f468078f744f99 100644 (file)
@@ -198,7 +198,8 @@ static config_var_t _option_vars[] = {
   V(FetchServerDescriptors,      BOOL,     "1"),
   V(FetchHidServDescriptors,     BOOL,     "1"),
   V(FetchUselessDescriptors,     BOOL,     "0"),
-  V(GeoIPFile,                   STRING,   NULL),
+  V(GeoIPFile,                   STRING,
+    SHARE_DATADIR PATH_SEPARATOR "tor" PATH_SEPARATOR "geoip"),
   V(Group,                       STRING,   NULL),
   V(HardwareAccel,               BOOL,     "0"),
   V(HashedControlPassword,       LINELIST, NULL),