mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-11 05:03:34 +01:00
0d4237839b
The IPFire people provide a tool that collects data from several top-level sources, combines it into a single database, and annotates it with optional overrides. This tool transforms the "dump" format of their database into the form Tor expects.
17 lines
275 B
Bash
Executable File
17 lines
275 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
DIR=$(cd "$(dirname "$0")" && pwd)
|
|
TMP=$(mktemp -d)
|
|
|
|
location update
|
|
location dump "$TMP/geoip-dump.txt"
|
|
|
|
OLDDIR=$(pwd)
|
|
cd "$DIR/geoip-db-tool/"
|
|
cargo build --release
|
|
cd "$OLDDIR"
|
|
|
|
"$DIR/geoip-db-tool/target/release/geoip-db-tool" -i "$TMP/geoip-dump.txt"
|