added my Recipes
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
for case in `find t -type f -name '*.t'`; do
|
||||
perl $case >$case.output 2>&1
|
||||
ret=$?
|
||||
cat $case.output
|
||||
if [ $ret -ne 0 ]; then
|
||||
echo "FAIL: ${case%.t}"
|
||||
elif grep -i 'SKIP' $case.output; then
|
||||
echo "SKIP: ${case%.t}"
|
||||
else
|
||||
echo "PASS: ${case%.t}"
|
||||
fi
|
||||
|
||||
rm -f $case.output
|
||||
done
|
||||
@@ -0,0 +1,65 @@
|
||||
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] = "e672031158942a7016c0480ab3c1fd0d7f81ea5dd650d1ecca7116d5fd348565"
|
||||
|
||||
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'))
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -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 \
|
||||
"
|
||||
@@ -0,0 +1,45 @@
|
||||
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 \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -0,0 +1,49 @@
|
||||
perl-Net-LibIDN: cross-compile
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Add support for cross-compile allowing the compiler binary to be
|
||||
specified into the perl Makefile instead of using the default 'gcc'.
|
||||
|
||||
Signed-off-by: Greg Moffatt <greg.moffatt@windriver.com>
|
||||
---
|
||||
|
||||
--- perl-Net-LibIDN-0.12.orig/Makefile.PL 2009-02-26 07:09:45.000000000 -0500
|
||||
+++ perl-Net-LibIDN-0.12/Makefile.PL 2010-10-19 09:34:22.811173965 -0400
|
||||
@@ -9,6 +9,7 @@
|
||||
my $options;
|
||||
my $testno=1;
|
||||
my %MakeParams = InitMakeParams();
|
||||
+my $compiler;
|
||||
|
||||
WriteMakefile(%MakeParams);
|
||||
|
||||
@@ -44,7 +45,8 @@
|
||||
(
|
||||
"with-libidn=s" => \$libdir,
|
||||
"with-libidn-inc=s" => \$incdir,
|
||||
- "disable-tld" => \$disable_tld
|
||||
+ "disable-tld" => \$disable_tld,
|
||||
+ "compiler=s" => \$compiler
|
||||
);
|
||||
|
||||
if ($libdir)
|
||||
@@ -165,12 +167,17 @@
|
||||
return 0;
|
||||
}
|
||||
|
||||
- foreach my $cc (qw/cc gcc/)
|
||||
+ foreach my $cc ($compiler, qw/cc gcc/)
|
||||
{
|
||||
unlink($test);
|
||||
system "$cc $cflags -o $test $test.c $ldflags";
|
||||
next if ($? >> 8);
|
||||
|
||||
+ if ($compiler == $cc)
|
||||
+ {
|
||||
+ return 1;
|
||||
+ }
|
||||
+
|
||||
if (open(FILE, "./$test|"))
|
||||
{
|
||||
my $match;
|
||||
@@ -0,0 +1,34 @@
|
||||
SUMMARY = "Net::LibIDN - Perl bindings for GNU Libidn"
|
||||
DESCRIPTION = "\
|
||||
Provides bindings for GNU Libidn, a C library for handling Internationalized \
|
||||
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 | 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"
|
||||
|
||||
SRC_URI = "http://search.cpan.org/CPAN/authors/id/T/TH/THOR/Net-LibIDN-${PV}.tar.gz"
|
||||
SRC_URI[md5sum] = "c3e4de2065009d67bcb1df0afb473e12"
|
||||
SRC_URI[sha256sum] = "2f8acc9442b3866ec7dc63cd449fc693ae3e930d5d3e5e9430fbb6f393bdbb17"
|
||||
|
||||
SRC_URI += "file://libidn-wr-cross-compile.patch"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://README;beginline=42;endline=92;md5=3374ea0369ca3ead6047520477a43147"
|
||||
|
||||
S = "${WORKDIR}/Net-LibIDN-${PV}"
|
||||
|
||||
EXTRA_CPANFLAGS = "--with-libidn=${STAGING_LIBDIR} --with-libidn-inc=${STAGING_INCDIR} --compiler='${CC}'"
|
||||
EXTRA_CPANFLAGS += "--disable-tld"
|
||||
|
||||
inherit cpan
|
||||
|
||||
FILES:${PN}-dbg += "${libdir}/perl/vendor_perl/*/auto/Net/LibIDN/.debug/"
|
||||
|
||||
do_configure:prepend() {
|
||||
rm -rf ${S}/.pc/
|
||||
}
|
||||
@@ -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 => [],
|
||||
@@ -0,0 +1,48 @@
|
||||
SUMMARY = "Net::SSLeay - Perl extension for using OpenSSL"
|
||||
DESCRIPTION = "This module offers some high level convenience functions for accessing \
|
||||
web pages on SSL servers (for symmetry, same API is offered for \
|
||||
accessing http servers, too), a sslcat() function for writing your own \
|
||||
clients, and finally access to the SSL api of SSLeay/OpenSSL package \
|
||||
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-or-later"
|
||||
LIC_FILES_CHKSUM = "file://README;beginline=274;endline=294;md5=67d67095d83e339da538a082fad5f38e"
|
||||
|
||||
DEPENDS = "openssl zlib openssl-native"
|
||||
RDEPENDS:${PN} += "\
|
||||
libssl \
|
||||
libcrypto \
|
||||
perl-module-carp \
|
||||
perl-module-errno \
|
||||
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] = "d602bdce4e0531c6efc276e3e429ca69"
|
||||
SRC_URI[sha256sum] = "9d8188b9fb1cae3bd791979c20554925d5e94a138d00414f1a6814549927b0c8"
|
||||
|
||||
S = "${WORKDIR}/Net-SSLeay-${PV}"
|
||||
|
||||
inherit cpan ptest
|
||||
|
||||
do_configure() {
|
||||
export OPENSSL_PREFIX="${STAGING_EXECPREFIXDIR}"
|
||||
cpan_do_configure
|
||||
}
|
||||
|
||||
do_install_ptest() {
|
||||
cp -r ${B}/t ${D}${PTEST_PATH}
|
||||
}
|
||||
|
||||
FILES:${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Net/SSLeay/.debug/"
|
||||
|
||||
RDEPENDS:${PN}-ptest = " perl"
|
||||
@@ -0,0 +1,25 @@
|
||||
SUMMARY = "Net-Telnet Perl module"
|
||||
DESCRIPTION = "Net::Telnet allows you to make client connections to a TCP port and do \
|
||||
network I/O, especially to a port using the TELNET protocol. Simple I/O \
|
||||
methods such as print, get, and getline are provided. More sophisticated \
|
||||
interactive features are provided because connecting to a TELNET port \
|
||||
ultimately means communicating with a program designed for human interaction. \
|
||||
These interactive features include the ability to specify a time-out and to \
|
||||
wait for patterns to appear in the input stream, such as the prompt from a \
|
||||
shell."
|
||||
|
||||
HOMEPAGE = "http://search.cpan.org/dist/Net-Telnet/"
|
||||
SECTION = "Development/Libraries"
|
||||
|
||||
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] = "c8573c57a2d9469f038c40ac284b1e5f"
|
||||
SRC_URI[sha256sum] = "677f68ba2cd2a824fae323fa82e183bf7e3d03c3c499c91d923bd6283796a743"
|
||||
|
||||
S = "${WORKDIR}/Net-Telnet-${PV}"
|
||||
|
||||
inherit cpan
|
||||
|
||||
RDEPENDS:${PN} = "perl"
|
||||
Reference in New Issue
Block a user