tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

update for net/geoip



To make sure it works:

$ ~/pkg/bin/geoiplookup india.gov.in
GeoIP Country Edition: IN, India

$ ln -s ~/pkg/share/GeoIP/GeoLiteCityv6.dat  /home/jreed/pkg/share/GeoIP/GeoIPCityv6.dat
$ ~/pkg/bin/geoiplookup6 netbsd.org
GeoIP City Edition V6, Rev 1: US, N/A, N/A, N/A, 38.000000, -97.000000, 0, 0
$ ~/pkg/bin/geoiplookup6 www.japan.go.jp
GeoIP City Edition V6, Rev 1: JP, N/A, N/A, N/A, 36.000000, 138.000000, 0, 0

I have been using 1.6.0 for over ayear but forgot (and then lost) my 
pkgsrc update for it.

Okay to commit following?

remove patches

Index: DESCR
===================================================================
RCS file: /cvsroot/pkgsrc/net/GeoIP/DESCR,v
retrieving revision 1.3
diff -u -r1.3 DESCR
--- DESCR       6 Feb 2008 23:27:02 -0000       1.3
+++ DESCR       11 Aug 2015 21:15:49 -0000
@@ -1,9 +1,15 @@
-GeoIP is a C library that enables the user to find the country that any 
IP
-address or hostname originates from.  It uses a file based database 
that is
-accurate as of January 2008. This database simply contains IP blocks as 
keys,
-and countries as values. It should be more complete and accurate than 
using
-reverse DNS lookups.
+GeoIP is a C library and client for finding geographical and network
+information of an IP or IPv6 address, such as country, city, region,
+ISP, AS number, and more.
 
-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 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.
+
+It supports the GeoIP Legacy format (dat) and a GeoLite GeoIP
+Country (IPv4) database from January 2015 is included.  Additional
+databases may be installed for further geolocation lookups
+including city, registered Autonomous System Numbers, and others.
+To download the latest free GeoLite Legacy databases, go to:
+http://dev.maxmind.com/geoip/legacy/geolite
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/GeoIP/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- Makefile    9 Oct 2014 14:06:44 -0000       1.30
+++ Makefile    11 Aug 2015 21:15:49 -0000
@@ -1,22 +1,23 @@
 # $NetBSD: Makefile,v 1.30 2014/10/09 14:06:44 wiz Exp $
 
-DISTNAME=      GeoIP-1.4.8
+DISTNAME=      GeoIP-1.6.6
 CATEGORIES=    net
-MASTER_SITES=  http://geolite.maxmind.com/download/geoip/api/c/
+MASTER_SITES=  
https://github.com/maxmind/geoip-api-c/releases/download/v1.6.6/
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://www.maxmind.com/app/c
-COMMENT=       Find the country from any IP address
+HOMEPAGE=      https://github.com/maxmind/geoip-api-c
+COMMENT=       IP address geolocation
 LICENSE=       gnu-lgpl-v2.1 AND gnu-gpl-v2 #  md5.c and types.h, from 
GNUPG
 
 USE_LIBTOOL=           yes
 GNU_CONFIGURE=         yes
-CONFIGURE_ARGS+=       --sysconfdir=${PKG_SYSCONFDIR}
 
-EGDIR=         ${PREFIX}/share/examples/GeoIP
-CONF_FILES=    ${EGDIR}/GeoIP.conf.default ${PKG_SYSCONFDIR}/GeoIP.conf
+INSTALLATION_DIRS+=    share/GeoIP
 
 TEST_TARGET=   check
 
+post-install:
+       ${INSTALL_DATA} ${WRKSRC}/data/GeoIP.dat 
${DESTDIR}${PREFIX}/share/GeoIP/
+
 .include "../../devel/zlib/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/net/GeoIP/PLIST,v
retrieving revision 1.7
diff -u -r1.7 PLIST
--- PLIST       14 Jun 2009 18:09:19 -0000      1.7
+++ PLIST       11 Aug 2015 21:15:49 -0000
@@ -1,14 +1,11 @@
-@comment $NetBSD: PLIST,v 1.7 2009/06/14 18:09:19 joerg Exp $
+@comment $NetBSD$
 bin/geoiplookup
 bin/geoiplookup6
-bin/geoipupdate
-include/GeoIP.h
 include/GeoIPCity.h
-include/GeoIPUpdate.h
+include/GeoIP.h
 lib/libGeoIP.la
-lib/libGeoIPUpdate.la
+lib/pkgconfig/geoip.pc
 man/man1/geoiplookup.1
 man/man1/geoiplookup6.1
-man/man1/geoipupdate.1
 share/GeoIP/GeoIP.dat
-share/examples/GeoIP/GeoIP.conf.default
+@pkgdir share/GeoIP
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/net/GeoIP/distinfo,v
retrieving revision 1.13
diff -u -r1.13 distinfo
--- distinfo    2 Jul 2011 05:36:14 -0000       1.13
+++ distinfo    11 Aug 2015 21:15:49 -0000
@@ -1,6 +1,5 @@
 $NetBSD: distinfo,v 1.13 2011/07/02 05:36:14 obache Exp $
 
-SHA1 (GeoIP-1.4.8.tar.gz) = 7bafb9918e3c35a6ccc71bb14945245d45c4b796
-RMD160 (GeoIP-1.4.8.tar.gz) = 51388ff9c738c9e4d60fff790b7d7599a7133bf5
-Size (GeoIP-1.4.8.tar.gz) = 1074829 bytes
-SHA1 (patch-aa) = a53740728808c4eb363092cf2e342dddbaa012dc
+SHA1 (GeoIP-1.6.6.tar.gz) = 1dc14334cd83e2b6cd04ee6eea17b1e54da64581
+RMD160 (GeoIP-1.6.6.tar.gz) = baedd0de27465358e80a8752399796dd5e6ad0dd
+Size (GeoIP-1.6.6.tar.gz) = 882118 bytes


Note that it removes the geoip configuration and geoipupdate tool 
(someone can package that separately if they wish)



Home | Main Index | Thread Index | Old Index