Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas De Schampheleire <patrickdepinguin@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 11/12] package/perl-crypt-ssleay: new package
Date: Mon, 10 Feb 2020 11:47:04 +0100	[thread overview]
Message-ID: <20200210104706.19186-12-patrickdepinguin@gmail.com> (raw)
In-Reply-To: <20200210104706.19186-1-patrickdepinguin@gmail.com>

From: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>

Added via utils/scancpan, adding a host dependency to perl-try-tiny and
target dependency to openssl.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
---
 DEVELOPERS                                    |  1 +
 package/Config.in                             |  1 +
 package/perl-crypt-ssleay/Config.in           | 12 ++++++
 .../perl-crypt-ssleay/perl-crypt-ssleay.hash  |  6 +++
 .../perl-crypt-ssleay/perl-crypt-ssleay.mk    | 18 ++++++++
 package/perl-try-tiny/perl-try-tiny.mk        |  1 +
 .../tests/package/test_perl_crypt_ssleay.py   | 43 +++++++++++++++++++
 7 files changed, 82 insertions(+)
 create mode 100644 package/perl-crypt-ssleay/Config.in
 create mode 100644 package/perl-crypt-ssleay/perl-crypt-ssleay.hash
 create mode 100644 package/perl-crypt-ssleay/perl-crypt-ssleay.mk
 create mode 100644 support/testing/tests/package/test_perl_crypt_ssleay.py

diff --git a/DEVELOPERS b/DEVELOPERS
index c8b71ee7c1..4e4f96354e 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2379,6 +2379,7 @@ F:	package/perl-convert-asn1/
 F:	package/perl-crypt-blowfish/
 F:	package/perl-crypt-cbc/
 F:	package/perl-crypt-openssl-aes/
+F:	package/perl-crypt-ssleay/
 F:	package/perl-i18n/
 F:	package/perl-locale-maketext-lexicon/
 F:	package/perl-lwp-protocol-https/
diff --git a/package/Config.in b/package/Config.in
index 05dd1e452f..931f68fc35 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -724,6 +724,7 @@ menu "Perl libraries/modules"
 	source "package/perl-crypt-openssl-aes/Config.in"
 	source "package/perl-crypt-openssl-random/Config.in"
 	source "package/perl-crypt-openssl-rsa/Config.in"
+	source "package/perl-crypt-ssleay/Config.in"
 	source "package/perl-data-dump/Config.in"
 	source "package/perl-data-optlist/Config.in"
 	source "package/perl-data-uuid/Config.in"
diff --git a/package/perl-crypt-ssleay/Config.in b/package/perl-crypt-ssleay/Config.in
new file mode 100644
index 0000000000..92ea354b46
--- /dev/null
+++ b/package/perl-crypt-ssleay/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_PERL_CRYPT_SSLEAY
+	bool "perl-crypt-ssleay"
+	depends on !BR2_STATIC_LIBS
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_PERL_LWP_PROTOCOL_HTTPS # runtime
+	help
+	  OpenSSL support for LWP.
+
+	  https://metacpan.org/release/Crypt-SSLeay
+
+comment "perl-crypt-ssleay needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
diff --git a/package/perl-crypt-ssleay/perl-crypt-ssleay.hash b/package/perl-crypt-ssleay/perl-crypt-ssleay.hash
new file mode 100644
index 0000000000..c5427bfec9
--- /dev/null
+++ b/package/perl-crypt-ssleay/perl-crypt-ssleay.hash
@@ -0,0 +1,6 @@
+# retrieved by scancpan from http://cpan.metacpan.org/
+md5    77d955c9056dbb12413d95d8852a9cdf Crypt-SSLeay-0.72.tar.gz
+sha256 f5d34f813677829857cf8a0458623db45b4d9c2311daaebe446f9e01afa9ffe8 Crypt-SSLeay-0.72.tar.gz
+
+# computed by scancpan
+sha256 5c21a4393be5a9d307fd1dd2274e5d261a3213272277c2b72e7321db51e4bad7 README.md
diff --git a/package/perl-crypt-ssleay/perl-crypt-ssleay.mk b/package/perl-crypt-ssleay/perl-crypt-ssleay.mk
new file mode 100644
index 0000000000..9564ee2b38
--- /dev/null
+++ b/package/perl-crypt-ssleay/perl-crypt-ssleay.mk
@@ -0,0 +1,18 @@
+################################################################################
+#
+# perl-crypt-ssleay
+#
+################################################################################
+
+PERL_CRYPT_SSLEAY_VERSION = 0.72
+PERL_CRYPT_SSLEAY_SOURCE = Crypt-SSLeay-$(PERL_CRYPT_SSLEAY_VERSION).tar.gz
+PERL_CRYPT_SSLEAY_SITE = $(BR2_CPAN_MIRROR)/authors/id/N/NA/NANIS
+PERL_CRYPT_SSLEAY_DEPENDENCIES = \
+	openssl \
+	host-perl-path-class \
+	host-perl-try-tiny
+PERL_CRYPT_SSLEAY_LICENSE = Artistic-2.0
+PERL_CRYPT_SSLEAY_LICENSE_FILES = README.md
+PERL_CRYPT_SSLEAY_DISTNAME = Crypt-SSLeay
+
+$(eval $(perl-package))
diff --git a/package/perl-try-tiny/perl-try-tiny.mk b/package/perl-try-tiny/perl-try-tiny.mk
index f13e2ee59f..62fb1bbace 100644
--- a/package/perl-try-tiny/perl-try-tiny.mk
+++ b/package/perl-try-tiny/perl-try-tiny.mk
@@ -12,3 +12,4 @@ PERL_TRY_TINY_LICENSE_FILES = LICENCE
 PERL_TRY_TINY_DISTNAME = Try-Tiny
 
 $(eval $(perl-package))
