From d719385094d1355a84fc4b4cd5e5d0a34a9c888c Mon Sep 17 00:00:00 2001 From: adamw Date: Fri, 26 May 2017 17:13:19 +0000 Subject: Update to 2.4.0. * geoipupdate now checks that the database directory is writable. If it is not, it reports the problem and aborts. * geoipupdate now acquires a lock when starting up to ensure only one instance may run at a time. A new option, LockFile, exists to set the file to use as a lock. By default, LockFile is the file .geoipupdate.lock in the database directory. * geoipupdate now prints out additional information from the server when a download request results in something other than HTTP status 2xx. This provides more information when the API does not respond with a database file. In conjunction with changes to the download service itself, errors such as lacking a subscription no longer show up with the message "not a valid gzip file". * ${datarootdir}/GeoIP is now created on make install. Reported by Antonios Karagiannis. GitHub #29. * Previously, a variable named ERROR was used. This caused issues building on Windows. Reported by Gisle Vanem. GitHub #36. --- net/geoipupdate/Makefile | 7 ++++++- net/geoipupdate/distinfo | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/net/geoipupdate/Makefile b/net/geoipupdate/Makefile index 1e2cdda3c679..28d04abbe68c 100644 --- a/net/geoipupdate/Makefile +++ b/net/geoipupdate/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= geoipupdate -PORTVERSION= 2.3.1 +PORTVERSION= 2.4.0 DISTVERSIONPREFIX= v CATEGORIES= net geography @@ -21,6 +21,11 @@ GNU_CONFIGURE= yes OPTIONS_DEFINE= DOCS +post-patch: +# This directory is handled by net/GeoIP + @${REINPLACE_CMD} -e '/MKDIR_P.*(datarootdir)\/GeoIP/ d' \ + ${WRKSRC}/Makefile.am + post-install: ${MV} ${STAGEDIR}${DOCSDIR}/GeoIP.conf.default \ ${STAGEDIR}${PREFIX}/etc/GeoIP.conf.sample diff --git a/net/geoipupdate/distinfo b/net/geoipupdate/distinfo index ea14320f4b3e..a543662e293c 100644 --- a/net/geoipupdate/distinfo +++ b/net/geoipupdate/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1483625432 -SHA256 (maxmind-geoipupdate-v2.3.1_GH0.tar.gz) = 581f3783cdd1bdc68f13507e7e7515f8e98c687ae5390a753f9415777a047a4e -SIZE (maxmind-geoipupdate-v2.3.1_GH0.tar.gz) = 34627 +TIMESTAMP = 1495818112 +SHA256 (maxmind-geoipupdate-v2.4.0_GH0.tar.gz) = 7054b21774de8c2bd17ccd8114a2257550c042cb86b715c916c8511db5c74d10 +SIZE (maxmind-geoipupdate-v2.4.0_GH0.tar.gz) = 40445 -- cgit