From c30cec814486b393e9d02d4be2132c007fd1b516 Mon Sep 17 00:00:00 2001 From: Jens Wagner Date: Mon, 2 Jun 2025 11:42:49 +0200 Subject: [PATCH] perl-io-async-ssl: Perl Module IO::Async::SSL This module extends existing IO::Async classes with methods to allow the use of SSL or TLS-based connections Required be e.g. Net::Async::HTTP to support https:// Signed-off-by: Jens Wagner --- lang/perl-io-async-ssl/Makefile | 46 ++++++++++++++++++++++++++ lang/perl-io-async-ssl/src/Makefile.PL | 20 +++++++++++ 2 files changed, 66 insertions(+) create mode 100644 lang/perl-io-async-ssl/Makefile create mode 100644 lang/perl-io-async-ssl/src/Makefile.PL diff --git a/lang/perl-io-async-ssl/Makefile b/lang/perl-io-async-ssl/Makefile new file mode 100644 index 0000000000..13dbfed29e --- /dev/null +++ b/lang/perl-io-async-ssl/Makefile @@ -0,0 +1,46 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=perl-io-async-ssl +PKG_VERSION:=0.25 +PKG_RELEASE:=1 + +PKG_SOURCE_NAME:=IO-Async-SSL +PKG_SOURCE_URL:=https://cpan.metacpan.org/authors/id/P/PE/PEVANS +PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz +PKG_HASH:=4def485db1eff4e139b4b5912202c0fd61c3aed2cec35bd5ab8bf7bbd83f5a75 +PKG_BUILD_DIR:=$(BUILD_DIR)/perl/$(PKG_SOURCE_NAME)-$(PKG_VERSION) + +PKG_MAINTAINER:=Jens Wagner +PKG_LICENSE:=GPL-1.0-or-later Artistic-1.0-Perl +PKG_LICENSE_FILES:=LICENSE + +include $(INCLUDE_DIR)/package.mk +include ../perl/perlmod.mk + +define Package/perl-io-async-ssl + SUBMENU:=Perl + SECTION:=lang + CATEGORY:=Languages + TITLE:=SSL/TLS with IO::Async + URL:=https://metacpan.org/pod/IO::Async::SSL + DEPENDS:=perl +perlbase-io +perl-future +perl-io-async +endef + +define Package/perl-io-async-ssl/description + This module extends existing IO::Async classes with extra methods to + allow the use of SSL or TLS-based connections using IO::Socket::SSL. +endef + +define Build/Configure + $(call perlmod/Configure,,) +endef + +define Build/Compile + $(call perlmod/Compile,,) +endef + +define Package/perl-io-async-ssl/install + $(call perlmod/Install,$(1),IO) +endef + +$(eval $(call BuildPackage,perl-io-async-ssl)) diff --git a/lang/perl-io-async-ssl/src/Makefile.PL b/lang/perl-io-async-ssl/src/Makefile.PL new file mode 100644 index 0000000000..2f948c20fe --- /dev/null +++ b/lang/perl-io-async-ssl/src/Makefile.PL @@ -0,0 +1,20 @@ +use 5.014; +use ExtUtils::MakeMaker; +WriteMakefile +( + 'NAME' => 'IO::Async::SSL', + 'VERSION_FROM' => 'lib/IO/Async/SSL.pm', + 'PREREQ_PM' => { + 'Future' => '0.33', + 'IO::Async::Loop' => '0.66', + 'IO::Async::Handle' => '0.29', + 'IO::Async::Protocol::Stream' => 0, + 'IO::Async::Stream' => '0.59', + 'IO::Socket::SSL' => '2.003', + }, + 'INSTALLDIRS' => 'site', + 'EXE_FILES' => [], + 'PL_FILES' => {} +) +; +