summaryrefslogtreecommitdiff
path: root/geography/geolite2-city
diff options
context:
space:
mode:
authoragc <agc>2016-07-24 02:07:49 +0000
committeragc <agc>2016-07-24 02:07:49 +0000
commit4c79e21ddd8c3092ec80a660bd9b3c92ac98263d (patch)
treecc50eaf18cba297559723efce11d26842b232ce9 /geography/geolite2-city
parentd3b1d4b6e9be35df4f4ae9346bf9785f99d1f26a (diff)
downloadpkgsrc-4c79e21ddd8c3092ec80a660bd9b3c92ac98263d.tar.gz
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.
Diffstat (limited to 'geography/geolite2-city')
-rw-r--r--geography/geolite2-city/DESCR12
-rw-r--r--geography/geolite2-city/Makefile26
-rw-r--r--geography/geolite2-city/PLIST13
-rw-r--r--geography/geolite2-city/distinfo6
4 files changed, 57 insertions, 0 deletions
diff --git a/geography/geolite2-city/DESCR b/geography/geolite2-city/DESCR
new file mode 100644
index 00000000000..a11b9e45791
--- /dev/null
+++ b/geography/geolite2-city/DESCR
@@ -0,0 +1,12 @@
+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.
diff --git a/geography/geolite2-city/Makefile b/geography/geolite2-city/Makefile
new file mode 100644
index 00000000000..4412eb225e9
--- /dev/null
+++ b/geography/geolite2-city/Makefile
@@ -0,0 +1,26 @@
+# $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"
diff --git a/geography/geolite2-city/PLIST b/geography/geolite2-city/PLIST
new file mode 100644
index 00000000000..9ef2f8203c3
--- /dev/null
+++ b/geography/geolite2-city/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/24 02:07:49 agc Exp $
+share/GeoLite2-City-CSV/COPYRIGHT.txt
+share/GeoLite2-City-CSV/GeoLite2-City-Blocks-IPv4.csv
+share/GeoLite2-City-CSV/GeoLite2-City-Blocks-IPv6.csv
+share/GeoLite2-City-CSV/GeoLite2-City-Locations-de.csv
+share/GeoLite2-City-CSV/GeoLite2-City-Locations-en.csv
+share/GeoLite2-City-CSV/GeoLite2-City-Locations-es.csv
+share/GeoLite2-City-CSV/GeoLite2-City-Locations-fr.csv
+share/GeoLite2-City-CSV/GeoLite2-City-Locations-ja.csv
+share/GeoLite2-City-CSV/GeoLite2-City-Locations-pt-BR.csv
+share/GeoLite2-City-CSV/GeoLite2-City-Locations-ru.csv
+share/GeoLite2-City-CSV/GeoLite2-City-Locations-zh-CN.csv
+share/GeoLite2-City-CSV/LICENSE.txt
diff --git a/geography/geolite2-city/distinfo b/geography/geolite2-city/distinfo
new file mode 100644
index 00000000000..ccb0bb70f90
--- /dev/null
+++ b/geography/geolite2-city/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/07/24 02:07:49 agc Exp $
+
+SHA1 (GeoLite2-City-CSV-20160705/GeoLite2-City-CSV.zip) = fe9c9564eeffa5169e58ae256531320c0aab8a4c
+RMD160 (GeoLite2-City-CSV-20160705/GeoLite2-City-CSV.zip) = f65888e02b7830b300e7ae6c546359058d874847
+SHA512 (GeoLite2-City-CSV-20160705/GeoLite2-City-CSV.zip) = ab971720ab01dc0e033abd785d8fea1934b712dbfa366bd132eb6f58eed5b7466238ca759b4c674cbd64fee9c56e0ddedbeb48968252c2f0c5ae490e890721a2
+Size (GeoLite2-City-CSV-20160705/GeoLite2-City-CSV.zip) = 41923245 bytes