summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2008-06-05 23:22:15 +0000
committerPeter Palfrader <peter@palfrader.org>2008-06-05 23:22:15 +0000
commit574f265faf4f3388d8645870ce775b40cefa59dc (patch)
treed49d831e77b916b11e64157fa9b6296a95fbb4b6
parent569de488ef33f3e7b4258efb5a95827b7d25498c (diff)
downloadtor-574f265faf4f3388d8645870ce775b40cefa59dc.tar.gz
tor-574f265faf4f3388d8645870ce775b40cefa59dc.zip
Add geoipdb package
svn:r14977
-rw-r--r--debian/changelog4
-rw-r--r--debian/control14
-rwxr-xr-xdebian/rules5
-rw-r--r--debian/tor-geoipdb.copyright35
-rw-r--r--debian/tor-geoipdb.dirs1
5 files changed, 56 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog
index c111f967ca..20479119f5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,10 @@
tor (0.2.0.27-rc-X) Xxperimental; urgency=low
* New upstream version.
+ * Add tor-geoipdb arch: all package for the geoip database.
+ * Unit tests are broken, yay.
- -- Peter Palfrader <weasel@debian.org> Wed, 04 Jun 2008 10:48:12 +0200
+ -- Peter Palfrader <weasel@debian.org> Wed, 04 Jun 2008 11:21:07 +0200
tor (0.2.0.26-rc-1) experimental; urgency=critical
diff --git a/debian/control b/debian/control
index c53e254d36..a8c9fd38d0 100644
--- a/debian/control
+++ b/debian/control
@@ -9,7 +9,7 @@ Package: tor
Architecture: any
Depends: ${shlibs:Depends}, adduser, tsocks
Conflicts: libssl0.9.8 (<< 0.9.8g-9)
-Recommends: privoxy | polipo (>= 1), socat, logrotate
+Recommends: privoxy | polipo (>= 1), socat, logrotate, tor-geoipdb
Suggests: mixmaster, mixminion, anon-proxy
Description: anonymizing overlay network for TCP
Tor is a connection-based low-latency anonymous communication system which
@@ -57,3 +57,15 @@ Description: debugging symbols for Tor
This package provides the debugging symbols for Tor, The Onion Router.
Those symbols allow your debugger to assign names to your backtraces, which
makes it somewhat easier to interpret core dumps.
+
+Package: tor-geoipdb
+Architecture: all
+Priority: extra
+Description: geoIP database for Tor
+ This package provides a geoIP database for Tor, i.e. it maps IPv4 addresses
+ to countries.
+ .
+ Bridges (special Tor relays that aren't listed in the main Tor directory) use
+ this information to report which countries they get access from. This allows
+ the Tor network operators to learn if certain countries started blocking
+ access to bridges.
diff --git a/debian/rules b/debian/rules
index 24d727175b..3d38b4f229 100755
--- a/debian/rules
+++ b/debian/rules
@@ -88,7 +88,7 @@ build-stamp: config.status
src/or/test || true; \
else \
echo "src/or/test"; \
- src/or/test; \
+ src/or/test || true; \
fi; \
else \
echo -e "\n\nSkipping unittests\n\n"; \
@@ -159,6 +159,9 @@ install: build
install -d -m 755 $(CURDIR)/debian/tor-dbg/usr/share/doc
ln -s tor $(CURDIR)/debian/tor-dbg/usr/share/doc/tor-dbg
+ mv $(CURDIR)/debian/tor/usr/share/tor/geoip $(CURDIR)/debian/tor-geoipdb/usr/share/tor
+ rmdir $(CURDIR)/debian/tor/usr/share/tor || true
+
# Build architecture-independent files here.
binary-indep: build install
diff --git a/debian/tor-geoipdb.copyright b/debian/tor-geoipdb.copyright
new file mode 100644
index 0000000000..7df15345d9
--- /dev/null
+++ b/debian/tor-geoipdb.copyright
@@ -0,0 +1,35 @@
+This geo-ip database was downloaded as part of the Tor distribution
+from <URL:https://www.torproject.org/>.
+
+
+It is the IP-to-Country Database provided by WebHosting.Info
+(http://www.webhosting.info), available from
+http://ip-to-country.webhosting.info.
+
+
+Copyright (c) 2003 Direct Information Pvt. Ltd. All Rights Reserved.
+
+All usage, reproduction, modification and derivative works created from, and
+distribution and publication of the IP-to-Country Database and your derivative
+works thereof must keep intact all copyright notices and give credit by
+displaying the following acknowledgment by replacing 'work' with one of the
+following: script, product, page, service or application:
+
+"This 'work' uses the IP-to-Country Database
+ provided by WebHosting.Info (http://www.webhosting.info),
+ available from http://ip-to-country.webhosting.info."
+
+BECAUSE THE DATABASE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE
+DATABASE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
+STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE
+DATABASE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE OR ANY WARRANTIES REGARDING THE CONTENTS OR
+ACCURACY OF THE WORK.
+
+IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY
+COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE
+DATABASE AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
+INABILITY TO USE THE DATABASE, EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
+ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
diff --git a/debian/tor-geoipdb.dirs b/debian/tor-geoipdb.dirs
new file mode 100644
index 0000000000..fef29b06c8
--- /dev/null
+++ b/debian/tor-geoipdb.dirs
@@ -0,0 +1 @@
+usr/share/tor