pkgsrc/geography/geolite2-city/Makefile
agc 39bef3e230 Add the geolite2 city and country IPv4 databases from 20160705
GeoLite2 databases are free IP geolocation databases comparable to,
	but less accurate than, MaxMind's GeoIP2 databases.  GeoLite2
	databases are updated on the first Tuesday of each month.

	IP geolocation is inherently imprecise.  Locations are often near the
	center of the population.  Any location provided by a GeoIP database
	should not be used to identify a particular address or household.

	Use the Accuracy Radius as an indication of geolocation accuracy for
	the latitude and longitude coordinates we return for an IP address.
	The actual location of the IP address is likely within the area
	defined by this radius and the latitude and longitude coordinates.

These are presented as straight CSV files, and can be manipulated with standard
tools.
2016-07-24 02:07:49 +00:00

26 lines
692 B
Makefile

# $NetBSD: Makefile,v 1.1 2016/07/24 02:07:49 agc Exp $
DISTNAME= GeoLite2-City-CSV
PKGNAME= ${DISTNAME}-20160705
CATEGORIES= geography
MASTER_SITES= http://geolite.maxmind.com/download/geoip/database/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://dev.maxmind.com/geoip/geoip2/geolite2/
COMMENT= Free IP city geolocation databases
LICENSE= cc-by-sa-v4.0
DIST_SUBDIR= ${PKGNAME_NOREV}
WRKSRC= ${WRKDIR}/GeoLite2-City-CSV_20160705
AUTO_MKDIRS= yes
do-build:
${DO_NADA}
do-install:
mkdir -p ${DESTDIR}${PREFIX}/share/GeoLite2-City-CSV
(cd ${WRKSRC} && ${INSTALL_DATA} *.csv *.txt ${DESTDIR}${PREFIX}/share/GeoLite2-City-CSV/)
.include "../../mk/bsd.pkg.mk"