From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v3 12/16] gnu: Add perl-geo-ip. Date: Thu, 28 Jul 2016 13:06:10 +0200 Message-ID: <20160728130610.1b4c4705@scratchpost.org> References: <20160728130126.12fda106@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSj8q-00010b-TX for guix-devel@gnu.org; Thu, 28 Jul 2016 07:06:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSj8o-0005gx-Lv for guix-devel@gnu.org; Thu, 28 Jul 2016 07:06:15 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:54630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSj8o-0005gr-FL for guix-devel@gnu.org; Thu, 28 Jul 2016 07:06:14 -0400 Received: from localhost (178.112.81.47.wireless.dyn.drei.com [178.112.81.47]) by dd1012.kasserver.com (Postfix) with ESMTPSA id BFC401CA06E3 for ; Thu, 28 Jul 2016 13:06:13 +0200 (CEST) In-Reply-To: <20160728130126.12fda106@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 gnu: Add perl-geo-ip. * gnu/packages/networking.scm (perl-geo-ip): Add variable. --- gnu/packages/networking.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 1f1389e..9e6d1b5 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -24,6 +24,29 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages networking) +;; 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'. +It looks up location and network information by IP Address.") + (license (package-license perl)))) ;; Maybe makes sense to add patricialib dependency (it's bundled right now). ;; See for the original package it was extracted from. ;; However, the site above doesn't actually work on my computer.