* [PATCH v5 01/17] gnu: Add perl-db-file.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-07-31 11:39 ` Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 02/17] gnu: Add perl-net-dns Danny Milosavljevic
` (17 subsequent siblings)
18 siblings, 1 reply; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 197 bytes --]
gnu: Add perl-db-file.
* gnu/packages/databases.scm (perl-db-file): New variable.
---
gnu/packages/databases.scm | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-perl-db-file.patch --]
[-- Type: text/x-patch; name="0001-gnu-Add-perl-db-file.patch", Size: 1527 bytes --]
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index f088062..3bdb37b 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1046,3 +1046,35 @@ trees (LSM), for sustained throughput under random insert workloads.")
(description
"The DB::File module provides Perl bindings to the Berkeley DB version 1.x.")
(license (package-license perl))))
+
+(define-public perl-db-file
+ (package
+ (name "perl-db-file")
+ (version "1.838")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/P/PM/PMQS/DB_File-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0yp5d5zr8dk9g6xdh7ygi5bq63q7nxvhd58dk2i3ki4nb7yv2yh9"))))
+ (build-system perl-build-system)
+ (inputs `(("bdb" ,bdb)))
+ (native-inputs `(("perl-test-pod" ,perl-test-pod)))
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-before
+ 'configure 'modify-config.in
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "config.in"
+ (("/usr/local/BerkeleyDB") (assoc-ref inputs "bdb")))
+ #t)))))
+ (home-page "http://search.cpan.org/dist/DB_File")
+ (synopsis
+ "Perl5 access to Berkeley DB version 1.x")
+ (description
+ "DB::File provides Perl bindings to Berkeley DB version 1.x.")
+ (license (package-license perl))))
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [PATCH v5 02/17] gnu: Add perl-net-dns.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 01/17] gnu: Add perl-db-file Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 03/17] gnu: Add perl-socket6 Danny Milosavljevic
` (16 subsequent siblings)
18 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 191 bytes --]
gnu: Add perl-net-dns.
* gnu/packages/networking.scm (perl-net-dns): New variable.
---
gnu/packages/networking.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-gnu-Add-perl-net-dns.patch --]
[-- Type: text/x-patch; name="0002-gnu-Add-perl-net-dns.patch", Size: 1470 bytes --]
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 1ef401f..0568836 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -24,6 +24,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages networking)
+ #:use-module (guix build-system perl)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
@@ -412,3 +413,26 @@ HTTP(S) request, and receive the reply headers. It is somewhat similar to
by firewalls or when you want to monitor the response time of the actual web
application stack itself.")
(license license:gpl2))) ; with permission to link with OpenSSL
+
+(define-public perl-net-dns
+ (package
+ (name "perl-net-dns")
+ (version "1.06")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/N/NL/NLNETLABS/Net-DNS-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "07m5331132h9xkh1i6jv9d80f571yva27iqa31aq4sm31iw7nn53"))))
+ (build-system perl-build-system)
+ (inputs
+ `(("perl-digest-hmac" ,perl-digest-hmac)))
+ (home-page "http://search.cpan.org/dist/Net-DNS")
+ (synopsis
+ "Perl Interface to the Domain Name System")
+ (description "Net::DNS is the Perl Interface to the Domain Name System.")
+ (license license:x11)))
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [PATCH v5 03/17] gnu: Add perl-socket6.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 01/17] gnu: Add perl-db-file Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 02/17] gnu: Add perl-net-dns Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 04/17] gnu: Add perl-net-dns-resolver-programmable Danny Milosavljevic
` (15 subsequent siblings)
18 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 200 bytes --]
gnu: Add perl-socket6.
* gnu/packages/networking.scm (perl-socket6): New variable.
---
gnu/packages/networking.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0003-gnu-Add-perl-socket6.patch --]
[-- Type: text/x-patch; name="0003-gnu-Add-perl-socket6.patch", Size: 1615 bytes --]
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 0568836..a6318b2 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -436,3 +436,36 @@ application stack itself.")
"Perl Interface to the Domain Name System")
(description "Net::DNS is the Perl Interface to the Domain Name System.")
(license license:x11)))
+
+(define-public perl-socket6
+ (package
+ (name "perl-socket6")
+ (version "0.28")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/U/UM/UMEMOTO/Socket6-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "11j5jzqbzmwlws9zals43ry2f1nw9qy6im7yhn9ck5rikywrmm5z"))))
+ (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/Socket6")
+ (synopsis
+ "IPv6 related part of the C socket.h defines and structure manipulators for Perl")
+ (description "Socket6 binds the IPv6 related part of the C socket header
+definitions and structure manipulators for Perl.")
+ (license license:bsd-3)))
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [PATCH v5 04/17] gnu: Add perl-net-dns-resolver-programmable.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (2 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 03/17] gnu: Add perl-socket6 Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-08-08 19:41 ` Leo Famulari
2016-07-28 21:38 ` [PATCH v5 05/17] gnu: Add perl-netaddr-ip Danny Milosavljevic
` (14 subsequent siblings)
18 siblings, 1 reply; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 244 bytes --]
gnu: Add perl-net-dns-resolver-programmable.
* gnu/packages/networking.scm (perl-net-dns-resolver-programmable): New variable.
---
gnu/packages/networking.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0004-gnu-Add-perl-net-dns-resolver-programmable.patch --]
[-- Type: text/x-patch; name="0004-gnu-Add-perl-net-dns-resolver-programmable.patch", Size: 1642 bytes --]
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index a6318b2..a69ef0e 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -469,3 +469,36 @@ application stack itself.")
(description "Socket6 binds the IPv6 related part of the C socket header
definitions and structure manipulators for Perl.")
(license license:bsd-3)))
+
+(define-public perl-net-dns-resolver-programmable
+ (package
+ (name "perl-net-dns-resolver-programmable")
+ (version "v0.003")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
+ "Net-DNS-Resolver-Programmable-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
+ (patches
+ (list (origin
+ (method url-fetch)
+ (uri "https://rt.cpan.org/Public/Ticket/Attachment/1575108/841078/patch.txt")
+ (sha256
+ (base32
+ "027fzq1dryqwhkprz4r32vj78qfdnx1mhjx6piag7p62p5npmdic")))))))
+ (build-system perl-build-system)
+ (native-inputs
+ `(("perl-module-build" ,perl-module-build)))
+ (inputs `(("perl-net-dns" ,perl-net-dns)))
+ (home-page
+ "http://search.cpan.org/dist/Net-DNS-Resolver-Programmable")
+ (synopsis
+ "programmable DNS resolver class for offline
+emulation of DNS")
+ (description "Net::DNS::Resolver::Programmable is a programmable DNS resolver for
+offline emulation of DNS.")
+ (license (package-license perl))))
^ permalink raw reply related [flat|nested] 30+ messages in thread
* Re: [PATCH v5 04/17] gnu: Add perl-net-dns-resolver-programmable.
2016-07-28 21:38 ` [PATCH v5 04/17] gnu: Add perl-net-dns-resolver-programmable Danny Milosavljevic
@ 2016-08-08 19:41 ` Leo Famulari
2016-08-08 21:08 ` Danny Milosavljevic
0 siblings, 1 reply; 30+ messages in thread
From: Leo Famulari @ 2016-08-08 19:41 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
On Thu, Jul 28, 2016 at 11:38:20PM +0200, Danny Milosavljevic wrote:
>
> gnu: Add perl-net-dns-resolver-programmable.
>
> * gnu/packages/networking.scm (perl-net-dns-resolver-programmable): New variable.
I'm going through v5 of this patch series. This is the first patch I
have a question about.
> +(define-public perl-net-dns-resolver-programmable
> + (package
> + (name "perl-net-dns-resolver-programmable")
> + (version "v0.003")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (string-append
> + "mirror://cpan/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/"
> + "Net-DNS-Resolver-Programmable-" version ".tar.gz"))
> + (sha256
> + (base32
> + "1v3nl2kaj4fs55n1617n53q8sa3mir06898vpy1rq98zjih24h4d"))
> + (patches
> + (list (origin
> + (method url-fetch)
> + (uri "https://rt.cpan.org/Public/Ticket/Attachment/1575108/841078/patch.txt")
> + (sha256
> + (base32
> + "027fzq1dryqwhkprz4r32vj78qfdnx1mhjx6piag7p62p5npmdic")))))))
Can you send a comment explaining why we have to apply this patch? Its
URL does not enable me to "go back" to the relevant discussion and learn
the context or identity of the author.
Assuming we keep the upstream patch, I will download it and add it to
'gnu/packages/patches', and apply it using the method seen in the cpio
package definition. I can do that on my own, or you can submit a v6 of
this patch.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [PATCH v5 04/17] gnu: Add perl-net-dns-resolver-programmable.
2016-08-08 19:41 ` Leo Famulari
@ 2016-08-08 21:08 ` Danny Milosavljevic
0 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-08-08 21:08 UTC (permalink / raw)
To: Leo Famulari; +Cc: guix-devel
Hi Leo,
> Can you send a comment explaining why we have to apply this patch? Its
> URL does not enable me to "go back" to the relevant discussion and learn
> the context or identity of the author.
Mail-SPF uses a programmable (mock) DNS server to run its tests.
That's what Net-DNS-Resolver-Programmable is supposed to do. Unfortunately it doesn't work without the patch.
It said:
> t/00.04-class-server.t test fails: [...] ok 19 - Server "A" dns_lookup() answer RR type Unknown error on DNS 'A' lookup of 'example.com' (EDNSError) at /home/test/fedora/perl-Mail-SPF/Mail-SPF-v2.9.0/blib/lib/Mail/SPF/Server.pm line 573. # Looks like you planned 23 tests but ran 19. # Looks like your test exited with 255 just after 19.
That's because it was using an undocumented internal method of Net::DNS which is not exposed anymore. The patch makes the call of the undefined method contigent upon it existing. That way, the DNS resolver will actually work.
See also <https://rt.cpan.org/Public/Bug/Display.html?id=95901>.
^ permalink raw reply [flat|nested] 30+ messages in thread
* [PATCH v5 05/17] gnu: Add perl-netaddr-ip.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (3 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 04/17] gnu: Add perl-net-dns-resolver-programmable Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 06/17] gnu: Add perl-net-patricia Danny Milosavljevic
` (13 subsequent siblings)
18 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 206 bytes --]
gnu: Add perl-netaddr-ip.
* gnu/packages/networking.scm (perl-netaddr-ip): New variable.
---
gnu/packages/networking.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0005-gnu-Add-perl-netaddr-ip.patch --]
[-- Type: text/x-patch; name="0005-gnu-Add-perl-netaddr-ip.patch", Size: 1545 bytes --]
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))))
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [PATCH v5 06/17] gnu: Add perl-net-patricia.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (4 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 05/17] gnu: Add perl-netaddr-ip Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-08-08 19:44 ` Leo Famulari
2016-07-28 21:38 ` [PATCH v5 07/17] gnu: Add perl-file-find-object Danny Milosavljevic
` (12 subsequent siblings)
18 siblings, 1 reply; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 208 bytes --]
gnu: Add perl-net-patricia.
* gnu/packages/networking.scm (perl-net-patricia): Add variable.
---
gnu/packages/networking.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0006-gnu-Add-perl-net-patricia.patch --]
[-- Type: text/x-patch; name="0006-gnu-Add-perl-net-patricia.patch", Size: 1544 bytes --]
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 <http://www.mrtd.net/> 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))))
^ permalink raw reply related [flat|nested] 30+ messages in thread
* Re: [PATCH v5 06/17] gnu: Add perl-net-patricia.
2016-07-28 21:38 ` [PATCH v5 06/17] gnu: Add perl-net-patricia Danny Milosavljevic
@ 2016-08-08 19:44 ` Leo Famulari
2016-08-08 21:09 ` Danny Milosavljevic
0 siblings, 1 reply; 30+ messages in thread
From: Leo Famulari @ 2016-08-08 19:44 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
On Thu, Jul 28, 2016 at 11:38:22PM +0200, Danny Milosavljevic wrote:
>
> 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 <http://www.mrtd.net/> for the original package it was extracted from.
> +;; However, the site above doesn't actually work on my computer.
I will drop this comment unless you object. No need to send an updated
patch. And, the original site appears to be offline, with a
"cyber-squatter" on the domain.
^ permalink raw reply [flat|nested] 30+ messages in thread
* [PATCH v5 07/17] gnu: Add perl-file-find-object.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (5 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 06/17] gnu: Add perl-net-patricia Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 08/17] gnu: Add perl-file-find-object-rule Danny Milosavljevic
` (11 subsequent siblings)
18 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 201 bytes --]
gnu: Add perl-file-find-object.
* gnu/packages/perl.scm (perl-file-find-object): New variable.
---
gnu/packages/perl.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0007-gnu-Add-perl-file-find-object.patch --]
[-- Type: text/x-patch; name="0007-gnu-Add-perl-file-find-object.patch", Size: 1174 bytes --]
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index f42abee..8fad274 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6630,3 +6630,31 @@ such that being individual extensions would be wasteful.")
(license (package-license perl))))
;;; END: Core module overrides
+
+(define-public perl-file-find-object
+ (package
+ (name "perl-file-find-object")
+ (version "v0.2.13")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/S/SH/SHLOMIF/File-Find-Object-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0gf13b76b824s73r5rp00v8xrd6dnb5yi5jjavfc394scqv6ldh4"))))
+ (build-system perl-build-system)
+ (native-inputs
+ `(("perl-module-build" ,perl-module-build)))
+ (inputs
+ `(("perl-class-xsaccessor" ,perl-class-xsaccessor)))
+ (home-page
+ "http://search.cpan.org/dist/File-Find-Object")
+ (synopsis
+ "Object-oriented File::Find replacement in Perl")
+ (description "File::Find::Object is an object-oriented
+File::Find replacement in Perl.")
+ (license artistic2.0)))
+
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [PATCH v5 08/17] gnu: Add perl-file-find-object-rule.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (6 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 07/17] gnu: Add perl-file-find-object Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 09/17] gnu: Add perl-test-trailingspace Danny Milosavljevic
` (10 subsequent siblings)
18 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 214 bytes --]
gnu: Add perl-file-find-object-rule.
* gnu/packages/perl.scm (perl-file-find-object-rule): New variable.
---
gnu/packages/perl.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0008-gnu-Add-perl-file-find-object-rule.patch --]
[-- Type: text/x-patch; name="0008-gnu-Add-perl-file-find-object-rule.patch", Size: 1352 bytes --]
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 8fad274..5a867e0 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6658,3 +6658,34 @@ such that being individual extensions would be wasteful.")
File::Find replacement in Perl.")
(license artistic2.0)))
+
+(define-public perl-file-find-object-rule
+ (package
+ (name "perl-file-find-object-rule")
+ (version "0.0305")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/S/SH/SHLOMIF/File-Find-Object-Rule-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0hs4n3w99q4ylkhg3qhzcwkxqn7zblfj1zjdgl06ca30afkk4cv6"))))
+ (build-system perl-build-system)
+ (native-inputs
+ `(("perl-module-build" ,perl-module-build)))
+ (inputs
+ `(("perl-class-xsaccessor" ,perl-class-xsaccessor)
+ ("perl-file-find-object" ,perl-file-find-object)
+ ("perl-number-compare" ,perl-number-compare)
+ ("perl-text-glob" ,perl-text-glob)))
+ (home-page
+ "http://search.cpan.org/dist/File-Find-Object-Rule")
+ (synopsis
+ "Alternative interface to File::Find::Object")
+ (description "File::Find::Object::Rule is an alternative Perl
+interface to File::Find::Object.")
+ (license (package-license perl))))
+
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [PATCH v5 09/17] gnu: Add perl-test-trailingspace.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (7 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 08/17] gnu: Add perl-file-find-object-rule Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 10/17] gnu: Add perl-encode-detect Danny Milosavljevic
` (9 subsequent siblings)
18 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 212 bytes --]
gnu: Add perl-test-trailingspace.
* gnu/packages/perl.scm (perl-test-trailingspace): New variable.
---
gnu/packages/perl.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0009-gnu-Add-perl-test-trailingspace.patch --]
[-- Type: text/x-patch; name="0009-gnu-Add-perl-test-trailingspace.patch", Size: 1391 bytes --]
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 5a867e0..944dbf8 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6689,3 +6689,38 @@ File::Find replacement in Perl.")
interface to File::Find::Object.")
(license (package-license perl))))
+
+(define-public perl-test-trailingspace
+ (package
+ (name "perl-test-trailingspace")
+ (version "0.0300")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/S/SH/SHLOMIF/Test-TrailingSpace-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "01slmrcjfq38mpdg3hlb7lnnbgsqbn26958y3hzx0zwrif40pigr"))))
+ (build-system perl-build-system)
+ (native-inputs
+ `(("perl-module-build" ,perl-module-build)
+ ("perl-file-find-object" ,perl-file-find-object)
+ ("perl-class-xsaccessor" ,perl-class-xsaccessor)))
+ (inputs
+ `(("perl-file-find-object-rule"
+ ,perl-file-find-object-rule)
+ ("perl-text-glob"
+ ,perl-text-glob)
+ ("perl-number-compare"
+ ,perl-number-compare)))
+ (home-page
+ "http://search.cpan.org/dist/Test-TrailingSpace")
+ (synopsis
+ "test for trailing space in Perl source files.")
+ (description "Test::TrailingSpace tests for trailing spaces
+in Perl source files.")
+ (license x11)))
+
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [PATCH v5 10/17] gnu: Add perl-encode-detect.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (8 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 09/17] gnu: Add perl-test-trailingspace Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 11/17] gnu: Add perl-net-cidr-lite Danny Milosavljevic
` (8 subsequent siblings)
18 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 192 bytes --]
gnu: Add perl-encode-detect.
* gnu/packages/perl.scm (perl-encode-detect): Add variable.
---
gnu/packages/perl.scm | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0010-gnu-Add-perl-encode-detect.patch --]
[-- Type: text/x-patch; name="0010-gnu-Add-perl-encode-detect.patch", Size: 1021 bytes --]
diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 944dbf8..2ac70bd 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6724,3 +6724,28 @@ interface to File::Find::Object.")
in Perl source files.")
(license x11)))
+
+(define-public perl-encode-detect
+ (package
+ (name "perl-encode-detect")
+ (version "1.01")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/J/JG/JGMYERS/Encode-Detect-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "1wdv9ffgs4xyfh5dnh09dqkmmlbf5m1hxgdgb3qy6v6vlwx8jkc3"))))
+ (build-system perl-build-system)
+ (inputs
+ `(("perl-module-build" ,perl-module-build)))
+ (home-page
+ "http://search.cpan.org/dist/Encode-Detect")
+ (synopsis
+ "Perl Encode::Encoding subclass that detects the encoding of data")
+ (description "Encode::Detect detects the encoding of data for Perl.")
+ (license mpl1.1)))
+
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [PATCH v5 11/17] gnu: Add perl-net-cidr-lite.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (9 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 10/17] gnu: Add perl-encode-detect Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 12/17] gnu: Add perl-geo-ip Danny Milosavljevic
` (7 subsequent siblings)
18 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 201 bytes --]
gnu: Add perl-net-cidr-lite.
* gnu/packages/networking.scm (perl-net-cidr-lite): Add variable.
---
gnu/packages/networking.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0011-gnu-Add-perl-net-cidr-lite.patch --]
[-- Type: text/x-patch; name="0011-gnu-Add-perl-net-cidr-lite.patch", Size: 1070 bytes --]
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 0312fe5..134ad5d 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -566,3 +566,25 @@ offline emulation of DNS.")
;; The bindings are licensed under GPL2 or later.
;; libpatricia is licensed under 2-clause BSD.
(license (list license:gpl2+ license:bsd-2))))
+
+(define-public perl-net-cidr-lite
+ (package
+ (name "perl-net-cidr-lite")
+ (version "0.21")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/D/DO/DOUGW/Net-CIDR-Lite-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "14shj73zbqmfjbp0qz1fs9j4p2dpvz5hfkm4qfdjbydflbl2b8fg"))))
+ (build-system perl-build-system)
+ (home-page
+ "http://search.cpan.org/dist/Net-CIDR-Lite")
+ (synopsis
+ "Perl extension for merging IPv4 or IPv6 CIDR addresses")
+ (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
+ (license license:gpl1+)))
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [PATCH v5 12/17] gnu: Add perl-geo-ip.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (10 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 11/17] gnu: Add perl-net-cidr-lite Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-08-08 19:46 ` Leo Famulari
2016-07-28 21:38 ` [PATCH v5 13/17] gnu: Add perl-crypt-openssl-rsa Danny Milosavljevic
` (6 subsequent siblings)
18 siblings, 1 reply; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 189 bytes --]
gnu: Add perl-geo-ip.
* gnu/packages/networking.scm (perl-geo-ip): Add variable.
---
gnu/packages/networking.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0012-gnu-Add-perl-geo-ip.patch --]
[-- Type: text/x-patch; name="0012-gnu-Add-perl-geo-ip.patch", Size: 1227 bytes --]
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 134ad5d..660c025 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -588,3 +588,27 @@ offline emulation of DNS.")
"Perl extension for merging IPv4 or IPv6 CIDR addresses")
(description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
(license license:gpl1+)))
+
+;; TODO: Use the geolite-mirror-simple.pl script from the example
+;; directory to stay current with the databases. How?
+(define-public perl-geo-ip
+ (package
+ (name "perl-geo-ip")
+ (version "1.45")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/M/MA/MAXMIND/Geo-IP-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0qinkq2br1cjicbgqb5bvrhm73h7f9f4fgc6bjfs5r6x7316bdqf"))))
+ (build-system perl-build-system)
+ (home-page "http://search.cpan.org/dist/Geo-IP")
+ (synopsis
+ "Look up location and network information by IP Address in Perl")
+ (description "The Perl module 'Geo::IP'.
+It looks up location and network information by IP Address.")
+ (license (package-license perl))))
^ permalink raw reply related [flat|nested] 30+ messages in thread
* Re: [PATCH v5 12/17] gnu: Add perl-geo-ip.
2016-07-28 21:38 ` [PATCH v5 12/17] gnu: Add perl-geo-ip Danny Milosavljevic
@ 2016-08-08 19:46 ` Leo Famulari
2016-08-08 22:50 ` Danny Milosavljevic
0 siblings, 1 reply; 30+ messages in thread
From: Leo Famulari @ 2016-08-08 19:46 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
On Thu, Jul 28, 2016 at 11:38:28PM +0200, Danny Milosavljevic wrote:
>
> gnu: Add perl-geo-ip.
>
> * gnu/packages/networking.scm (perl-geo-ip): Add variable.
> ---
> gnu/packages/networking.scm | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
>
> diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
> index 134ad5d..660c025 100644
> --- a/gnu/packages/networking.scm
> +++ b/gnu/packages/networking.scm
> @@ -588,3 +588,27 @@ offline emulation of DNS.")
> "Perl extension for merging IPv4 or IPv6 CIDR addresses")
> (description "Net::CIDR::Lite merges IPv4 or IPv6 CIDR addresses.")
> (license license:gpl1+)))
> +
> +;; TODO: Use the geolite-mirror-simple.pl script from the example
> +;; directory to stay current with the databases. How?
Good question. Any progress? I don't think it should block the package,
right?
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [PATCH v5 12/17] gnu: Add perl-geo-ip.
2016-08-08 19:46 ` Leo Famulari
@ 2016-08-08 22:50 ` Danny Milosavljevic
0 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-08-08 22:50 UTC (permalink / raw)
To: Leo Famulari; +Cc: guix-devel
On Mon, 8 Aug 2016 15:46:16 -0400
Leo Famulari <leo@famulari.name> wrote:
> On Thu, Jul 28, 2016 at 11:38:28PM +0200, Danny Milosavljevic wrote:
> > +;; TODO: Use the geolite-mirror-simple.pl script from the example
> > +;; directory to stay current with the databases. How?
>
> Good question. Any progress?
Not really. The same problem should have existed with (glibc) timezone files, leap seconds and hddtemp config data. How has it been handled there?
(Aha, hddtemp is missing entirely)
> I don't think it should block the package, right?
No. I think that geoip locations are approximate anyway, so whether or not the database is up to date is not so important.
^ permalink raw reply [flat|nested] 30+ messages in thread
* [PATCH v5 13/17] gnu: Add perl-crypt-openssl-rsa.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (11 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 12/17] gnu: Add perl-geo-ip Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 14/17] gnu: Add perl-crypt-openssl-bignum Danny Milosavljevic
` (5 subsequent siblings)
18 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 202 bytes --]
gnu: Add perl-crypt-openssl-rsa.
* gnu/packages/tls.scm (perl-crypt-openssl-rsa): Add variable.
---
gnu/packages/tls.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0013-gnu-Add-perl-crypt-openssl-rsa.patch --]
[-- Type: text/x-patch; name="0013-gnu-Add-perl-crypt-openssl-rsa.patch", Size: 1385 bytes --]
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index bdc1d7c..d992c51 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -527,3 +527,32 @@ finally access to the SSL api of the SSLeay/OpenSSL package so you can write
servers or clients for more complicated applications.")
(license (package-license perl))
(home-page "http://search.cpan.org/~mikem/Net-SSLeay-1.66/")))
+
+(define-public perl-crypt-openssl-rsa
+ (package
+ (name "perl-crypt-openssl-rsa")
+ (version "0.28")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/P/PE/PERLER/Crypt-OpenSSL-RSA-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "1gnpvv09b2gpifwdzc5jnhama3d1a4c39lzj9hcaicsb8rvzjmsk"))))
+ (build-system perl-build-system)
+ (inputs
+ `(("perl-crypt-openssl-bignum"
+ ,perl-crypt-openssl-bignum)
+ ("perl-crypt-openssl-random"
+ ,perl-crypt-openssl-random)
+ ("openssl" ,openssl)))
+ (arguments perl-crypt-arguments)
+ (home-page
+ "http://search.cpan.org/dist/Crypt-OpenSSL-RSA")
+ (synopsis
+ "RSA encoding and decoding, using the openSSL libraries")
+ (description "Crypt::OpenSSL::RSA does RSA encoding and decoding (using the OpenSSL libraries).")
+ (license (package-license perl))))
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [PATCH v5 14/17] gnu: Add perl-crypt-openssl-bignum.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (12 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 13/17] gnu: Add perl-crypt-openssl-rsa Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-08-08 19:54 ` Leo Famulari
2016-07-28 21:38 ` [PATCH v5 15/17] gnu: Add perl-mail-spf Danny Milosavljevic
` (4 subsequent siblings)
18 siblings, 1 reply; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 246 bytes --]
gnu: Add perl-crypt-openssl-bignum.
* gnu/packages/tls.scm (perl-crypt-openssl-bignum, perl-crypt-openssl-arguments): New variables.
---
gnu/packages/tls.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0014-gnu-Add-perl-crypt-openssl-bignum.patch --]
[-- Type: text/x-patch; name="0014-gnu-Add-perl-crypt-openssl-bignum.patch", Size: 1762 bytes --]
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index d992c51..fba130b 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -556,3 +556,39 @@ servers or clients for more complicated applications.")
"RSA encoding and decoding, using the openSSL libraries")
(description "Crypt::OpenSSL::RSA does RSA encoding and decoding (using the OpenSSL libraries).")
(license (package-license perl))))
+
+(define perl-crypt-arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-before 'configure 'patch-Makefile.PL
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "Makefile.PL"
+ (("'LIBS'.*=>.*") (string-append "'LIBS' => ['-L"
+ (assoc-ref inputs "openssl")
+ "/lib -lcrypto'],")))
+ #t)))))
+
+(define-public perl-crypt-openssl-bignum
+ (package
+ (name "perl-crypt-openssl-bignum")
+ (version "0.06")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/K/KM/KMX/Crypt-OpenSSL-Bignum-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "05yzrdglrrzp191krf77zrwfkmzrfwrsrx1vyskbj94522lszk67"))))
+ (build-system perl-build-system)
+ (inputs `(("openssl" ,openssl)))
+ (arguments perl-crypt-arguments)
+ (home-page
+ "http://search.cpan.org/dist/Crypt-OpenSSL-Bignum")
+ (synopsis
+ "OpenSSL's multiprecision integer arithmetic in Perl")
+ (description "Crypt::OpenSSL::Bignum provides multiprecision integer
+arithmetic in Perl.")
+ ;; At your option either gpl1+ or the Artistic License
+ (license (package-license perl))))
^ permalink raw reply related [flat|nested] 30+ messages in thread
* Re: [PATCH v5 14/17] gnu: Add perl-crypt-openssl-bignum.
2016-07-28 21:38 ` [PATCH v5 14/17] gnu: Add perl-crypt-openssl-bignum Danny Milosavljevic
@ 2016-08-08 19:54 ` Leo Famulari
2016-08-08 21:18 ` Danny Milosavljevic
0 siblings, 1 reply; 30+ messages in thread
From: Leo Famulari @ 2016-08-08 19:54 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
On Thu, Jul 28, 2016 at 11:38:30PM +0200, Danny Milosavljevic wrote:
>
> gnu: Add perl-crypt-openssl-bignum.
>
> * gnu/packages/tls.scm (perl-crypt-openssl-bignum, perl-crypt-openssl-arguments): New variables.
> ---
> gnu/packages/tls.scm | 36 ++++++++++++++++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
>
> diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
> index d992c51..fba130b 100644
> --- a/gnu/packages/tls.scm
> +++ b/gnu/packages/tls.scm
> @@ -556,3 +556,39 @@ servers or clients for more complicated applications.")
> "RSA encoding and decoding, using the openSSL libraries")
> (description "Crypt::OpenSSL::RSA does RSA encoding and decoding (using the OpenSSL libraries).")
> (license (package-license perl))))
> +
> +(define perl-crypt-arguments
> + `(#:phases (modify-phases %standard-phases
> + (add-before 'configure 'patch-Makefile.PL
> + (lambda* (#:key inputs #:allow-other-keys)
> + (substitute* "Makefile.PL"
> + (("'LIBS'.*=>.*") (string-append "'LIBS' => ['-L"
> + (assoc-ref inputs "openssl")
> + "/lib -lcrypto'],")))
> + #t)))))
I see this variable is also used in perl-crypt-openssl-random. I don't
have a very strong sense of Scheme style yet, but so far I've seen
things like this duplicated between package definitions. I think it's
better to reduce the proliferation of non-package variables in
gnu/packages... what do you think?
I can amend the patches if you agree.
^ permalink raw reply [flat|nested] 30+ messages in thread
* [PATCH v5 15/17] gnu: Add perl-mail-spf.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (13 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 14/17] gnu: Add perl-crypt-openssl-bignum Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 16/17] gnu: Add perl-io-socket-inet6 Danny Milosavljevic
` (3 subsequent siblings)
18 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 216 bytes --]
gnu: Add perl-mail-spf.
* gnu/package/mail.scm (perl-mail-spf): New variable.
---
gnu/packages/mail.scm | 45 ++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 44 insertions(+), 1 deletion(-)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0015-gnu-Add-perl-mail-spf.patch --]
[-- Type: text/x-patch; name="0015-gnu-Add-perl-mail-spf.patch", Size: 2455 bytes --]
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index f7a7623..98ca623 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -71,11 +71,13 @@
#:use-module (gnu packages gdb)
#:use-module (gnu packages samba)
#:use-module (gnu packages tls)
+ #:use-module (gnu packages networking)
+ #:use-module (gnu packages web)
#:use-module (gnu packages xml)
#:use-module (gnu packages xorg)
#:use-module ((guix licenses)
#:select (gpl2 gpl2+ gpl3 gpl3+ lgpl2.1 lgpl2.1+ lgpl3+
- non-copyleft (expat . license:expat)))
+ non-copyleft (expat . license:expat) bsd-3))
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
@@ -1262,3 +1264,44 @@ synchronizing with a remote address book, @command{vdirsyncer} is recommended.
Khard can also be used from within the email client @command{mutt}.")
(home-page "https://github.com/scheibler/khard")
(license gpl3+)))
+
+(define-public perl-mail-spf
+ (package
+ (name "perl-mail-spf")
+ (version "v2.9.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/J/JM/JMEHNLE/mail-spf/Mail-SPF-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0qk1rfgfm5drj4iyniiabrasrpqv570vzhgz66lwgb67y4amkjv1"))))
+ (build-system perl-build-system)
+ (native-inputs
+ `(("perl-module-build" ,perl-module-build)
+ ("perl-net-dns-resolver-programmable"
+ ,perl-net-dns-resolver-programmable)))
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (add-before 'configure 'modify-Build.PL
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "Build.PL"
+ (("'/usr/sbin'") (string-append "'"
+ (assoc-ref outputs "out")
+ "/sbin'")))
+ #t)))))
+ (inputs
+ `(("perl-error" ,perl-error)
+ ("perl-net-dns" ,perl-net-dns)
+ ("perl-netaddr-ip" ,perl-netaddr-ip)
+ ("perl-uri" ,perl-uri)))
+ (home-page
+ "http://search.cpan.org/dist/Mail-SPF")
+ (synopsis
+ "Perl implementation of Sender Policy Framework")
+ (description "Mail::SPF is the Sender Policy Framework implemented
+in Perl.")
+ (license bsd-3)))
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [PATCH v5 16/17] gnu: Add perl-io-socket-inet6
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (14 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 15/17] gnu: Add perl-mail-spf Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-07-28 21:38 ` [PATCH v5 17/17] gnu: Add perl-crypt-openssl-random Danny Milosavljevic
` (2 subsequent siblings)
18 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 215 bytes --]
gnu: Add perl-io-socket-inet6
* gnu/packages/networking.scm (perl-io-socket-inet6): New variable.
---
gnu/packages/networking.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0016-gnu-Add-perl-io-socket-inet6.patch --]
[-- Type: text/x-patch; name="0016-gnu-Add-perl-io-socket-inet6.patch", Size: 1531 bytes --]
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 660c025..1ff3be4 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -612,3 +612,36 @@ offline emulation of DNS.")
(description "The Perl module 'Geo::IP'.
It looks up location and network information by IP Address.")
(license (package-license perl))))
+
+(define-public perl-io-socket-inet6
+ (package
+ (name "perl-io-socket-inet6")
+ (version "2.72")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/S/SH/SHLOMIF/IO-Socket-INET6-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "1fqypz6qa5rw2d5y2zq7f49frwra0aln13nhq5gi514j2zx21q45"))))
+ (build-system perl-build-system)
+ (native-inputs
+ `(("perl-module-build" ,perl-module-build)
+ ("perl-test-pod" ,perl-test-pod)
+ ("perl-test-pod-coverage" ,perl-test-pod-coverage)
+ ;; this doesn't actually work if we do add it.
+ #| ("perl-test-trailingspace" ,perl-test-trailingspace) |#))
+ (inputs `(("perl-socket6" ,perl-socket6)))
+ (arguments `(;; Need network socket API
+ #:tests? #f))
+ (home-page
+ "http://search.cpan.org/dist/IO-Socket-INET6")
+ (synopsis
+ "Perl object interface for AF_INET/AF_INET6 domain sockets")
+ (description "IO::Socket::INET6 is an interface for
+AF_INET/AF_INET6 domain sockets in Perl.")
+ (license (package-license perl))))
+
^ permalink raw reply related [flat|nested] 30+ messages in thread
* [PATCH v5 17/17] gnu: Add perl-crypt-openssl-random.
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (15 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 16/17] gnu: Add perl-io-socket-inet6 Danny Milosavljevic
@ 2016-07-28 21:38 ` Danny Milosavljevic
2016-08-08 19:54 ` [PATCH v5 00/17] Add missing dependencies of Spamassassin Leo Famulari
2016-08-09 2:38 ` Leo Famulari
18 siblings, 0 replies; 30+ messages in thread
From: Danny Milosavljevic @ 2016-07-28 21:38 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 203 bytes --]
gnu: Add perl-crypt-openssl-random.
* gnu/packages/tls.scm (perl-crypt-openssl-random): New variable.
---
gnu/packages/tls.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0017-gnu-Add-perl-crypt-openssl-random.patch --]
[-- Type: text/x-patch; name="0017-gnu-Add-perl-crypt-openssl-random.patch", Size: 1172 bytes --]
diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm
index fba130b..cd7d003 100644
--- a/gnu/packages/tls.scm
+++ b/gnu/packages/tls.scm
@@ -592,3 +592,27 @@ servers or clients for more complicated applications.")
arithmetic in Perl.")
;; At your option either gpl1+ or the Artistic License
(license (package-license perl))))
+
+(define-public perl-crypt-openssl-random
+ (package
+ (name "perl-crypt-openssl-random")
+ (version "0.11")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "mirror://cpan/authors/id/R/RU/RURBAN/Crypt-OpenSSL-Random-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "0yjcabkibrkafywvdkmd1xpi6br48skyk3l15ni176wvlg38335v"))))
+ (build-system perl-build-system)
+ (inputs `(("openssl" ,openssl)))
+ (arguments perl-crypt-arguments)
+ (home-page
+ "http://search.cpan.org/dist/Crypt-OpenSSL-Random")
+ (synopsis
+ "OpenSSL/LibreSSL pseudo-random number generator access")
+ (description "Crypt::OpenSSL::Random is a OpenSSL/LibreSSL pseudo-random number generator")
+ (license (package-license perl))))
^ permalink raw reply related [flat|nested] 30+ messages in thread
* Re: [PATCH v5 00/17] Add missing dependencies of Spamassassin
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (16 preceding siblings ...)
2016-07-28 21:38 ` [PATCH v5 17/17] gnu: Add perl-crypt-openssl-random Danny Milosavljevic
@ 2016-08-08 19:54 ` Leo Famulari
2016-08-09 2:38 ` Leo Famulari
18 siblings, 0 replies; 30+ messages in thread
From: Leo Famulari @ 2016-08-08 19:54 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
On Thu, Jul 28, 2016 at 11:38:16PM +0200, Danny Milosavljevic wrote:
> This patch series adds almost all of the dependencies of Spamassassin.
Thanks for taking on this big project!
I sent my comments. Please reply so we can have Spamassassin in Guix :)
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: [PATCH v5 00/17] Add missing dependencies of Spamassassin
2016-07-28 21:38 [PATCH v5 00/17] Add missing dependencies of Spamassassin Danny Milosavljevic
` (17 preceding siblings ...)
2016-08-08 19:54 ` [PATCH v5 00/17] Add missing dependencies of Spamassassin Leo Famulari
@ 2016-08-09 2:38 ` Leo Famulari
18 siblings, 0 replies; 30+ messages in thread
From: Leo Famulari @ 2016-08-09 2:38 UTC (permalink / raw)
To: Danny Milosavljevic; +Cc: guix-devel
On Thu, Jul 28, 2016 at 11:38:16PM +0200, Danny Milosavljevic wrote:
> This patch series adds almost all of the dependencies of Spamassassin.
I pushed this series, with the previously discussed changes and some
style edits and linter fixes where necessary, bringing HEAD to
cccb4d2652.
> gnu: Add perl-geo-ip.
I updated this to the latest release, 1.50, which was released on
2016-07-21.
^ permalink raw reply [flat|nested] 30+ messages in thread