105 Commits

Author SHA1 Message Date
Adam Weinberger
708788889c Extend the GeoIP expiration to a month from now to give
users a bit more time to find a new solution.
2019-01-13 21:00:50 +00:00
Romain Tartière
1c169c5c36 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)
2019-01-11 19:50:07 +00:00
Adam Weinberger
be13f12ef7 Replace the geoipupdate.sh script (which just produced 404 errors) with
a message explaining why, and what to do about it.
2019-01-11 13:38:43 +00:00
Adam Weinberger
2b0822be25 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
2019-01-08 04:43:45 +00:00
Adam Weinberger
df17ca775d 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
2018-12-12 00:28:52 +00:00
Adam Weinberger
26164efa00 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.
2018-09-28 12:35:42 +00:00
Adam Weinberger
29309610b3 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
2018-05-22 13:38:04 +00:00
Adam Weinberger
e4daaf7042 Use the pre-rolled tarball instead of autoreconficating 2018-05-18 17:42:16 +00:00
Adam Weinberger
6d2d1244f4 Make it clear that geoipupdate.sh is only for the free database 2018-05-18 15:33:32 +00:00
Adam Weinberger
1c3670c42d 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.
2018-01-18 02:51:39 +00:00
Adam Weinberger
09383ba445 Update to 1.6.11.
* Fix use of a NULL pointer when opening a corrupt database
    with GeoIP_open

MFH:		2017Q2
2017-05-15 22:55:13 +00:00
Adam Weinberger
6fc3915b55 Update to 1.6.10, and use install-strip instead of manually stripping
in post-install.
2017-03-31 15:47:24 +00:00
Mathieu Arnold
a0bcd2cf68 Use USES=pathfix where applicable.
PR:		213195
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D8093
2016-10-21 15:21:13 +00:00
Adam Weinberger
8d659c6f09 Update to 1.6.9. 2016-01-12 03:23:20 +00:00
Adam Weinberger
9ad2182c4a Update to 1.6.7. 2016-01-06 17:31:49 +00:00
Adam Weinberger
87f97087db Update to 1.6.6. 2015-08-15 15:50:51 +00:00
Adam Weinberger
59b6b01294 Stop trying to be a parselmouth. 2015-05-08 17:22:58 +00:00
Adam Weinberger
03f6bff777 Support fetching the GeoLite City and GeoLite ASN databases.
Requested by:	Scott Loga
2015-05-08 17:19:04 +00:00
Adam Weinberger
b16439d863 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.
2015-04-30 04:28:27 +00:00
Bryan Drewery
aa6ad6e726 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.
2015-04-28 18:44:04 +00:00
Adam Weinberger
d9090d1f1b Use the new USE_GITHUB format. 2015-04-19 19:19:35 +00:00
Adam Weinberger
bdb7263c05 Update to 1.6.5. 2015-02-26 19:09:47 +00:00
Adam Weinberger
8073e78977 Update WWW. Old URL no longer exists. 2015-01-31 15:10:24 +00:00
Adam Weinberger
055244168e Update to 1.6.4. 2015-01-13 16:38:35 +00:00
Adam Weinberger
d9582fb7f0 DATADIR needs to be created as an empty dir for geoipupdate.sh.
Submitted by:	Herbert J. Skuhra
2014-11-16 16:25:46 +00:00
Adam Weinberger
607b7700df Update to 1.6.3. Add LICENSE. 2014-10-29 21:47:25 +00:00
Adam Weinberger
d3d9a5a97e 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
2014-10-13 01:31:28 +00:00
Adam Weinberger
6ade92e79b 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
2014-09-06 23:03:41 +00:00
Adam Weinberger
103461f308 - 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
2014-08-27 15:53:24 +00:00
Adam Weinberger
38ec20b411 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
2014-08-11 20:16:28 +00:00
Matthias Andree
bbfe5de965 Fix build as unprivileged user again, adding patch-man__Makefile.am.
Approved by:	portmgr (blanket "just fix it" approval)
2014-08-11 18:41:31 +00:00
Adam Weinberger
c66fafa193 Remove :oldver from GeoIP's USES=libtool. This allows the port to install
the proper shlib version, and removes libGeoIP.la.
2014-08-11 17:04:17 +00:00
Adam Weinberger
d4c6da7c6e Give at least some indication of what is happening. 2014-07-28 15:35:36 +00:00
Adam Weinberger
07fb5e0167 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.
2014-07-28 15:26:32 +00:00
Matthias Andree
8c9b5cff7c 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)
2014-07-23 19:27:16 +00:00
Adam Weinberger
cb0167cf82 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
2014-07-22 12:24:58 +00:00
Adam Weinberger
9426d28e77 Attempt to fix port on amd64 by running autoeverything. 2014-07-01 17:32:18 +00:00
Adam Weinberger
cb00e89e4a 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.
2014-06-12 21:37:01 +00:00
Adam Weinberger
e1932e4c5a Take these two. 2014-06-12 20:40:41 +00:00
Dmitry Marakasov
b40ca8037d - Swith to USES=libtool
- Fix install as non-root
- Whitespace fix

Approved by:	portmgr blanket
2014-06-10 22:12:46 +00:00
Martin Wilke
66bbb742c7 - Stage support 2014-02-10 03:19:23 +00:00
Baptiste Daroussin
0c710c7b4e Add NO_STAGE all over the place in preparation for the staging support (cat: net) 2013-09-20 22:10:23 +00:00
Michael Scheidell
3c3ab07abe - Fix insecure handling of GeoIP download file
- Bump PORTREVISION since we change package

PR:		ports/145425
Submitted by:	anatoly pugachev <matorola@gmail.com>
Approved by:	dhn@ (maintainer)
2012-07-04 11:22:49 +00:00
Dennis Herrmann
7765b6e078 - Update URL in files/geoipupdate.sh
- Bump PORTREVISION

PR:		ports/165379
Submitted by:	Seiji Ariga <freebsd@khaotic.net>
2012-02-22 20:23:27 +00:00
Martin Wilke
e1c6649edf - Remove WITH_FBSD10_FIX, is no longer needed 2011-11-09 15:26:04 +00:00
Martin Wilke
69a39f5f38 - Fix build on FreeBSD 10
Reported by:	pointyhat
2011-10-29 10:03:08 +00:00
Koop Mast
0e682dded4 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>
2011-08-11 19:20:17 +00:00
Dennis Herrmann
e6dba568ae - Fix to install complete
- Bump PORTREVISION

PR:		ports/159145
Submitted by:	Barbara <barbara.xxx1975@libero.it>
2011-07-23 22:30:39 +00:00
Dennis Herrmann
9dd53ec712 - Update to 1.4.8 2011-07-23 16:39:41 +00:00
Dennis Herrmann
2fc7ab7c57 - Update to 1.4.7 2011-04-23 08:42:30 +00:00