From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v4 05/16] gnu: Add perl-netaddr-ip. Date: Thu, 28 Jul 2016 13:22:49 +0200 Message-ID: <20160728132249.024229ff@scratchpost.org> References: <20160728131932.0387fb87@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]:49695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSjOv-0007H0-PB for guix-devel@gnu.org; Thu, 28 Jul 2016 07:22:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSjOt-0000QT-Gd for guix-devel@gnu.org; Thu, 28 Jul 2016 07:22:52 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:55319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSjOt-0000Q9-97 for guix-devel@gnu.org; Thu, 28 Jul 2016 07:22:51 -0400 Received: from localhost (178.112.81.47.wireless.dyn.drei.com [178.112.81.47]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 9E57C1CA06E3 for ; Thu, 28 Jul 2016 13:22:50 +0200 (CEST) In-Reply-To: <20160728131932.0387fb87@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-netaddr-ip. * gnu/packages/networking.scm (perl-netaddr-ip): New variable. --- gnu/packages/networking.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index a69ef0e..b575fce 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -502,3 +502,36 @@ emulation of DNS") (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for offline emulation of DNS.") (license (package-license perl)))) + +(define-public perl-netaddr-ip + (package + (name "perl-netaddr-ip") + (version "4.079") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://cpan/authors/id/M/MI/MIKER/NetAddr-IP-" + version + ".tar.gz")) + (sha256 + (base32 + "1rx0dinrz9fk9qcg4rwqq5n1dm3xv2arymixpclcv2q2nzgq4npc")))) + (build-system perl-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (args `("Makefile.PL" + ,(string-append "PREFIX=" out) + "INSTALLDIRS=site"))) + (setenv "CONFIG_SHELL" (which "sh")) + (zero? (apply system* "perl" args)))))))) + (home-page + "http://search.cpan.org/dist/NetAddr-IP") + (synopsis + "Manages IPv4 and IPv6 addresses and subnets") + (description "NetAddr::IP manages IPv4 and IPv6 addresses and subsets.") + (license (package-license perl))))