From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v3 06/16] gnu: Add perl-net-patricia. Date: Thu, 28 Jul 2016 13:14:14 +0200 Message-ID: <20160728131414.0bcc6d23@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]:47284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSjGf-0003BO-LG for guix-devel@gnu.org; Thu, 28 Jul 2016 07:14:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSjGa-00074C-F0 for guix-devel@gnu.org; Thu, 28 Jul 2016 07:14:20 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:54961) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSjGa-000747-7u for guix-devel@gnu.org; Thu, 28 Jul 2016 07:14:16 -0400 Received: from localhost (178.112.81.47.wireless.dyn.drei.com [178.112.81.47]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 5907F1CA06E3 for ; Thu, 28 Jul 2016 13:14:15 +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-net-patricia. * gnu/packages/networking.scm (perl-net-patricia): Add variable. --- gnu/packages/networking.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index b575fce..0312fe5 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -535,3 +535,34 @@ offline emulation of DNS.") "Manages IPv4 and IPv6 addresses and subnets") (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.") (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. +(define-public perl-net-patricia + (package + (name "perl-net-patricia") + (version "1.22") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/G/GR/GRUBER/Net-Patricia-" + version + ".tar.gz")) + (sha256 + (base32 + "0ln5f57vc8388kyh9vhx2infrdzfhbpgyby74h1qsnhwds95m0vh")))) + (build-system perl-build-system) + (inputs + `(("perl-net-cidr-lite" ,perl-net-cidr-lite) + ("perl-socket6" ,perl-socket6))) + (home-page + "http://search.cpan.org/dist/Net-Patricia") + (synopsis + "Patricia Trie Perl module for fast IP address lookups") + (description + "Net::Patricia does IP address lookups quickly in Perl.") + ;; The bindings are licensed under GPL2 or later. + ;; libpatricia is licensed under 2-clause BSD. + (license (list license:gpl2+ license:bsd-2))))