Skip to contentSkip to conversation

V2 - Add some perl modules

PATCH In review Kai Kang 2 participants 8 messages Aug 14, 2014

lore
Share & tools
lore

Kai Kang

author
#0 lore raw

cover V2 - Add some perl modules

V2:
* Re-indent with 4 spaces

Kai Kang (6):
libdigest-sha1-perl: add recipe
libdigest-hmac-perl: add recipe
libauthen-sasl-perl: add recipe
libnet-ssleay-perl: add recipe
libio-socket-ssl-perl: add recipe
libmime-types-perl: add recipe

 meta-perl/recipes-perl/libauthen/files/run-ptest   | 16 ++++++++
 .../libauthen/libauthen-sasl-perl_2.16.bb          | 30 +++++++++++++++
 meta-perl/recipes-perl/libdigest/files/run-ptest   | 16 ++++++++
 .../libdigest/libdigest-hmac-perl_1.03.bb          | 26 +++++++++++++
 .../libdigest/libdigest-sha1-perl_2.13.bb          | 25 ++++++++++++
 meta-perl/recipes-perl/libio/files/run-ptest       | 16 ++++++++
 .../libio/libio-socket-ssl-perl_1.997.bb           | 45 ++++++++++++++++++++++
 meta-perl/recipes-perl/libmime/files/run-ptest     | 16 ++++++++
 .../libmime/libmime-types-perl_2.04.bb             | 26 +++++++++++++
 meta-perl/recipes-perl/libnet/files/run-ptest      | 16 ++++++++
 .../recipes-perl/libnet/libnet-ssleay-perl_1.65.bb | 43 +++++++++++++++++++++
 11 files changed, 275 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libauthen/files/run-ptest
 create mode 100644 meta-perl/recipes-perl/libauthen/libauthen-sasl-perl_2.16.bb
 create mode 100644 meta-perl/recipes-perl/libdigest/files/run-ptest
 create mode 100644 meta-perl/recipes-perl/libdigest/libdigest-hmac-perl_1.03.bb
 create mode 100644 meta-perl/recipes-perl/libdigest/libdigest-sha1-perl_2.13.bb
 create mode 100644 meta-perl/recipes-perl/libio/files/run-ptest
 create mode 100644 meta-perl/recipes-perl/libio/libio-socket-ssl-perl_1.997.bb
 create mode 100644 meta-perl/recipes-perl/libmime/files/run-ptest
 create mode 100644 meta-perl/recipes-perl/libmime/libmime-types-perl_2.04.bb
 create mode 100644 meta-perl/recipes-perl/libnet/files/run-ptest
 create mode 100644 meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/6 libdigest-sha1-perl: add recipe

Add recipe for libdigest-sha1-perl and enable create -ptest sub-package.

---
 meta-perl/recipes-perl/libdigest/files/run-ptest   | 16 ++++++++++++++
 .../libdigest/libdigest-sha1-perl_2.13.bb          | 25 ++++++++++++++++++++++
 2 files changed, 41 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libdigest/files/run-ptest
 create mode 100644 meta-perl/recipes-perl/libdigest/libdigest-sha1-perl_2.13.bb
