From 5da500549cff8d50e5db9092662b9869da7161de Mon Sep 17 00:00:00 2001 From: Frederic Cambus Date: Fri, 28 Feb 2020 22:00:47 +0100 Subject: [PATCH] Import p5-GeoIP2 2.006002 as wip/p5-GeoIP2. This module provides an API for the GeoIP2 web services and databases. The API also works with the free GeoLite2 databases. See GeoIP2::WebService::Client for details on the web service client API and GeoIP2::Database::Reader for the database API. --- Makefile | 1 + p5-GeoIP2/DESCR | 5 +++++ p5-GeoIP2/Makefile | 39 +++++++++++++++++++++++++++++++++++++++ p5-GeoIP2/distinfo | 6 ++++++ 4 files changed, 51 insertions(+) create mode 100644 p5-GeoIP2/DESCR create mode 100644 p5-GeoIP2/Makefile create mode 100644 p5-GeoIP2/distinfo diff --git a/Makefile b/Makefile index 6fcb74c74b..2f1319beb5 100644 --- a/Makefile +++ b/Makefile @@ -2641,6 +2641,7 @@ SUBDIR+= p5-FFI-Platypus SUBDIR+= p5-File-Map SUBDIR+= p5-Frontier-RPC SUBDIR+= p5-GPS-Garmin +SUBDIR+= p5-GeoIP2 SUBDIR+= p5-Getopt-GUI-Long SUBDIR+= p5-Google-API-Client SUBDIR+= p5-Gtk2-Spell diff --git a/p5-GeoIP2/DESCR b/p5-GeoIP2/DESCR new file mode 100644 index 0000000000..5e3841f5f3 --- /dev/null +++ b/p5-GeoIP2/DESCR @@ -0,0 +1,5 @@ +This module provides an API for the GeoIP2 web services and databases. +The API also works with the free GeoLite2 databases. + +See GeoIP2::WebService::Client for details on the web service client API +and GeoIP2::Database::Reader for the database API. diff --git a/p5-GeoIP2/Makefile b/p5-GeoIP2/Makefile new file mode 100644 index 0000000000..1215c3b638 --- /dev/null +++ b/p5-GeoIP2/Makefile @@ -0,0 +1,39 @@ +# $NetBSD$ + +DISTNAME= GeoIP2-2.006002 +PKGNAME= p5-${DISTNAME} +CATEGORIES= net perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../authors/id/M/MA/MAXMIND/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://metacpan.org/release/GeoIP2 +COMMENT= Perl API for MaxMind's GeoIP2 web services and databases +LICENSE= artistic-2.0 + +DEPENDS+= p5-JSON-MaybeXS>=0:../../converters/p5-JSON-MaybeXS +DEPENDS+= p5-Data-Validate-IP>=0.25:../../devel/p5-Data-Validate-IP +DEPENDS+= p5-Moo>=0:../../devel/p5-Moo +DEPENDS+= p5-Params-Validate>=0:../../devel/p5-Params-Validate +DEPENDS+= p5-Sub-Quote>=0:../../devel/p5-Sub-Quote +DEPENDS+= p5-Throwable>=0:../../devel/p5-Throwable +DEPENDS+= p5-Try-Tiny>=0:../../devel/p5-Try-Tiny +DEPENDS+= p5-namespace-clean>=0:../../devel/p5-namespace-clean +DEPENDS+= p5-MaxMind-DB-Reader>=1.0:../../net/p5-MaxMind-DB-Reader +DEPENDS+= p5-List-SomeUtils>=0:../../devel/p5-List-SomeUtils +DEPENDS+= p5-HTTP-Message>=0:../../www/p5-HTTP-Message +DEPENDS+= p5-LWP-Protocol-https>=0:../../www/p5-LWP-Protocol-https +DEPENDS+= p5-URI>=0:../../www/p5-URI +DEPENDS+= p5-libwww>=0:../../www/p5-libwww + +TEST_DEPENDS+= p5-Path-Class>=0:../../devel/p5-Path-Class +TEST_DEPENDS+= p5-Test-Fatal>=0:../../devel/p5-Test-Fatal +TEST_DEPENDS+= p5-Test-Number-Delta>=0:../../math/p5-Test-Number-Delta +TEST_DEPENDS+= p5-MaxMind-DB-Common>=0:../../net/p5-MaxMind-DB-Common +TEST_DEPENDS+= p5-HTTP-Message>=0:../../www/p5-HTTP-Message + +REPLACE_PERL= bin/web-service-request + +PERL5_PACKLIST= auto/GeoIP2/.packlist + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/p5-GeoIP2/distinfo b/p5-GeoIP2/distinfo new file mode 100644 index 0000000000..0f80a635ee --- /dev/null +++ b/p5-GeoIP2/distinfo @@ -0,0 +1,6 @@ +$NetBSD$ + +SHA1 (GeoIP2-2.006002.tar.gz) = 80d95bccec5f5195db06ac9d55bf45a3192263bd +RMD160 (GeoIP2-2.006002.tar.gz) = 483cd0ce02ce083c64a15f1c78f4965cb12bf9d8 +SHA512 (GeoIP2-2.006002.tar.gz) = a552c6487b340aa928cfc6ce037724cf0fa98332b731388734bc2b25e7d1a31e2c45c0cd12b6c962b5b483172837587254d742fb04cbcec67586d92dae71e356 +Size (GeoIP2-2.006002.tar.gz) = 249915 bytes