From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v5 12/17] gnu: Add perl-geo-ip. Date: Thu, 28 Jul 2016 23:38:28 +0200 Message-ID: <20160728213833.22057-13-dannym@scratchpost.org> References: <20160728213833.22057-1-dannym@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.9.1" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSt1f-0007nW-Ao for guix-devel@gnu.org; Thu, 28 Jul 2016 17:39:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSt1d-0006C0-73 for guix-devel@gnu.org; Thu, 28 Jul 2016 17:39:30 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:55094) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSt1c-0006Bj-W3 for guix-devel@gnu.org; Thu, 28 Jul 2016 17:39:29 -0400 In-Reply-To: <20160728213833.22057-1-dannym@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org This is a multi-part message in MIME format. --------------2.9.1 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: quoted-printable gnu: Add perl-geo-ip. * gnu/packages/networking.scm (perl-geo-ip): Add variable. --- gnu/packages/networking.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) --------------2.9.1 Content-Type: text/x-patch; name="0012-gnu-Add-perl-geo-ip.patch" Content-Disposition: attachment; filename="0012-gnu-Add-perl-geo-ip.patch" Content-Transfer-Encoding: quoted-printable diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 134ad5d..660c025 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -588,3 +588,27 @@ offline emulation of DNS.") "Perl extension for merging IPv4 or IPv6 CIDR addresses") (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.") (license license:gpl1+))) + +;; TODO: Use the geolite-mirror-simple.pl script from the example +;; directory to stay current with the databases. How? +(define-public perl-geo-ip + (package + (name "perl-geo-ip") + (version "1.45") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-" + version + ".tar.gz")) + (sha256 + (base32 + "0qinkq2br1cjicbgqb5bvrhm73h7f9f4fgc6bjfs5r6x7316bdqf")))) + (build-system perl-build-system) + (home-page "http://search.cpan.org/dist/Geo-IP") + (synopsis + "Look up location and network information by IP Address in Perl") + (description "The Perl module 'Geo::IP'.=20 +It looks up location and network information by IP Address.") + (license (package-license perl)))) --------------2.9.1--