meta-perl/recipes-perl/libdigest/files/run-ptest new file +16 -0
new file mode 100644
index 0000000..c9f9ca9
@@ -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
meta-perl/recipes-perl/libdigest/libdigest-sha1-perl_2.13.bb new file +25 -0
new file mode 100644
index 0000000..0371ea6
@@ -0,0 +1,25 @@
+SUMMARY = "Perl interface to the SHA-1 algorithm "
+DESCRIPTION = "Digest::SHA1 - Perl interface to the SHA-1 algorithm"
+HOMEPAGE = "http://search.cpan.org/~gaas/Digest-SHA1-2.13/"
+SECTION = "libs"
+
+LICENSE = "Artistic-1.0|GPLv1+"
+LIC_FILES_CHKSUM = "file://README;beginline=10;endline=14;md5=ff5867ebb4bc1103a7a416aef2fce00a"
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-${PV}.tar.gz \
+           file://run-ptest \
+          "
+SRC_URI[md5sum] = "bd22388f268434f2b24f64e28bf1aa35"
+SRC_URI[sha256sum] = "68c1dac2187421f0eb7abf71452a06f190181b8fc4b28ededf5b90296fb943cc"
+
+S = "${WORKDIR}/Digest-SHA1-${PV}"
+
+inherit cpan ptest
+
+do_install_ptest () {
+    cp -r ${B}/t ${D}${PTEST_PATH}
+}
+
+BBCLASSEXTEND="native"
+
+FILES_${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Digest/SHA1/.debug/"
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH 2/6 libdigest-hmac-perl: add recipe

In reply to Kai Kang

Add recipe for libdigest-hmac-perl and enable to create -ptest sub-package.

---
 .../libdigest/libdigest-hmac-perl_1.03.bb          | 26 ++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libdigest/libdigest-hmac-perl_1.03.bb
meta-perl/recipes-perl/libdigest/libdigest-hmac-perl_1.03.bb new file +26 -0
new file mode 100644
index 0000000..affc9f6
@@ -0,0 +1,26 @@
+SUMMARY = "Keyed-Hashing for Message Authentication"
+DESCRIPTION = "Keyed-Hashing for Message Authentication"
+HOMEPAGE = "http://search.cpan.org/~gaas/Digest-HMAC-1.03/"
+SECTION = "libs"
+
+LICENSE = "Artistic-1.0|GPLv1+"
+LIC_FILES_CHKSUM = "file://README;beginline=13;endline=17;md5=da980cdc026faa065e5d5004115334e6"
+
+RDEPENDS_${PN} = "libdigest-sha1-perl perl-module-extutils-makemaker perl-module-digest-md5"
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-HMAC-${PV}.tar.gz \
+           file://run-ptest \
+          "
+SRC_URI[md5sum] = "e6a5d6f552da16eacb5157ea4369ff9d"
+SRC_URI[sha256sum] = "3bc72c6d3ff144d73aefb90e9a78d33612d58cf1cd1631ecfb8985ba96da4a59"
+
+S = "${WORKDIR}/Digest-HMAC-${PV}"
+
+inherit cpan ptest
+
+do_install_ptest () {
+    cp -r ${B}/t ${D}${PTEST_PATH}
+}
+
+PACKAGE_ARCH = "all"
+BBCLASSEXTEND = "native"
Signature · 1 line
1.9.1
author
#3 lore raw

PATCH 3/6 libauthen-sasl-perl: add recipe

In reply to Kai Kang

Add recipe for libauthen-sasl-perl. Inherit ptest to enable build -ptest sub-package and add file 'run-ptest'.

---
 meta-perl/recipes-perl/libauthen/files/run-ptest   | 16 ++++++++++++
 .../libauthen/libauthen-sasl-perl_2.16.bb          | 30 ++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libauthen/files/run-ptest
 create mode 100644 meta-perl/recipes-perl/libauthen/libauthen-sasl-perl_2.16.bb
meta-perl/recipes-perl/libauthen/files/run-ptest new file +16 -0
new file mode 100644
index 0000000..c9f9ca9
@@ -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
meta-perl/recipes-perl/libauthen/libauthen-sasl-perl_2.16.bb new file +30 -0
new file mode 100644
index 0000000..361bdf1
@@ -0,0 +1,30 @@
+SUMMARY = "SASL Authentication framework for Perl"
+DESCRIPTION = "SASL is a generic mechanism for authentication used by several network \
+protocols. Authen::SASL provides an implementation framework that all \
+protocols should be able to share."
+HOMEPAGE = "http://search.cpan.org/dist/Authen-SASL/"
+SECTION = "libs"
+
+LICENSE = "Artistic-1.0|GPL-1.0+"
+LIC_FILES_CHKSUM = "file://lib/Authen/SASL/Perl.pm;beginline=1;endline=3;md5=17123315bbcda19f484c07227594a609"
+
+DEPENDS = "perl"
+RDEPENDS_${PN} = "libdigest-hmac-perl"
+
+SRC_URI = "http://www.cpan.org/authors/id/G/GB/GBARR/Authen-SASL-${PV}.tar.gz \
+           file://run-ptest \
+          "
+SRC_URI[md5sum] = "7c03a689d4c689e5a9e2f18a1c586b2f"
+SRC_URI[sha256sum] = "6614fa7518f094f853741b63c73f3627168c5d3aca89b1d02b1016dc32854e09"
+
+S = "${WORKDIR}/Authen-SASL-${PV}"
+
+inherit cpan ptest
+
+do_install_ptest () {
+    cp -r ${B}/t ${D}${PTEST_PATH}
+}
+
+PACKAGE_ARCH = "all"
+BBCLASSEXTEND = "native"
+
Signature · 1 line
1.9.1
author
#4 lore raw

PATCH 4/6 libnet-ssleay-perl: add recipe

In reply to Kai Kang

Add recipe for libnet-ssleay-perl. Inherit ptest to enable build -ptest sub-package and add file 'run-ptest'.

---
 meta-perl/recipes-perl/libnet/files/run-ptest      | 16 ++++++++
 .../recipes-perl/libnet/libnet-ssleay-perl_1.65.bb | 43 ++++++++++++++++++++++
 2 files changed, 59 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libnet/files/run-ptest
 create mode 100644 meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb
meta-perl/recipes-perl/libnet/files/run-ptest new file +16 -0
new file mode 100644
index 0000000..c9f9ca9
@@ -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
meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb new file +43 -0

43 lines not on this page · raw message

Signature · 1 line
1.9.1
#5 lore raw

Re: [PATCH 4/6] libnet-ssleay-perl: add recipe

Kai,

Thanks.

This recipe is also in meta-security so once it commit to oe, I will remove the recipe from meta-security.

- Armin

Quoted 83 lines · Kai Kang

Add recipe for libnet-ssleay-perl. Inherit ptest to enable build -ptest sub-package and add file 'run-ptest'.

---
  meta-perl/recipes-perl/libnet/files/run-ptest      | 16 ++++++++
  .../recipes-perl/libnet/libnet-ssleay-perl_1.65.bb | 43 ++++++++++++++++++++++
  2 files changed, 59 insertions(+)

create mode 100644 meta-perl/recipes-perl/libnet/files/run-ptest create mode 100644 meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb

meta-perl/recipes-perl/libnet/files/run-ptest new file +16 -0
new file mode 100644
index 0000000..c9f9ca9
@@ -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
meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb new file +43 -0
new file mode 100644
index 0000000..63594b9
@@ -0,0 +1,43 @@
+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 = "OpenSSL"
+LIC_FILES_CHKSUM = "file://README;beginline=274;endline=294;md5=49f415984b387be999ee2ad0e5c692fe"
+
+DEPENDS = "openssl zlib"
+RDEPENDS_${PN} += "perl-module-carp \
+                   perl-module-errno \
+                   perl-module-extutils-makemaker \
+                   perl-module-mime-base64 \
+                   perl-module-socket \
+                  "
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-${PV}.tar.gz \
+           file://run-ptest \
+          "
+SRC_URI[md5sum] = "19600c036e9e0bbfbf9157f083e40755"
+SRC_URI[sha256sum] = "2fb1371120b85f018944d95736c107163f04ba56b6029c0709a2c3d6247b9c06"
+
+S = "${WORKDIR}/Net-SSLeay-${PV}"
+
+inherit cpan ptest
+
+EXTRA_CPANFLAGS = "LIBS='-L=${libdir} -L=${base_libdir}' \
+                   INC=-I=${includedir} \
+                   'EXTRALIBS=-lssl -lcrypto -lz' \
+                   'LDLOADLIBS=-lssl -lcrypto -lz' \
+                  "
+
+do_install_ptest() {
+    cp -r ${B}/t ${D}${PTEST_PATH}
+}
+
+BBCLASSEXTEND = "native"
+
+FILES_${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/Net/SSLeay/.debug/"
author
#6 lore raw

PATCH 5/6 libio-socket-ssl-perl: add recipe

In reply to Kai Kang

Add recipe for libio-socket-ssl-perl. Inherit ptest to enable build -ptest sub-package and add file 'run-ptest'.

---
 meta-perl/recipes-perl/libio/files/run-ptest       | 16 ++++++++
 .../libio/libio-socket-ssl-perl_1.997.bb           | 45 ++++++++++++++++++++++
 2 files changed, 61 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libio/files/run-ptest
 create mode 100644 meta-perl/recipes-perl/libio/libio-socket-ssl-perl_1.997.bb
meta-perl/recipes-perl/libio/files/run-ptest new file +16 -0
new file mode 100644
index 0000000..c9f9ca9
@@ -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
meta-perl/recipes-perl/libio/libio-socket-ssl-perl_1.997.bb new file +45 -0

45 lines not on this page · raw message

Signature · 1 line
1.9.1
author
#7 lore raw

PATCH 6/6 libmime-types-perl: add recipe

In reply to Kai Kang

Add recipe for libmime-types-perl. Enable to create ptest sub-package at same time.

---
 meta-perl/recipes-perl/libmime/files/run-ptest     | 16 +++++++++++++
 .../libmime/libmime-types-perl_2.04.bb             | 26 ++++++++++++++++++++++
 2 files changed, 42 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libmime/files/run-ptest
 create mode 100644 meta-perl/recipes-perl/libmime/libmime-types-perl_2.04.bb
meta-perl/recipes-perl/libmime/files/run-ptest new file +16 -0
new file mode 100644
index 0000000..c9f9ca9
@@ -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
meta-perl/recipes-perl/libmime/libmime-types-perl_2.04.bb new file +26 -0
new file mode 100644
index 0000000..ef53029
@@ -0,0 +1,26 @@
+SUMMARY = "MIME::Types - Definition of MIME types"
+DESCRIPTION = "MIME types are used in MIME compliant lines, for instance \
+as part of e-mail and HTTP traffic, to indicate the type of content which \
+is transmitted. Sometimes real knowledge about a mime-type is need.\
+\n\
+This module maintains a set of MIME::Type objects, which each describe \
+one known mime type."
+HOMEPAGE = "http://search.cpan.org/~markov/MIME-Types-${PV}"
+SECTION = "libraries"
+
+LICENSE = "Artistic-1.0|GPLv1+"
+LIC_FILES_CHKSUM = "file://META.yml;beginline=11;endline=11;md5=963ce28228347875ace682de56eef8e8"
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/MIME-Types-${PV}.tar.gz \
+           file://run-ptest \
+          "
+SRC_URI[md5sum] = "e292bbf7756bb4999407f3f660697168"
+SRC_URI[sha256sum] = "22b6069d372d587b1f2ecc6d0aaf50fb5c64920caed8c214b9884e64538acc8f"
+
+S = "${WORKDIR}/MIME-Types-${PV}"
+
+inherit cpan ptest
+
+do_install_ptest () {
+    cp -r ${B}/t ${D}${PTEST_PATH}
+}
Signature · 1 line
1.9.1