GeoIP is a C library that enables the user to find the country that any
IP address or hostname originates from. This library supports the legacy
GeoIP database. Although it is kept up-to-date, the non-legacy database
(net/libmaxminddb) is preferable when supported.
This module can be used to automatically select the geographically closest
mirror, to analyze your web server logs to determine the countries of your
visitors, for credit card fraud detection, and for software export controls.
This port includes a helper script, geoipupdate.sh, to help you keep the
library up-to-date. The helper script will only update the legacy
database. To update GeoIP2 databases, install the geoipupdate port from
net/geoipupdate.
WWW: http://dev.maxmind.com/geoip/legacy
===> The following configuration options are available for GeoIP-1.6.12_3:
DOCS=on: Build and/or install documentation
===> Use 'make config' to modify these settings
Report failure to the caller in geoipupdate.sh
The script was returning an error due to the service not being offered anymore.
The update attempt was replaced with an information message, but it's better to
still return 1 as it did before to allow users detecting they have a problem.
Reported by: aramw (maintainer)
Deprecate net/GeoIP, and expire it at the end of the month
Note that only the legacy format is deprecated. The GeoIP2 databases
are alive and well.
I completely missed that GeoIP has been deprecated for the last year,
and it expired upstream last week. Maxmind no longer provides the
legacy database, rendering this port useless.
Users must switch to GeoIP2 immediately. OPTIONS changes and
instructions will be coming in the next few days.
See https://support.maxmind.com/geolite-legacy-discontinuation-notice/
Although it won't be purged from the quarterly branch, it probably
makes sense to MFH this deprecation notice.
PR: 234715
Reported by: rigoletto
MFH: 2019Q1
Add pkg-message instructions to fix geoiplookup with the free databases
GeoIP has free and paid databases with differing granularity. The
geoiplookup and geoiplookup6 tools look only for the paid databases.
Users with the free databases (as would be obtained through the
included geoipupdate.sh script, or though specification of free
data files in net/geoipupdate) will need to create symlinks to
enable those tools to work with the free database files.
The upstream NEWS.md enumerates those symlinks, so this patch includes
a link to that file in the upstream repo.
PORTREVISION bump for the pkg-message change.
PR: 233947
Reported by: Vincent Milum
MFH: 2018Q4
Make the GeoIP and geoipupdate descriptions reflect reality
The difference is no longer paid vs. unpaid. There are free
versions of the GeoIP2 databases, and they are preferred when
supported.
Fix building after r470315
When I switched from autoreconf, I forgot to point this patch file at
Makefile.in instead of Makefile.am. On some systems, this caused
automake to be run because it saw the Makefile.am as newer than the
Makefile.in, but automake isn't pulled in as a dependency.
Reported by: antoine
Update GeoIP to 1.6.12.
* Populate metro and area code when performing lookups in IPv6 City databases.
Previously this was only done when using IPv4 City databases.
Use USES=pathfix where applicable.
PR: 213195
Submitted by: mat
Exp-run by: antoine
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D8093
Allow the server for the GeoIP database to be altered by an environment
variable.
PR: 199768
While here, regenerate patch with 'make makepatch' to appease portlint.
USE_GITHUB: For the new support, fix DISTNAME to be more consistent.
When using GH_TAGNAME the DISTNAME would have GH_PROJECT and GH_ACCOUNT in
it. When not using GH_TAGNAME it would not have this. Now both cases
will add in the GH_PROJECT and GH_ACCOUNT.
Add special care to ensure that the DISTVERSION is not added in twice. If
a port does GH_TAGNAME=v${PORTVERSION} it will be added in twice though. For
that case DISTVERSIONPREFIX=v should be set and no GH_TAGNAME should be used.
empty() is used rather than (!defined || !${}) to support fmake.
The purpose of setting DISTNAME at all in these cases is to make it more clear
that the distfile is from *GITHUB* and to avoid collisions if a project were
to be renamed or moved. Without adding in GH_PROJECT and GH_ACCOUNT then there
are real risks that collisions on filenames would happen on renamed or moved
projects, which is fairly common. A GITHUB-generated file may not match
a custom-rolled or git-archive-rolled distfile.
PR: 199069
With hat: portmgr
Testing done: All USE_GITHUB ports without GH_COMMIT were
checksum/fetch/extract/WRKSRC tested.
Create the temporary directory within DATADIR, to ensure they're created
on the same device as their destination.
While here, use USES=autoreconf, and remove the @dirrm.
PR: 194086
Submitted by: Yasuhito FUTATSUKI
Rather than fetching the data files and piping them through gunzip,
download them completely and then gunzip them. This preserves the
modtimes, and is the only way of knowing the actual age of the
data files.
Suggested by: ache
- Update GeoIP to 1.6.2 and switch to its new github location.
- Add net/geoipupdate, the formal tool to fetch updates. It is for paid
subscribers. People using the free version should continue using the
geoipupdate.sh script in net/GeoIP.
This program is used to fetch the GeoIP2 and GeoIP databases. It requires
an active GeoIP subscription.
Please see https://www.maxmind.com/en/geolocation_landing for details about
obtaining a subscription.
If you wish to install the free versions of the GeoIP databases, please
use the geoipudate.sh script provided in net/GeoIP.
WWW: https://github.com/maxmind/geoipupdate
Ensure that DATADIR exists before attempting to fetch the data files
into it. Also, make the script more robust and ask fewer questions in
adverse conditions.
PORTREVISION bump.
PR: 192597
Submitted by: mandree
Update GeoIP to 1.6.0.
With this update, GeoIP no longer ships with the GeoIP data files, so
you MUST fetch them yourself, by running the geoipupdate.sh script.
Fix unprivileged build. Remove libtool from USE_AUTOTOOLS.
Make sure that Makefile.am is patched, a Makefile.in patch is useless
with USE_AUTOTOOLS=automake.
Remove libtool from USE_AUTOTOOLS, USES already contains libtool, to
fix a DEVELOPER=yes warning.
Approved by: portmgr (blanket "just fix it" approval)
Fetch the GeoIPv6 data along with the IPv4 data. This change
means that to update the IPv6 data you must use the included
geoipupdate.sh script, not the source-provided geoipdate command.
Add a pkg-message about how to update.
PR: 189618
Submitted by: futatuki@yf.bsdclub.org
Also,
PR: 187906
Submitted by: Miroslav Lachman
General cleanups and simplification. Because the port includes
scripts to update the data file, turn use @sample on the data
file included in the port. PORTREVISION bump for this change.
Remove USE_GNOME=gnometarget from ports. It has been a empty keyword since
mid 2008.
PR: ports/159624
Submitted by: Ruslan Mahmatkhanov <cvs-src@yandex.ru>
-Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.
-Update libtool and libltdl to 2.2.6a.
-Remove devel/libtool15 and devel/libltdl15.
-Fix ports build with libtool22/libltdl22.
-Bump ports that depend on libltdl22 due to shared library version change.
-Explain what to do update in the UPDATING.
It has been tested with GNOME2, XFCE4, KDE3, KDE4 and other many wm/desktop
and applications in the runtime.
With help: marcus and kwm
Pointyhat-exp: a few times by pav
Tested by: pgollucci, "Romain Tartière" <romain@blogreen.org>, and
a few MarcusCom CVS users. Also, I might have missed a few.
Repocopy by: marcus
Approved by: portmgr
- net/GeoIP uses its own libtool even if we define USE_LIBTOOL*
- add missing @exec and remove old SIZE in net/GeoIP
- update for libGeoIP.4 in LIB_DEPENDS and bump PORTREVISION
- utilize PORTDOCS in www/mod_geoip
Noticed by: kris
Whoa there, boy, that's a mighty big commit y'all have there...
Begin autotools sanitization sequence by requiring ports to explicitly
specify which version of {libtool,autoconf,automake} they need, erasing
the concept of a "system default".
For ports-in-waiting:
USE_LIBTOOL=YES -> USE_LIBTOOL_VER=13
USE_AUTOCONF=YES -> USE_AUTOCONF_VER=213
USE_AUTOMAKE=YES -> USE_AUTOMAKE_VER=14
Ports attempting to use the old style system after June 1st 2004 will be
sorely disappointed.
Update GeoIP to 1.1.1. This version update has a significant API change in
that false lookups now return NULL instead of "--". Libraries should be
updated accordingly.
Pointed out by: knu && bento
Update delayed by: 15s+ latency from satellite internet connection
Moved misc/GeoIP and misc/p5-Geo-IP to the more fitting net directory[1].
Fixed build of net/GeoIP on -STABLE[2].
PR: ports/43807
Submitted by: Kimura Fuyuki <fuyuki@hadaly.org> [2]
Submitted by: seanc [1]
Reviewed by: knu (mentor/portmgr)