MantisBT - Doomseeker
View Issue Details
0003729DoomseekerIP2Cpublic2020-01-19 12:192020-01-19 13:49
WubTheCaptain 
 
nonetrivialN/A
confirmedopen 
Debian GNU/Linuxbullseye/sid
1.3 
 
0003729: Missing UNIX-like shell script / Makefile to build doomseeker-blobs
There's a make_ip2c.bat for Windows, but no shell script or Makefile for UNIX-like operating systems to build IpToCountry.dat easily. More painfully so, the instructions for building on Windows couldn't be accurately adapted for Debian GNU/Linux without trial, error and looking at the source file header for Python version.
'https://bitbucket.org/Doomseeker/doomseeker-blobs/src/919add0eda844747a3d3eda0956b77770bea3dff [^]'

python3 geolite2_conv.py geo/GeoLite2-Country-Blocks-IPv4.csv geo/GeoLite2-Country-Locations-en.csv IpToCountry.dat is the instruction to build on UNIX-like. Python 2 won't work, so calling python geolite2_conv.py ... won't work on Debian GNU/Linux (where Python still defaults to Python 2.7.17).

$ python --version
Python 2.7.17
$ python3 --version
Python 3.7.6
No tags attached.
Issue History
2020-01-19 12:19WubTheCaptainNew Issue
2020-01-19 12:21WubTheCaptainNote Added: 0021093
2020-01-19 12:25WubTheCaptainSeverityfeature => trivial
2020-01-19 12:54ZalewaNote Added: 0021094
2020-01-19 12:54ZalewaNote Edited: 0021094bug_revision_view_page.php?bugnote_id=21094#r12902
2020-01-19 13:48WubTheCaptainStatusnew => acknowledged
2020-01-19 13:49WubTheCaptainStatusacknowledged => confirmed

Notes
(0021093)
WubTheCaptain   
2020-01-19 12:21   
A question is if we want a shell script or Makefile support. I can do both (for both operating systems), though Make would kind of make sense here.
(0021094)
Zalewa   
2020-01-19 12:54   
Quote
A question is if we want a shell script or Makefile support.

Makefile