Package Details: xtables-geoip-db 2.2-10

Git Clone URL: https://aur.archlinux.org/xtables-geoip-db.git (read-only, click to copy)
Package Base: xtables-geoip-db
Description: GeoIP Database for xtables
Upstream URL: https://db-ip.com/db/download/ip-to-country-lite
Keywords: db-ip geoip geolite2 maxmind
Licenses: GPL, BSD
Submitter: amish
Maintainer: amish
Last Packager: amish
Votes: 10
Popularity: 0.000005
First Submitted: 2014-05-04 12:27 (UTC)
Last Updated: 2024-02-12 00:34 (UTC)

Pinned Comments

amish commented on 2020-03-14 09:43 (UTC) (edited on 2020-03-14 09:44 (UTC) by amish)

Package now uses DB-IP GeoIP database. If you still want to use MaxMind GeoLite2 database then read PKGBUILD for details. (needs license key from MaxMind)

amish commented on 2018-12-22 19:37 (UTC) (edited on 2021-03-09 00:59 (UTC) by amish)

Those using nftables may try this AUR package: https://aur.archlinux.org/packages/nftables-geoip-db/

See README file of that package for details. Thank you.

Latest Comments

1 2 Next › Last »

amish commented on 2021-03-09 00:48 (UTC)

@dreieck You need to install perl-text-csv-xs. It is there in makedepends(). I wonder how makepkg did not complain to you. It should have shown you this error:

==> Missing dependencies: -> perl-text-csv-xs

About geoip.license.key, it can not be put in git or source as it will vary for each user. i.e. each use will have own key. However I have fixed the error message and it will be gone in next update. But package should build just fine even if there was "No such file" error.

dreieck commented on 2021-03-08 16:55 (UTC)

Build fails for me:

==> Starting package()...
Using DB-IP GeoIP database
Can't locate Text/CSV_XS.pm in @INC (you may need to install the Text::CSV_XS module) (@INC contains: /usr/lib/perl5/5.32/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.32/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.32/core_perl /usr/share/perl5/core_perl) at /tmp/xtables-geoip-db/src/xt_geoip_build line 13.
BEGIN failed--compilation aborted at /tmp/xtables-geoip-db/src/xt_geoip_build line 13.
==> ERROR: A failure occurred in package().
    Aborting...

Thanks for maintaining!

dreieck commented on 2021-03-08 16:53 (UTC) (edited on 2021-03-08 16:54 (UTC) by dreieck)

Your PKGBUILD does a source geoip.license.key. But this file is not provided by your package, and also it is not mentioned that it is needed in the source-array. So there is an error message /[...]/xtables-geoip-db/PKGBUILD: line 16: geoip.license.key: No such file or directory

So can you please add a check and only source it if it is available (if [ -r "${srcdir}/geoip.license.key" ]; then source "${srcdir}/geoip.license.key"; fi), or add it to the source-array as a required file?

Thanks for maintaining!

amish commented on 2020-03-14 09:43 (UTC) (edited on 2020-03-14 09:44 (UTC) by amish)

Package now uses DB-IP GeoIP database. If you still want to use MaxMind GeoLite2 database then read PKGBUILD for details. (needs license key from MaxMind)

amish commented on 2020-01-07 13:51 (UTC) (edited on 2020-01-07 13:54 (UTC) by amish)

Quote from PKGBUILD:

#create a file named geoip.license.key which contains MaxMind License key in following format:
_maxmind_key=XXXX

Where XXXX is your GeoIP license key, which is available for free from Maxmind.

After that you can build the package normally.

gaura.panasenko commented on 2020-01-07 11:27 (UTC)

Hello!

There is error while building this package: ERROR: Failure while downloading https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&suffix=zip&license_key=

When I go to this link I get: Invalid license key

And on link https://dev.maxmind.com/geoip/geoip2/geolite2/ I read this message: Due to upcoming data privacy regulations, we are making significant changes to how you access free GeoLite2 databases starting December 30, 2019.

As described here https://blog.maxmind.com/2019/12/18/significant-changes-to-accessing-and-using-geolite2-databases/ It is required to sign up for a MaxMind account and create license key to download this file.

amish commented on 2018-12-22 19:37 (UTC) (edited on 2021-03-09 00:59 (UTC) by amish)

Those using nftables may try this AUR package: https://aur.archlinux.org/packages/nftables-geoip-db/

See README file of that package for details. Thank you.

Stitchless commented on 2015-08-13 11:30 (UTC)

This depends on unzip to install as line 8 of /usr/lib/iptables/xtables-addons/xt_geoip_dl calls it.

amish commented on 2015-01-10 02:28 (UTC)

Well if you want it to be automatic then package is not required! Just make a script with this 2 commands(rough idea) sh /usr/lib/iptables/xtables-addons/xt_geoip_dl perl /usr/lib/iptables/xtables-addons/xt_geoip_build -D "/usr/share/xt_geoip" GeoIP*.csv