Initial Commit
- initial default booting image
This commit is contained in:
36
package/perl-net-ssleay/0001-fix-build-system.patch
Normal file
36
package/perl-net-ssleay/0001-fix-build-system.patch
Normal file
@@ -0,0 +1,36 @@
|
||||
buildsystem: fix for cross-compilation
|
||||
|
||||
Avoid running the openssl binary, since it would break for
|
||||
cross-compilation. Buildroot has a supported version, anyway.
|
||||
|
||||
Also, avoid adding hard-coded includes and libraries search
|
||||
paths, since they are missing the destdir; Buildroot compilers
|
||||
and linkers already know where to search, anyway.
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
[Fabrice: update for 1.93_01]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
|
||||
diff -durN perl-net-ssleay-1.64.orig/inc/Module/Install/PRIVATE/Net/SSLeay.pm perl-net-ssleay-1.64/inc/Module/Install/PRIVATE/Net/SSLeay.pm
|
||||
--- perl-net-ssleay-1.64.orig/Makefile.PL 2014-04-01 08:08:37.000000000 +0200
|
||||
+++ perl-net-ssleay-1.64/Makefile.PL 2014-07-13 00:38:46.281380282 +0200
|
||||
@@ -192,12 +192,16 @@
|
||||
exit MISSING_PREREQ;
|
||||
}
|
||||
|
||||
- check_openssl_version($prefix, $exec);
|
||||
+# Does not work for cross-compilation.
|
||||
+# In Buildroot, we do have a supported version.
|
||||
+# check_openssl_version($prefix, $exec);
|
||||
my %args = (
|
||||
CCCDLFLAGS => $opts->{cccdlflags},
|
||||
OPTIMIZE => $opts->{optimize},
|
||||
- INC => qq{-I"$opts->{inc_path}"},
|
||||
- LIBS => join(' ', (map '-L'.maybe_quote($_), @{$opts->{lib_paths}}), (map {"-l$_"} @{$opts->{lib_links}})),
|
||||
+# Buildroot already has the correct include and library search paths.
|
||||
+# INC => qq{-I"$opts->{inc_path}"},
|
||||
+# LIBS => join(' ', (map '-L'.maybe_quote($_), @{$opts->{lib_paths}}), (map {"-l$_"} @{$opts->{lib_links}})),
|
||||
+ LIBS => join(' ', (map {"-l$_"} @{$opts->{lib_links}})),
|
||||
);
|
||||
# From HMBRAND to handle multple version of OPENSSL installed
|
||||
if (my $lp = join " " => map '-L'.maybe_quote($_), @{$opts->{lib_paths} || []})
|
||||
13
package/perl-net-ssleay/Config.in
Normal file
13
package/perl-net-ssleay/Config.in
Normal file
@@ -0,0 +1,13 @@
|
||||
config BR2_PACKAGE_PERL_NET_SSLEAY
|
||||
bool "perl-net-ssleay"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
select BR2_PACKAGE_OPENSSL
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL
|
||||
select BR2_PACKAGE_LIBOPENSSL_ENABLE_RMD160 if BR2_PACKAGE_LIBOPENSSL
|
||||
help
|
||||
Perl extension for using OpenSSL.
|
||||
|
||||
https://metacpan.org/release/Net-SSLeay
|
||||
|
||||
comment "perl-net-ssleay needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
6
package/perl-net-ssleay/perl-net-ssleay.hash
Normal file
6
package/perl-net-ssleay/perl-net-ssleay.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# retrieved by scancpan from http://cpan.metacpan.org/
|
||||
md5 63772ad94b874b5f0f025c2a4285f82f Net-SSLeay-1.96.tar.gz
|
||||
sha256 ab213691685fb2a576c669cbc8d9266f8165a31563ad15b7c4030b94adfc0753 Net-SSLeay-1.96.tar.gz
|
||||
|
||||
# computed by scancpan
|
||||
sha256 685e534b60d4e2b4fbb1a259a83b5a86e877a919bbb9efc95994276f706a3a71 LICENSE
|
||||
34
package/perl-net-ssleay/perl-net-ssleay.mk
Normal file
34
package/perl-net-ssleay/perl-net-ssleay.mk
Normal file
@@ -0,0 +1,34 @@
|
||||
################################################################################
|
||||
#
|
||||
# perl-net-ssleay
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PERL_NET_SSLEAY_VERSION = 1.96
|
||||
PERL_NET_SSLEAY_SOURCE = Net-SSLeay-$(PERL_NET_SSLEAY_VERSION).tar.gz
|
||||
PERL_NET_SSLEAY_SITE = $(BR2_CPAN_MIRROR)/authors/id/C/CH/CHRISN
|
||||
PERL_NET_SSLEAY_DEPENDENCIES = openssl
|
||||
PERL_NET_SSLEAY_LICENSE = Artistic-2.0
|
||||
PERL_NET_SSLEAY_LICENSE_FILES = LICENSE
|
||||
PERL_NET_SSLEAY_DISTNAME = Net-SSLeay
|
||||
|
||||
# Try as hard as possible to remedy to the brain-damage their build-system
|
||||
# suffers from: don't search for openssl, they pick the host-system one.
|
||||
PERL_NET_SSLEAY_CONF_ENV = OPENSSL_PREFIX=$(STAGING_DIR)/usr
|
||||
|
||||
# Remove problematic single quotes in LDDLFLAGS, CCFLAGS & OPTIMIZE definition
|
||||
define PERL_NET_SSLEAY_FIX_MAKEFILE
|
||||
$(SED) "s/^LDDLFLAGS = '\(.*\)'/LDDLFLAGS = \1/" $(@D)/Makefile
|
||||
$(SED) "s/^CCFLAGS = '\(.*\)'/CCFLAGS = \1/" $(@D)/Makefile
|
||||
$(SED) "s/^OPTIMIZE = '\(.*\)'/OPTIMIZE = \1/" $(@D)/Makefile
|
||||
endef
|
||||
PERL_NET_SSLEAY_POST_CONFIGURE_HOOKS += PERL_NET_SSLEAY_FIX_MAKEFILE
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBRESSL),y)
|
||||
define PERL_NET_SSLEAY_DROP_ZLIB_MAKEFILE
|
||||
$(SED) "s/-lz//" $(@D)/Makefile
|
||||
endef
|
||||
PERL_NET_SSLEAY_POST_CONFIGURE_HOOKS += PERL_NET_SSLEAY_DROP_ZLIB_MAKEFILE
|
||||
endif
|
||||
|
||||
$(eval $(perl-package))
|
||||
Reference in New Issue
Block a user