From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH v5 05/17] gnu: Add perl-netaddr-ip. Date: Thu, 28 Jul 2016 23:38:21 +0200 Message-ID: <20160728213833.22057-6-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]:35235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSt1X-0007fj-Fh for guix-devel@gnu.org; Thu, 28 Jul 2016 17:39:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSt1V-00067C-6b for guix-devel@gnu.org; Thu, 28 Jul 2016 17:39:22 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:55083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSt1U-00066w-Va for guix-devel@gnu.org; Thu, 28 Jul 2016 17:39:21 -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-netaddr-ip. * gnu/packages/networking.scm (perl-netaddr-ip): New variable. --- gnu/packages/networking.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) --------------2.9.1 Content-Type: text/x-patch; name="0005-gnu-Add-perl-netaddr-ip.patch" Content-Disposition: attachment; filename="0005-gnu-Add-perl-netaddr-ip.patch" Content-Transfer-Encoding: quoted-printable 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 r= esolver 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=3D" out) + "INSTALLDIRS=3Dsite"))) + (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)))) --------------2.9.1--