Add package perl-crypt-ssleay to enable SSL support in LWP.

I use this to enable https support in perl-www-mechanize.

Signed-off-by: Robert Högberg <robert.hogb...@gmail.com>
---
diff --git a/lang/perl-crypt-ssleay/Makefile b/lang/perl-crypt-ssleay/Makefile
new file mode 100644
index 0000000..260e829
--- /dev/null
+++ b/lang/perl-crypt-ssleay/Makefile
@@ -0,0 +1,44 @@
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=perl-crypt-ssleay
+PKG_VERSION:=0.64
+PKG_RELEASE:=1
+
+PKG_SOURCE:=Crypt-SSLeay-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://search.cpan.org/CPAN/authors/id/N/NA/NANIS
+PKG_MD5SUM:=4812f14d6e8c71714a26c0ad733666dc
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Crypt-SSLeay-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+include ../perl/perlmod.mk
+
+define Package/perl-crypt-ssleay
+  SUBMENU:=Perl
+  SECTION:=lang
+  CATEGORY:=Languages
+  TITLE:=OpenSSL support for LWP
+  URL:=http://search.cpan.org/dist/Crypt-SSLeay
+  DEPENDS:=perl +perl-www +perlbase-mime +libopenssl
+endef
+
+define Build/Configure
+       $(call perlmod/Configure,$(STAGING_DIR)/usr/include,)
+endef
+
+define Build/Compile
+       $(call perlmod/Compile,,)
+endef
+
+define Package/perl-crypt-ssleay/install
+       $(call perlmod/Install,$(1),Crypt/SSLeay Crypt/SSLeay.pm Net/SSL.pm 
auto/Crypt/SSLeay)
+endef
+
+$(eval $(call BuildPackage,perl-crypt-ssleay))
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to