diff options
Diffstat (limited to 'meta-perl/recipes-perl/libnet')
-rw-r--r-- | meta-perl/recipes-perl/libnet/libnet-dns-perl_1.14.bb | 27 | ||||
-rw-r--r-- | meta-perl/recipes-perl/libnet/libnet-dns-perl_1.45.bb | 64 | ||||
-rw-r--r-- | meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb | 31 | ||||
-rw-r--r-- | meta-perl/recipes-perl/libnet/libnet-idn-encode/Net-IDN-Encode-2.500-use_uvchr_to_utf8_flags_instead_of_uvuni_to_utf8_flags.patch | 36 | ||||
-rw-r--r-- | meta-perl/recipes-perl/libnet/libnet-idn-encode_2.500.bb | 25 | ||||
-rw-r--r-- | meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.65.bb | 29 | ||||
-rw-r--r-- | meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.68.bb | 43 | ||||
-rw-r--r-- | meta-perl/recipes-perl/libnet/libnet-libidn-perl_0.12.bb | 8 | ||||
-rw-r--r-- | meta-perl/recipes-perl/libnet/libnet-ssleay-perl/no-exec-on-configure.patch | 37 | ||||
-rw-r--r-- | meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.85.bb (renamed from meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.84.bb) | 23 | ||||
-rw-r--r-- | meta-perl/recipes-perl/libnet/libnet-telnet-perl_3.05.bb (renamed from meta-perl/recipes-perl/libnet/libnet-telnet-perl_3.04.bb) | 10 |
11 files changed, 257 insertions, 76 deletions
diff --git a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.14.bb b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.14.bb deleted file mode 100644 index efaa7f7b1d..0000000000 --- a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.14.bb +++ /dev/null @@ -1,27 +0,0 @@ -DESCRIPTION = "This package contains the DNS.pm module with friends." -HOMEPAGE = "http://www.net-dns.org/" -SECTION = "libs" -LICENSE = "Artistic-1.0 | GPL-1.0+" - -LIC_FILES_CHKSUM = "file://README;md5=92d93d8c5bf22de77578531e283dd219" - -DEPENDS += "perl" - -SRC_URI = "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz" - -SRC_URI[md5sum] = "0da1099c0a3548d36ea9e31d5bb9e122" -SRC_URI[sha256sum] = "83c38a594eeb2c85d66e60047a0f5b403f34bd92a5d13606f02e828d450299fc" - -S = "${WORKDIR}/Net-DNS-${PV}" - -EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}" - -inherit cpan - -RDEPENDS_${PN} = "perl-module-integer" - -do_compile() { - export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')" - cpan_do_compile -} -BBCLASSEXTEND = "native" diff --git a/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.45.bb b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.45.bb new file mode 100644 index 0000000000..21f5b7f576 --- /dev/null +++ b/meta-perl/recipes-perl/libnet/libnet-dns-perl_1.45.bb @@ -0,0 +1,64 @@ +DESCRIPTION = "This package contains the DNS.pm module with friends." +HOMEPAGE = "http://www.net-dns.org/" +SECTION = "libs" +LICENSE = "MIT" + +LIC_FILES_CHKSUM = "file://README;beginline=252;endline=269;md5=de95b6a896d5f861d724ea854d316a0b" + +DEPENDS += "perl" + +SRC_URI = "http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/Net-DNS-${PV}.tar.gz" + +SRC_URI[sha256sum] = "39f4b82ffe822f4d28691f6c4260f6f1fe6b5a09b546b56dd2410c21b38c1380" + +UPSTREAM_CHECK_REGEX = "Net\-DNS\-(?P<pver>(\d+\.\d+))(?!_\d+).tar" + +S = "${WORKDIR}/Net-DNS-${PV}" + +EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}" + +inherit cpan ptest-perl + +RDEPENDS:${PN} = " \ + libdigest-hmac-perl \ + perl-module-base \ + perl-module-constant \ + perl-module-digest-md5 \ + perl-module-digest-sha \ + perl-module-file-spec \ + perl-module-integer \ + perl-module-io-file \ + perl-module-io-select \ + perl-module-io-socket \ + perl-module-io-socket-ip \ + perl-module-mime-base64 \ + perl-module-scalar-util \ + perl-module-test-more \ + perl-module-time-local \ +" + +RRECOMMENDS:${PN} += " \ + libnet-dns-sec-perl \ +" + +RDEPENDS:${PN}-ptest += " \ + perl-module-encode \ + perl-module-encode-byte \ + perl-module-extutils-mm \ + perl-module-extutils-mm-unix \ + perl-module-overload \ +" + +python __anonymous () { + # rather than use "find" to determine libc-*.so, + # statically export the known paths for glibc and musl + import os + if d.getVar('TCLIBC') == "glibc": + os.environ["LIBC"] = "${STAGING_BASELIBDIR}/libc.so.6" + elif d.getVar('TCLIBC') == "musl": + os.environ["LIBC"] = "${STAGING_LIBDIR}/libc.so" + else: + raise bb.parse.SkipRecipe("incompatible with %s C library" % + d.getVar('TCLIBC')) +} + diff --git a/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb b/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb new file mode 100644 index 0000000000..fe7bb3326e --- /dev/null +++ b/meta-perl/recipes-perl/libnet/libnet-dns-sec-perl_1.10.bb @@ -0,0 +1,31 @@ +DESCRIPTION = "DNSSEC extensions to Net::DNS" +HOMEPAGE = "http://www.net-dns.org/" +SECTION = "libs" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://README;beginline=165;endline=192;md5=6ef523fa09e8c272675839e21de16bde" + +SRC_URI = "https://cpan.metacpan.org/authors/id/W/WI/WILLEM/Net-DNS-SEC-${PV}.tar.gz" +SRC_URI[md5sum] = "ffa55a9898192c9d4c623cb1357eba9b" +SRC_URI[sha256sum] = "37a47d4def72d7338f3cc7cd807ec19bd9e2ae638ae656fa536cf0314801989e" + +DEPENDS += "openssl" + +UPSTREAM_CHECK_REGEX = "Net\-DNS\-SEC\-(?P<pver>(\d+\.\d+))(?!_\d+).tar" + +S = "${WORKDIR}/Net-DNS-SEC-${PV}" + +EXTRA_CPANFLAGS = "INC='-I${STAGING_INCDIR}' LIBS='-L${STAGING_LIBDIR} -lssl -L${STAGING_BASELIBDIR} -lcrypto'" + +inherit cpan ptest-perl + +RDEPENDS:${PN} = " \ + libnet-dns-perl \ + libcrypto \ + perl-module-dynaloader \ + perl-module-file-find \ + perl-module-file-spec \ + perl-module-io-file \ + perl-module-mime-base64 \ + perl-module-test-more \ +" diff --git a/meta-perl/recipes-perl/libnet/libnet-idn-encode/Net-IDN-Encode-2.500-use_uvchr_to_utf8_flags_instead_of_uvuni_to_utf8_flags.patch b/meta-perl/recipes-perl/libnet/libnet-idn-encode/Net-IDN-Encode-2.500-use_uvchr_to_utf8_flags_instead_of_uvuni_to_utf8_flags.patch new file mode 100644 index 0000000000..f0e9010bf4 --- /dev/null +++ b/meta-perl/recipes-perl/libnet/libnet-idn-encode/Net-IDN-Encode-2.500-use_uvchr_to_utf8_flags_instead_of_uvuni_to_utf8_flags.patch @@ -0,0 +1,36 @@ +Subject: [PATCH] use uvchr_to_utf8_flags instead of uvuni_to_utf8_flags (which is removed in perl 5.38.0) + +https://perldoc.perl.org/5.36.0/perlintern#uvuni_to_utf8_flags +Signed-off-by: Shin Kojima <shin@kojima.org> +Upstream-Status: Submitted [https://github.com/cfaerber/Net-IDN-Encode/pull/11] +--- + lib/Net/IDN/Punycode.xs | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/lib/Net/IDN/Punycode.xs b/lib/Net/IDN/Punycode.xs +index 211ef9c..36530dd 100644 +--- a/lib/Net/IDN/Punycode.xs ++++ b/lib/Net/IDN/Punycode.xs +@@ -24,6 +24,10 @@ + #define utf8_to_uvchr_buf(in_p,in_e,u8) utf8_to_uvchr(in_p,u8); + #endif + ++#ifndef uvchr_to_utf8_flags ++#define uvchr_to_utf8_flags(d, uv, flags) uvuni_to_utf8_flags(d, uv, flags); ++#endif ++ + static char enc_digit[BASE] = { + 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', + 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', +@@ -253,7 +257,7 @@ decode_punycode(input) + if(skip_p < re_p) /* move succeeding chars */ + Move(skip_p, skip_p + u8, re_p - skip_p, char); + re_p += u8; +- uvuni_to_utf8_flags((U8*)skip_p, n, UNICODE_ALLOW_ANY); ++ uvchr_to_utf8_flags((U8*)skip_p, n, UNICODE_ALLOW_ANY); + } + + if(!first) SvUTF8_on(RETVAL); /* UTF-8 chars have been inserted */ +-- +2.41.0 + diff --git a/meta-perl/recipes-perl/libnet/libnet-idn-encode_2.500.bb b/meta-perl/recipes-perl/libnet/libnet-idn-encode_2.500.bb new file mode 100644 index 0000000000..7f33fd2b1f --- /dev/null +++ b/meta-perl/recipes-perl/libnet/libnet-idn-encode_2.500.bb @@ -0,0 +1,25 @@ +SUMMARY = "IDN Perl module" +DESCRIPTION = "This module provides an easy-to-use interface for encoding \ + and decoding Internationalized Domain Names (IDNs)." + +SECTION = "libs" + +LICENSE = "Artistic-1.0 | GPL-1.0-or-later" +LIC_FILES_CHKSUM = "file://LICENSE;md5=8ea5704cf65ca4ec6e9e167fb94f14dd" + +SRC_URI = "${CPAN_MIRROR}/authors/id/C/CF/CFAERBER/Net-IDN-Encode-${PV}.tar.gz \ + file://Net-IDN-Encode-2.500-use_uvchr_to_utf8_flags_instead_of_uvuni_to_utf8_flags.patch \ +" +SRC_URI[sha256sum] = "55453633e3ff24ce325b34bc2c8157b9859962a31ab5cf28bf7ccc1c9b3a3eaa" + +S = "${WORKDIR}/Net-IDN-Encode-${PV}" + +inherit cpan ptest-perl + +do_configure:prepend() { + perl -pi -e 's/auto_install_now.*//g' Makefile.PL +} + +BBCLASSEXTEND = "native" + +RDEPENDS:${PN} += "perl-module-unicode-normalize perl-module-encode-encoding" diff --git a/meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.65.bb b/meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.65.bb deleted file mode 100644 index f2b1f1634d..0000000000 --- a/meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.65.bb +++ /dev/null @@ -1,29 +0,0 @@ -SUMMARY = "LDAP Perl module" -DESCRIPTION = "Net::LDAP is a collection of modules that implements \ -a LDAP services API for Perl programs. The module may be used to \ -search directories or perform maintenance functions such as adding, \ -deleting or modifying entries." - -SECTION = "libs" - -LICENSE = "Artistic-1.0|GPLv1+" -LIC_FILES_CHKSUM = "file://README;beginline=3;endline=5;md5=4d6588c2fa0d38ae162f6314d201d89e" - -SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MA/MARSCHAP/perl-ldap-${PV}.tar.gz" - -SRC_URI[md5sum] = "d057c8db76913d95c0e460c7bdd98b27" -SRC_URI[sha256sum] = "5f57dd261dc16ebf942a272ddafe69526598df71151a51916edc37a4f2f23834" - -S = "${WORKDIR}/perl-ldap-${PV}" - -inherit cpan - -do_configure_prepend() { - perl -pi -e 's/auto_install_now.*//g' Makefile.PL -} - -RDEPENDS_${PN} = "perl \ - libconvert-asn1-perl \ - libio-socket-ssl-perl \ - libauthen-sasl-perl \ -" diff --git a/meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.68.bb b/meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.68.bb new file mode 100644 index 0000000000..a77381dce8 --- /dev/null +++ b/meta-perl/recipes-perl/libnet/libnet-ldap-perl_0.68.bb @@ -0,0 +1,43 @@ +SUMMARY = "LDAP Perl module" +DESCRIPTION = "Net::LDAP is a collection of modules that implements \ +a LDAP services API for Perl programs. The module may be used to \ +search directories or perform maintenance functions such as adding, \ +deleting or modifying entries." + +SECTION = "libs" + +LICENSE = "Artistic-1.0 | GPL-1.0-or-later" +LIC_FILES_CHKSUM = "file://README;beginline=3;endline=5;md5=4d6588c2fa0d38ae162f6314d201d89e" + +SRC_URI = "${CPAN_MIRROR}/authors/id/M/MA/MARSCHAP/perl-ldap-${PV}.tar.gz" + +SRC_URI[md5sum] = "d091ed00302f0276069bca9df9478744" +SRC_URI[sha256sum] = "e2f389fe3e7a9e4b61488692919ad723b98f3b479b5288f610daa8c27995b351" + +S = "${WORKDIR}/perl-ldap-${PV}" + +inherit cpan ptest-perl + +do_configure:prepend() { + perl -pi -e 's/auto_install_now.*//g' Makefile.PL +} + +do_install_ptest() { + cp -r ${B}/data ${D}${PTEST_PATH} + chown -R root:root ${D}${PTEST_PATH} +} + +RDEPENDS:${PN} += " \ + libconvert-asn1-perl \ + libio-socket-ssl-perl \ + libauthen-sasl-perl \ + perl-module-integer \ +" + +RDEPENDS:${PN}-ptest += " \ + libxml-sax-base-perl \ + libxml-sax-writer-perl \ + perl-module-file-compare \ + perl-module-perlio \ + perl-module-test-more \ +" diff --git a/meta-perl/recipes-perl/libnet/libnet-libidn-perl_0.12.bb b/meta-perl/recipes-perl/libnet/libnet-libidn-perl_0.12.bb index 1ef9f0bc35..4c4faab4db 100644 --- a/meta-perl/recipes-perl/libnet/libnet-libidn-perl_0.12.bb +++ b/meta-perl/recipes-perl/libnet/libnet-libidn-perl_0.12.bb @@ -5,12 +5,12 @@ Domain Names according to IDNA (RFC 3490), in a way very much inspired by \ Turbo Fredriksson's PHP-IDN. \ " SECTION = "libs" -LICENSE = "Artistic-1.0 | GPLv1+" +LICENSE = "Artistic-1.0 | GPL-1.0-or-later" HOMEPAGE = "http://search.cpan.org/dist/Net-LibIDN/" DEPENDS += "libidn" # We must need glibc-gconvs to enable charset related functions, # such as Net::LibIDN::idn_to_ascii(). -RDEPENDS_${PN}_append_libc-glibc = " glibc-gconvs" +RDEPENDS:${PN}:append:libc-glibc = " glibc-gconvs" SRC_URI = "http://search.cpan.org/CPAN/authors/id/T/TH/THOR/Net-LibIDN-${PV}.tar.gz" SRC_URI[md5sum] = "c3e4de2065009d67bcb1df0afb473e12" @@ -27,8 +27,8 @@ EXTRA_CPANFLAGS += "--disable-tld" inherit cpan -FILES_${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/Net/LibIDN/.debug/" +FILES:${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/Net/LibIDN/.debug/" -do_configure_prepend() { +do_configure:prepend() { rm -rf ${S}/.pc/ } diff --git a/meta-perl/recipes-perl/libnet/libnet-ssleay-perl/no-exec-on-configure.patch b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl/no-exec-on-configure.patch new file mode 100644 index 0000000000..9620df5ece --- /dev/null +++ b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl/no-exec-on-configure.patch @@ -0,0 +1,37 @@ +Avoid running target binaries during in cross build + +Upstream-Status: Inappropriate [Cross-compile specific] +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- a/inc/Module/Install/PRIVATE/Net/SSLeay.pm 2018-08-27 14:56:24.788544991 +0200 ++++ b/inc/Module/Install/PRIVATE/Net/SSLeay.pm 2018-08-27 15:00:12.847266331 +0200 +@@ -24,20 +24,7 @@ + $self->requires_external_cc; + + my $prefix = $self->find_openssl_prefix; +- my $exec = $self->find_openssl_exec($prefix); +- +- unless (-x $exec) { +- print <<EOM; +-*** Could not find OpenSSL +- If it's already installed, please set the OPENSSL_PREFIX environment +- variable accordingly. If it isn't installed yet, get the latest version +- from http://www.openssl.org/. +-EOM +- exit 0; # according http://wiki.cpantesters.org/wiki/CPANAuthorNotes this is best-practice when "missing library" +- } +- +- $self->check_openssl_version($prefix, $exec); +- my $opts = $self->ssleay_get_build_opts($prefix, $exec); ++ my $opts = $self->ssleay_get_build_opts($prefix); + + $self->makemaker_args( + CCCDLFLAGS => $opts->{cccdlflags}, +@@ -58,7 +45,7 @@ + } + + sub ssleay_get_build_opts { +- my ($self, $prefix, $exec) = @_; ++ my ($self, $prefix) = @_; + + my $opts = { + lib_links => [], diff --git a/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.84.bb b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.85.bb index cfecef9cfd..5d0eccd84a 100644 --- a/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.84.bb +++ b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.85.bb @@ -7,11 +7,11 @@ so you can write servers or clients for more complicated applications." HOMEPAGE = "http://search.cpan.org/dist/Net-SSLeay/" SECTION = "libs" -LICENSE = "Artistic-1.0 | GPL-1.0+" +LICENSE = "Artistic-1.0 | GPL-1.0-or-later" LIC_FILES_CHKSUM = "file://README;beginline=274;endline=294;md5=67d67095d83e339da538a082fad5f38e" DEPENDS = "openssl zlib openssl-native" -RDEPENDS_${PN} += "\ +RDEPENDS:${PN} += "\ libssl \ libcrypto \ perl-module-carp \ @@ -19,29 +19,30 @@ RDEPENDS_${PN} += "\ perl-module-extutils-makemaker \ perl-module-mime-base64 \ perl-module-socket \ + perl-module-autoloader \ zlib \ " SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-${PV}.tar.gz \ + file://no-exec-on-configure.patch \ file://run-ptest \ " -SRC_URI[md5sum] = "cfbe968487149626978f427cc9fb8c77" -SRC_URI[sha256sum] = "823ec3cbb428309d6a9e56f362a9300693ce3215b7fede109adb7be361fff177" +SRC_URI[md5sum] = "d602bdce4e0531c6efc276e3e429ca69" +SRC_URI[sha256sum] = "9d8188b9fb1cae3bd791979c20554925d5e94a138d00414f1a6814549927b0c8" S = "${WORKDIR}/Net-SSLeay-${PV}" inherit cpan ptest -export OPENSSL_PREFIX="${STAGING_LIBDIR}" - -EXTRA_CPANFLAGS = "INC=-I${STAGING_INCDIR} LIBS='-L${STAGING_LIBDIR} -lcrypto -lssl -L${STAGING_BASELIBDIR} -lz'" +do_configure() { + export OPENSSL_PREFIX="${STAGING_EXECPREFIXDIR}" + cpan_do_configure +} do_install_ptest() { cp -r ${B}/t ${D}${PTEST_PATH} } -BBCLASSEXTEND = "native" - -FILES_${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Net/SSLeay/.debug/" +FILES:${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Net/SSLeay/.debug/" -RDEPENDS_${PN}-ptest = " perl" +RDEPENDS:${PN}-ptest = " perl" diff --git a/meta-perl/recipes-perl/libnet/libnet-telnet-perl_3.04.bb b/meta-perl/recipes-perl/libnet/libnet-telnet-perl_3.05.bb index 652e8c941e..d1365f269c 100644 --- a/meta-perl/recipes-perl/libnet/libnet-telnet-perl_3.04.bb +++ b/meta-perl/recipes-perl/libnet/libnet-telnet-perl_3.05.bb @@ -11,15 +11,15 @@ shell." HOMEPAGE = "http://search.cpan.org/dist/Net-Telnet/" SECTION = "Development/Libraries" -LICENSE = "Artistic-1.0|GPLv1+" -LIC_FILES_CHKSUM = "file://README;beginline=4;endline=7;md5=3fd238bfb6ee1810cb15d5d95e07b0f5" +LICENSE = "Artistic-1.0 | GPL-1.0-or-later" +LIC_FILES_CHKSUM = "file://README;beginline=4;endline=7;md5=e94ab3b72335e3cdadd6c1ff736dd714" SRC_URI = "http://search.cpan.org/CPAN/authors/id/J/JR/JROGERS/Net-Telnet-${PV}.tar.gz" -SRC_URI[md5sum] = "d2514080116c1b0fa5f96295c84538e3" -SRC_URI[sha256sum] = "e64d567a4e16295ecba949368e7a6b8b5ae2a16b3ad682121d9b007dc5d2a37a" +SRC_URI[md5sum] = "c8573c57a2d9469f038c40ac284b1e5f" +SRC_URI[sha256sum] = "677f68ba2cd2a824fae323fa82e183bf7e3d03c3c499c91d923bd6283796a743" S = "${WORKDIR}/Net-Telnet-${PV}" inherit cpan -RDEPENDS_${PN} = "perl" +RDEPENDS:${PN} = "perl" |