Subject: [bug#55656] [PATCH 2/2] gnu: Add perl-http-daemon-ssl.

From: Christopher Baines <[email-masked]>
Date: Fri, 27 May 2022 10:47:53 +0100

Attila Lendvai <[email-masked]> writes:

> ---
> i've decided to send this patch together with the perl-http-daemon,
> because they depend on each other. pardon the missing 1/2 annotation
> on the first patch.
>
> this will be needed by an upcoming ddclient update.
>
>  gnu/packages/web.scm | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
>
> diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
> index 0186ac06e5..3d642aec26 100644
> --- a/gnu/packages/web.scm
> +++ b/gnu/packages/web.scm
> @@ -3483,6 +3483,33 @@ (define-public perl-http-daemon
>  IO::Socket::INET, so you can perform socket operations directly on it too.")
>      (home-page "https://metacpan.org/release/HTTP-Daemon")))
>  
> +(define-public perl-http-daemon-ssl
> +  (package
> +    (name "perl-http-daemon-ssl")
> +    (version "1.04")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append
> +             "mirror://cpan/authors/id/A/AU/AUFFLICK/HTTP-Daemon-SSL-"
> +             version
> +             ".tar.gz"))
> +       (sha256
> +        (base32 "0bn2blg2dzbyqnvbxs4ch2chqnfn9xvmnl6kvy988k4k5m10bbky"))))
> +    (build-system perl-build-system)
> +    (propagated-inputs
> +     (list perl-http-daemon perl-io-socket-ssl))
> +    (arguments
> +     ;; The tests want to connect to a local HTTPS server; see SSL_SERVER_ADDR.
> +     `(#:tests? #f))
> +    (home-page "https://metacpan.org/release/HTTP-Daemon-SSL")
> +    (synopsis "Perl simple http server class with SSL support")
> +    (description
> +     "Instances of the HTTP::Daemon::SSL class are HTTP/1.1 servers that listen
> +on a socket for incoming requests.  The HTTP::Daemon::SSL is a sub-class of
> +IO::Socket::SSL, so you can perform socket operations directly on it too.")
> +    (license license:perl-license)))
> +
>  (define-public perl-http-date
>    (package
>      (name "perl-http-date")

Looking at what Debian ship for this, I think they use
https://github.com/aufflick/p5-http-daemon-ssl as the source, which
looks to still be very old, but maybe have some fixes over the 1.04
version.

Does that look like it could be sensible to use?