From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v5 06/17] gnu: Add perl-net-patricia. Date: Thu, 28 Jul 2016 23:38:22 +0200 Message-ID: <20160728213833.22057-7-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]:35250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSt1Y-0007gk-IW for guix-devel@gnu.org; Thu, 28 Jul 2016 17:39:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSt1W-00067w-CS for guix-devel@gnu.org; Thu, 28 Jul 2016 17:39:23 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:55084) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSt1W-00067Z-4W for guix-devel@gnu.org; Thu, 28 Jul 2016 17:39:22 -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-net-patricia. * gnu/packages/networking.scm (perl-net-patricia): Add variable. --- gnu/packages/networking.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) --------------2.9.1 Content-Type: text/x-patch; name="0006-gnu-Add-perl-net-patricia.patch" Content-Disposition: attachment; filename="0006-gnu-Add-perl-net-patricia.patch" Content-Transfer-Encoding: quoted-printable 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 n= ow). +;; 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)))) --------------2.9.1--