Skip to content

Commit

Permalink
Geoip2 (#65)
Browse files Browse the repository at this point in the history
* Use maxminddb lib instead legacy geoip

* Update docs

* Update win32 makefile

* Support geoip legacy and geoip2

* libmaxminddb 1.4.3

* make geoip compiling

* set vars in makefile via env

* use geoip lib package distribution

* ignore generated .libs

* compile .cpp with g++ and .c with cc

* travisci more abvious stage names

* remove unncesary svn revision stage

* make clean as prefix

* check for empty geodb

* use geoip2 database format by default
  • Loading branch information
vasyahuyasa authored Jan 7, 2021
1 parent 13a5c42 commit 497bae6
Show file tree
Hide file tree
Showing 253 changed files with 164,380 additions and 2,278 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ remod64
server-init.cfg

# unnecessary
.vscode
.vscode
.deps
.libs
12 changes: 4 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
language: c
git:
submodules: true
language: cpp
sudo: required
services: docker
env:
Expand All @@ -17,14 +15,12 @@ compiler:
script:
- cd src && make && make clean

before_deploy:
docker_build:
- docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- cd ..
- docker build --pull --cache-from "$IMAGE_NAME" --tag "$IMAGE_NAME" .
- docker tag "${IMAGE_NAME}" "${IMAGE_NAME}:latest"
- docker tag "${IMAGE_NAME}" "${IMAGE_NAME}:${TRAVIS_TAG}"
- docker build --pull --cache-from "${IMAGE_NAME}:latest" -t "${IMAGE_NAME}:latest" -t "${IMAGE_NAME}:${TRAVIS_TAG}" .

deploy:
docker_push_to_registry:
provider: script
script: docker push "${IMAGE_NAME}:latest" && docker push "${IMAGE_NAME}:${TRAVIS_TAG}"
on:
Expand Down
Binary file added GeoLite2-Country.mmdb
Binary file not shown.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ make

* Check our [wiki page](https://github.com/vasyahuyasa/remod-sauerbraten/wiki/Installation)

## Update GeoIP database
## GeoIP database

Remod uses GeoLite2 Country database. Because of new policy of Maxmind
Remod support geoip2 and legacy geoip database format (geolite country). Instruction how to get fresh copy of databse https://dev.maxmind.com/geoip/geoipupdate/

## Implemented features
* [x] server side cubescript
Expand Down
Loading

0 comments on commit 497bae6

Please sign in to comment.