diff options
author | Danny Milosavljevic <dannym@scratchpost.org> | 2016-07-28 23:38:21 +0200 |
---|---|---|
committer | Leo Famulari <leo@famulari.name> | 2016-08-08 22:36:36 -0400 |
commit | 1201eab9c46d9d478f1bd2a35f88416fc824d502 (patch) | |
tree | 366374dd0ca77b4287c1ae9a531c89a5acc6cb08 /gnu/packages/networking.scm | |
parent | 8d60dd71745d8e76df408378e56f8cfdcf0122c5 (diff) | |
download | guix-1201eab9c46d9d478f1bd2a35f88416fc824d502.tar.gz |
gnu: Add perl-netaddr-ip.
* gnu/packages/networking.scm (perl-netaddr-ip): New variable. Signed-off-by: Leo Famulari <leo@famulari.name>
Diffstat (limited to 'gnu/packages/networking.scm')
-rw-r--r-- | gnu/packages/networking.scm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 8b0a28591c..271f848197 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -498,3 +498,36 @@ definitions and structure manipulators for Perl.") (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)))) |