==================================================================
Please DO NOT REPLY to this mail or send email to the developers
about this bug. Please follow-up to Bugzilla using this link:
http://bugs.contribs.org/show_bug.cgi?id=9033
Have you checked the Frequently Asked Questions (FAQ)?
http://wiki.contribs.org/SME_Server:Documentation:FAQ
Please also take the time to read the following useful guide:
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
==================================================================
--- Comment #5 from John Crisp <[email protected]> ---
(In reply to Stephane de Labrusse from comment #4)
> Created attachment 5197 [details]
> yum update --enablerepo=openfusion
>
> FYI an update from openfusion will be a drama :p see attachment
Yes I thought that might happen :-)
OK, on a clean install v9.1B2 updated I tried using the following :
db yum_repositories set openfusion repository \
BaseURL http://repo.openfusion.net/centos6-\$basearch \
EnableGroups no GPGCheck yes Name "openfusion repository" \
GPGKey http://repo.openfusion.net/RPM-GPG-KEY-openfusion \
includepkgs 'perl-MaxMind-DB-Reader' \
Visible yes status disabled
signal-event yum-modify
yum --enablerepo=openfusion install perl-GeoIP2
These 3 installed packages get updated for dependencies
perl-Devel-StackTrace.noarch 1:1.31-1.of.el6
perl-List-MoreUtils.x86_64 0:0.33-3.of.el6
perl-version.x86_64 3:0.9908-1.of.el6
See attachment for what gets updated and installed
I then did :
wget
http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz
gunzip GeoLite2-Country.mmdb.gz
wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz
gunzip GeoLite2-City.mmdb.gz
I then created a couple of simple test files as per the attached
geo-test-city.pl & geo-test.country.pl (not that I really know what the hell I
am doing)
perl APIs are here :
https://metacpan.org/pod/GeoIP2::Model::City
https://metacpan.org/pod/GeoIP2::Model::Country
[root@test-v9 ~]# perl geo-test-city.pl 178.62.71.12
London
GB
[root@test-v9 ~]# perl geo-test-country.pl 178.62.71.12
GB
If we just want the country for blocking then the country DB file is much
smaller.
Next is building a new GeoIP plugin to use this.
One thing to note is that GeoIP-1.4.8-1.el6.x86_64 seems to have installed by
default and this uses the old v1 DB which will sometimes give the wrong answer
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at http://lists.contribs.org/mailman/public/contribteam/