+$(eval $(host-perl-package))
diff --git a/support/testing/tests/package/test_perl_crypt_ssleay.py b/support/testing/tests/package/test_perl_crypt_ssleay.py
new file mode 100644
index 0000000000..e6093b3938
--- /dev/null
+++ b/support/testing/tests/package/test_perl_crypt_ssleay.py
@@ -0,0 +1,43 @@
+from tests.package.test_perl import TestPerlBase
+
+
+class TestPerlCryptSSLeay(TestPerlBase):
+    """
+    package:
+        Crypt-SSLeay   XS
+    direct dependencies:
+        LWP-Protocol-https
+    indirect dependencies:
+        Encode-Locale
+        File-Listing
+        HTML-Parser   XS
+        HTML-Tagset
+        HTTP-Cookies
+        HTTP-Daemon
+        HTTP-Date
+        HTTP-Message
+        HTTP-Negotiate
+        IO-HTML
+        IO-Socket-SSL
+        LWP-MediaTypes
+        Mozilla-CA
+        Net-HTTP
+        Net-SSLeay   XS
+        TimeDate
+        Try-Tiny
+        URI
+        WWW-RobotRules
+        libwww-perl
+    """
+
+    config = TestPerlBase.config + \
+        """
+        BR2_PACKAGE_PERL=y
+        BR2_PACKAGE_PERL_CRYPT_SSLEAY=y
+        """
+
+    def test_run(self):
+        self.login()
+        self.module_test("HTML::Parser")
+        self.module_test("Net::SSLeay")
+        self.module_test("Crypt::SSLeay")
-- 
2.24.1

  parent reply	other threads:[~2020-02-10 10:47 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-10 10:46 [Buildroot] [PATCH 00/12] More perl packages + chartjs Thomas De Schampheleire
2020-02-10 10:46 ` [Buildroot] [PATCH 01/12] package/perl-locale-maketext-lexicon: new package Thomas De Schampheleire
2020-02-10 10:46 ` [Buildroot] [PATCH 02/12] package/perl-i18n: " Thomas De Schampheleire
2020-02-10 10:46 ` [Buildroot] [PATCH 03/12] package/perl-mojolicious-plugin-authorization: " Thomas De Schampheleire
2020-02-10 10:46 ` [Buildroot] [PATCH 04/12] package/perl-mojolicious-plugin-cspheader: " Thomas De Schampheleire
2020-02-10 10:46 ` [Buildroot] [PATCH 05/12] package/perl-mojolicious-plugin-i18n: " Thomas De Schampheleire
2020-02-10 11:10   ` Thomas De Schampheleire
2020-02-10 10:46 ` [Buildroot] [PATCH 06/12] package/perl-mojolicious-plugin-securityheader: " Thomas De Schampheleire
2020-02-10 10:47 ` [Buildroot] [PATCH 07/12] package/chartjs: " Thomas De Schampheleire
2020-02-10 10:47 ` [Buildroot] [PATCH 08/12] package/perl-mozilla-ca: " Thomas De Schampheleire
2020-02-10 10:47 ` [Buildroot] [PATCH 09/12] package/perl-lwp-protocol-https: " Thomas De Schampheleire
2020-02-10 10:47 ` [Buildroot] [PATCH 10/12] package/perl-path-class: new host package Thomas De Schampheleire
2020-02-10 10:47 ` Thomas De Schampheleire [this message]
2020-02-10 10:47 ` [Buildroot] [PATCH 12/12] support/testing: add missing test file for perl-html-parser Thomas De Schampheleire
2020-02-10 16:45   ` François Perrad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200210104706.19186-12-patrickdepinguin@gmail.com \
    --to=patrickdepinguin@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox