perl-io-async-ssl: Perl Module IO::Async::SSL
authorJens Wagner <redacted>
Mon, 2 Jun 2025 09:42:49 +0000 (11:42 +0200)
committerJosef Schlehofer <redacted>
Mon, 2 Jun 2025 11:36:08 +0000 (13:36 +0200)
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 <redacted>
lang/perl-io-async-ssl/Makefile [new file with mode: 0644]
lang/perl-io-async-ssl/src/Makefile.PL [new file with mode: 0644]

diff --git a/lang/perl-io-async-ssl/Makefile b/lang/perl-io-async-ssl/Makefile
new file mode 100644 (file)
index 0000000..13dbfed
--- /dev/null
@@ -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 <jens@wagner2013.de>
+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 (file)
index 0000000..2f948c2
--- /dev/null
@@ -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' => {}
+)
+;
+
git clone https://git.99rst.org/PROJECT