summaryrefslogtreecommitdiff
path: root/geography/geolite2-country
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2016-07-24 02:07:49 +0000
committeragc <agc@pkgsrc.org>2016-07-24 02:07:49 +0000
commit3b8bdd7661e2841ebf598a7f8da5e4263c889506 (patch)
treecc50eaf18cba297559723efce11d26842b232ce9 /geography/geolite2-country
parentad14ed61540b1d7f373b86fcd84b3d41d8fd014d (diff)
downloadpkgsrc-3b8bdd7661e2841ebf598a7f8da5e4263c889506.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-country')
-rw-r--r--geography/geolite2-country/DESCR12
-rw-r--r--geography/geolite2-country/Makefile26
-rw-r--r--geography/geolite2-country/PLIST13
-rw-r--r--geography/geolite2-country/distinfo6
4 files changed, 57 insertions, 0 deletions
diff --git a/geography/geolite2-country/DESCR b/geography/geolite2-country/DESCR
new file mode 100644
index 00000000000..a11b9e45791
--- /dev/null
+++ b/geography/geolite2-country/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-country/Makefile b/geography/geolite2-country/Makefile
new file mode 100644
index 00000000000..3678768a93f
--- /dev/null
+++ b/geography/geolite2-country/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2016/07/24 02:07:49 agc Exp $
+
+DISTNAME= GeoLite2-Country-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 country geolocation databases
+LICENSE= cc-by-sa-v4.0
+
+DIST_SUBDIR= ${PKGNAME_NOREV}
+WRKSRC= ${WRKDIR}/GeoLite2-Country-CSV_20160705
+
+AUTO_MKDIRS= yes
+
+do-build:
+ ${DO_NADA}
+
+do-install:
+ mkdir -p ${DESTDIR}${PREFIX}/share/GeoLite2-Country-CSV
+ (cd ${WRKSRC} && ${INSTALL_DATA} *.csv *.txt ${DESTDIR}${PREFIX}/share/GeoLite2-Country-CSV/)
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/geography/geolite2-country/PLIST b/geography/geolite2-country/PLIST
new file mode 100644
index 00000000000..0c3aad108de
--- /dev/null
+++ b/geography/geolite2-country/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2016/07/24 02:07:49 agc Exp $
+share/GeoLite2-Country-CSV/COPYRIGHT.txt
+share/GeoLite2-Country-CSV/GeoLite2-Country-Blocks-IPv4.csv
+share/GeoLite2-Country-CSV/GeoLite2-Country-Blocks-IPv6.csv
+share/GeoLite2-Country-CSV/GeoLite2-Country-Locations-de.csv
+share/GeoLite2-Country-CSV/GeoLite2-Country-Locations-en.csv
+share/GeoLite2-Country-CSV/GeoLite2-Country-Locations-es.csv
+share/GeoLite2-Country-CSV/GeoLite2-Country-Locations-fr.csv
+share/GeoLite2-Country-CSV/GeoLite2-Country-Locations-ja.csv
+share/GeoLite2-Country-CSV/GeoLite2-Country-Locations-pt-BR.csv
+share/GeoLite2-Country-CSV/GeoLite2-Country-Locations-ru.csv
+share/GeoLite2-Country-CSV/GeoLite2-Country-Locations-zh-CN.csv
+share/GeoLite2-Country-CSV/LICENSE.txt
diff --git a/geography/geolite2-country/distinfo b/geography/geolite2-country/distinfo
new file mode 100644
index 00000000000..a306755163f
--- /dev/null
+++ b/geography/geolite2-country/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/07/24 02:07:49 agc Exp $
+
+SHA1 (GeoLite2-Country-CSV-20160705/GeoLite2-Country-CSV.zip) = f879707afe5e56e7552c140d93ca98eab6deb52c
+RMD160 (GeoLite2-Country-CSV-20160705/GeoLite2-Country-CSV.zip) = ad14481f70fbae856d2adf6c0c673134593cb0c6
+SHA512 (GeoLite2-Country-CSV-20160705/GeoLite2-Country-CSV.zip) = c8cf05f3a0f09721c805b83df364b88604e90618c03f84d7f382ab9f3837624807553e8438053e127dd78c36ef1f96bcc61ae45db39a87a6d06311dfcb5d57c5
+Size (GeoLite2-Country-CSV-20160705/GeoLite2-Country-CSV.zip) = 4363834 bytes