perl-net-ssleay: Perl Module Net::SSLeay
authorJens Wagner <[email protected]>
Tue, 20 May 2025 07:43:54 +0000 (09:43 +0200)
committerRobert Marko <[email protected]>
Tue, 27 May 2025 07:47:29 +0000 (09:47 +0200)
Perl bindings for OpenSSL and LibreSSL

Signed-off-by: Jens Wagner <[email protected]>
lang/perl-net-ssleay/Makefile [new file with mode: 0644]
lang/perl-net-ssleay/patches/001-prefix.patch [new file with mode: 0644]

diff --git a/lang/perl-net-ssleay/Makefile b/lang/perl-net-ssleay/Makefile
new file mode 100644 (file)
index 0000000..5467636
--- /dev/null
@@ -0,0 +1,44 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=perl-net-ssleay
+PKG_VERSION:=1.94
+PKG_RELEASE:=1
+
+PKG_SOURCE_NAME:=Net-SSLeay
+PKG_SOURCE_URL:=https://cpan.metacpan.org/authors/id/C/CH/CHRISN
+PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz
+PKG_HASH:=9d7be8a56d1bedda05c425306cc504ba134307e0c09bda4a788c98744ebcd95d
+PKG_BUILD_DIR:=$(BUILD_DIR)/perl/$(PKG_SOURCE_NAME)-$(PKG_VERSION)
+
+PKG_MAINTAINER:=Jens Wagner <[email protected]>
+PKG_LICENSE:=GPL-1.0-or-later Artistic-1.0-Perl
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_BUILD_DEPENDS:=openssl
+
+include $(INCLUDE_DIR)/package.mk
+include ../perl/perlmod.mk
+
+define Package/perl-net-ssleay
+  SUBMENU:=Perl
+  SECTION:=lang
+  CATEGORY:=Languages
+  TITLE:=Perl bindings for OpenSSL and LibreSSL
+  URL:=https://metacpan.org/pod/Net::SSLeay
+  DEPENDS:=perl +perlbase-essential +perlbase-mime +libopenssl +zlib
+endef
+
+define Build/Configure
+       $(call perlmod/Configure,,)
+endef
+
+define Build/Compile
+       $(call perlmod/Compile,,)
+endef
+
+define Package/perl-net-ssleay/install
+       $(call perlmod/Install,$(1),Net auto/Net)
+endef
+
+$(eval $(call BuildPackage,perl-net-ssleay))
+
diff --git a/lang/perl-net-ssleay/patches/001-prefix.patch b/lang/perl-net-ssleay/patches/001-prefix.patch
new file mode 100644 (file)
index 0000000..7b85d46
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -12,6 +12,8 @@ use File::Spec::Functions qw(catfile);
+ use Symbol qw(gensym);
+ use Text::Wrap;
++$ENV{OPENSSL_PREFIX} = $ENV{STAGING_PREFIX};
++
+ # According to http://cpanwiki.grango.org/wiki/CPANAuthorNotes, the ideal
+ # behaviour to exhibit when a prerequisite does not exist is to use exit code 0
+ # to ensure smoke testers stop immediately without reporting a FAIL; in all