All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 4/6] libnet-ssleay-perl: add recipe
  2014-08-14  7:49 [PATCH 1/6] libdigest-sha1-perl: " Kai Kang
@ 2014-08-14  7:49 ` Kai Kang
  0 siblings, 0 replies; 9+ messages in thread
From: Kai Kang @ 2014-08-14  7:49 UTC (permalink / raw)
  To: openembedded-devel

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

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 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

diff --git a/meta-perl/recipes-perl/libnet/files/run-ptest b/meta-perl/recipes-perl/libnet/files/run-ptest
new file mode 100644
index 0000000..1c008b5
--- /dev/null
+++ b/meta-perl/recipes-perl/libnet/files/run-ptest
@@ -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
diff --git a/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb
new file mode 100644
index 0000000..8e4ba2a
--- /dev/null
+++ b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb
@@ -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/"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 0/6][meta-perl] V2 - Add some perl modules
@ 2014-08-14  9:13 Kai Kang
  2014-08-14  9:13 ` [PATCH 1/6] libdigest-sha1-perl: add recipe Kai Kang
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Kai Kang @ 2014-08-14  9:13 UTC (permalink / raw)
  To: martin.jansa; +Cc: openembedded-devel

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

-- 
1.9.1



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/6] libdigest-sha1-perl: add recipe
  2014-08-14  9:13 [PATCH 0/6][meta-perl] V2 - Add some perl modules Kai Kang
@ 2014-08-14  9:13 ` Kai Kang
  2014-08-14  9:13 ` [PATCH 2/6] libdigest-hmac-perl: " Kai Kang
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Kai Kang @ 2014-08-14  9:13 UTC (permalink / raw)
  To: martin.jansa; +Cc: openembedded-devel

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

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 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

diff --git a/meta-perl/recipes-perl/libdigest/files/run-ptest b/meta-perl/recipes-perl/libdigest/files/run-ptest
new file mode 100644
index 0000000..c9f9ca9
--- /dev/null
+++ b/meta-perl/recipes-perl/libdigest/files/run-ptest
@@ -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
diff --git a/meta-perl/recipes-perl/libdigest/libdigest-sha1-perl_2.13.bb b/meta-perl/recipes-perl/libdigest/libdigest-sha1-perl_2.13.bb
new file mode 100644
index 0000000..0371ea6
--- /dev/null
+++ b/meta-perl/recipes-perl/libdigest/libdigest-sha1-perl_2.13.bb
@@ -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/"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/6] libdigest-hmac-perl: add recipe
  2014-08-14  9:13 [PATCH 0/6][meta-perl] V2 - Add some perl modules Kai Kang
  2014-08-14  9:13 ` [PATCH 1/6] libdigest-sha1-perl: add recipe Kai Kang
@ 2014-08-14  9:13 ` Kai Kang
  2014-08-14  9:13 ` [PATCH 3/6] libauthen-sasl-perl: " Kai Kang
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Kai Kang @ 2014-08-14  9:13 UTC (permalink / raw)
  To: martin.jansa; +Cc: openembedded-devel

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

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 .../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

diff --git a/meta-perl/recipes-perl/libdigest/libdigest-hmac-perl_1.03.bb b/meta-perl/recipes-perl/libdigest/libdigest-hmac-perl_1.03.bb
new file mode 100644
index 0000000..affc9f6
--- /dev/null
+++ b/meta-perl/recipes-perl/libdigest/libdigest-hmac-perl_1.03.bb
@@ -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"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 3/6] libauthen-sasl-perl: add recipe
  2014-08-14  9:13 [PATCH 0/6][meta-perl] V2 - Add some perl modules Kai Kang
  2014-08-14  9:13 ` [PATCH 1/6] libdigest-sha1-perl: add recipe Kai Kang
  2014-08-14  9:13 ` [PATCH 2/6] libdigest-hmac-perl: " Kai Kang
@ 2014-08-14  9:13 ` Kai Kang
  2014-08-14  9:13 ` [PATCH 4/6] libnet-ssleay-perl: " Kai Kang
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 9+ messages in thread
From: Kai Kang @ 2014-08-14  9:13 UTC (permalink / raw)
  To: martin.jansa; +Cc: openembedded-devel

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

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 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

diff --git a/meta-perl/recipes-perl/libauthen/files/run-ptest b/meta-perl/recipes-perl/libauthen/files/run-ptest
new file mode 100644
index 0000000..c9f9ca9
--- /dev/null
+++ b/meta-perl/recipes-perl/libauthen/files/run-ptest
@@ -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
diff --git a/meta-perl/recipes-perl/libauthen/libauthen-sasl-perl_2.16.bb b/meta-perl/recipes-perl/libauthen/libauthen-sasl-perl_2.16.bb
new file mode 100644
index 0000000..361bdf1
--- /dev/null
+++ b/meta-perl/recipes-perl/libauthen/libauthen-sasl-perl_2.16.bb
@@ -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"
+
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 4/6] libnet-ssleay-perl: add recipe
  2014-08-14  9:13 [PATCH 0/6][meta-perl] V2 - Add some perl modules Kai Kang
                   ` (2 preceding siblings ...)
  2014-08-14  9:13 ` [PATCH 3/6] libauthen-sasl-perl: " Kai Kang
@ 2014-08-14  9:13 ` Kai Kang
  2014-08-14 22:43   ` akuster
  2014-08-14  9:13 ` [PATCH 5/6] libio-socket-ssl-perl: " Kai Kang
  2014-08-14  9:13 ` [PATCH 6/6] libmime-types-perl: " Kai Kang
  5 siblings, 1 reply; 9+ messages in thread
From: Kai Kang @ 2014-08-14  9:13 UTC (permalink / raw)
  To: martin.jansa; +Cc: openembedded-devel

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

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 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

diff --git a/meta-perl/recipes-perl/libnet/files/run-ptest b/meta-perl/recipes-perl/libnet/files/run-ptest
new file mode 100644
index 0000000..c9f9ca9
--- /dev/null
+++ b/meta-perl/recipes-perl/libnet/files/run-ptest
@@ -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
diff --git a/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb
new file mode 100644
index 0000000..63594b9
--- /dev/null
+++ b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb
@@ -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/"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 5/6] libio-socket-ssl-perl: add recipe
  2014-08-14  9:13 [PATCH 0/6][meta-perl] V2 - Add some perl modules Kai Kang
                   ` (3 preceding siblings ...)
  2014-08-14  9:13 ` [PATCH 4/6] libnet-ssleay-perl: " Kai Kang
@ 2014-08-14  9:13 ` Kai Kang
  2014-08-14  9:13 ` [PATCH 6/6] libmime-types-perl: " Kai Kang
  5 siblings, 0 replies; 9+ messages in thread
From: Kai Kang @ 2014-08-14  9:13 UTC (permalink / raw)
  To: martin.jansa; +Cc: openembedded-devel

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

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 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

diff --git a/meta-perl/recipes-perl/libio/files/run-ptest b/meta-perl/recipes-perl/libio/files/run-ptest
new file mode 100644
index 0000000..c9f9ca9
--- /dev/null
+++ b/meta-perl/recipes-perl/libio/files/run-ptest
@@ -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
diff --git a/meta-perl/recipes-perl/libio/libio-socket-ssl-perl_1.997.bb b/meta-perl/recipes-perl/libio/libio-socket-ssl-perl_1.997.bb
new file mode 100644
index 0000000..19dec83
--- /dev/null
+++ b/meta-perl/recipes-perl/libio/libio-socket-ssl-perl_1.997.bb
@@ -0,0 +1,45 @@
+SUMMARY = "Perl library for transparent SSL"
+DESCRIPTION = "This module is a true drop-in replacement for IO::Socket::INET that \
+uses SSL to encrypt data before it is transferred to a remote server \
+or client. IO::Socket::SSL supports all the extra features that one \
+needs to write a full-featured SSL client or server application: \
+multiple SSL contexts, cipher selection, certificate verification, and \
+SSL version selection. As an extra bonus, it works perfectly with \
+mod_perl."
+HOMEPAGE = "http://search.cpan.org/dist/IO-Socket-SSL/"
+SECTION = "libs"
+
+LICENSE = "Artistic-1.0|GPLv1+"
+LIC_FILES_CHKSUM = "file://META.yml;beginline=11;endline=11;md5=963ce28228347875ace682de56eef8e8"
+
+RDEPENDS_${PN} += "perl-module-scalar-util libnet-ssleay-perl"
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/S/SU/SULLR/IO-Socket-SSL-${PV}.tar.gz \
+           file://run-ptest \
+          "
+SRC_URI[md5sum] = "2a6268bb42da81e69d1c1feb2fcb0eea"
+SRC_URI[sha256sum] = "acdb67b5b63aea5b7e70c3e4c70a16128810329592b63753a38c794aff76a1dd"
+
+S = "${WORKDIR}/IO-Socket-SSL-${PV}"
+
+inherit cpan ptest
+
+PACKAGE_ARCH = "all"
+
+do_install_append () {
+    mkdir -p ${D}${docdir}/${PN}/
+    cp ${S}/BUGS ${D}${docdir}/${PN}/
+    cp ${S}/Changes ${D}${docdir}/${PN}/
+    cp ${S}/README ${D}${docdir}/${PN}/
+    cp -pRP ${S}/docs ${D}${docdir}/${PN}/
+    cp -pRP ${S}/certs ${D}${docdir}/${PN}/
+    cp -pRP ${S}/example ${D}${docdir}/${PN}/
+    cp -pRP ${S}/util ${D}${docdir}/${PN}/
+}
+
+do_install_ptest () {
+    cp -r ${B}/t ${D}${PTEST_PATH}
+    cp -r ${B}/certs ${D}${PTEST_PATH}
+}
+
+BBCLASSEXTEND = "native"
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 6/6] libmime-types-perl: add recipe
  2014-08-14  9:13 [PATCH 0/6][meta-perl] V2 - Add some perl modules Kai Kang
                   ` (4 preceding siblings ...)
  2014-08-14  9:13 ` [PATCH 5/6] libio-socket-ssl-perl: " Kai Kang
@ 2014-08-14  9:13 ` Kai Kang
  5 siblings, 0 replies; 9+ messages in thread
From: Kai Kang @ 2014-08-14  9:13 UTC (permalink / raw)
  To: martin.jansa; +Cc: openembedded-devel

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

Signed-off-by: Kai Kang <kai.kang@windriver.com>
---
 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

diff --git a/meta-perl/recipes-perl/libmime/files/run-ptest b/meta-perl/recipes-perl/libmime/files/run-ptest
new file mode 100644
index 0000000..c9f9ca9
--- /dev/null
+++ b/meta-perl/recipes-perl/libmime/files/run-ptest
@@ -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
diff --git a/meta-perl/recipes-perl/libmime/libmime-types-perl_2.04.bb b/meta-perl/recipes-perl/libmime/libmime-types-perl_2.04.bb
new file mode 100644
index 0000000..ef53029
--- /dev/null
+++ b/meta-perl/recipes-perl/libmime/libmime-types-perl_2.04.bb
@@ -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}
+}
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 4/6] libnet-ssleay-perl: add recipe
  2014-08-14  9:13 ` [PATCH 4/6] libnet-ssleay-perl: " Kai Kang
@ 2014-08-14 22:43   ` akuster
  0 siblings, 0 replies; 9+ messages in thread
From: akuster @ 2014-08-14 22:43 UTC (permalink / raw)
  To: kai.kang; +Cc: openembedded-devel

Kai,

Thanks.

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

- Armin

On 08/14/2014 02:13 AM, Kai Kang wrote:
> Add recipe for libnet-ssleay-perl. Inherit ptest to enable build
> -ptest sub-package and add file 'run-ptest'.
>
> Signed-off-by: Kai Kang <kai.kang@windriver.com>
> ---
>   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
>
> diff --git a/meta-perl/recipes-perl/libnet/files/run-ptest b/meta-perl/recipes-perl/libnet/files/run-ptest
> new file mode 100644
> index 0000000..c9f9ca9
> --- /dev/null
> +++ b/meta-perl/recipes-perl/libnet/files/run-ptest
> @@ -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
> diff --git a/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb
> new file mode 100644
> index 0000000..63594b9
> --- /dev/null
> +++ b/meta-perl/recipes-perl/libnet/libnet-ssleay-perl_1.65.bb
> @@ -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/"
>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-08-14 22:43 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-14  9:13 [PATCH 0/6][meta-perl] V2 - Add some perl modules Kai Kang
2014-08-14  9:13 ` [PATCH 1/6] libdigest-sha1-perl: add recipe Kai Kang
2014-08-14  9:13 ` [PATCH 2/6] libdigest-hmac-perl: " Kai Kang
2014-08-14  9:13 ` [PATCH 3/6] libauthen-sasl-perl: " Kai Kang
2014-08-14  9:13 ` [PATCH 4/6] libnet-ssleay-perl: " Kai Kang
2014-08-14 22:43   ` akuster
2014-08-14  9:13 ` [PATCH 5/6] libio-socket-ssl-perl: " Kai Kang
2014-08-14  9:13 ` [PATCH 6/6] libmime-types-perl: " Kai Kang
  -- strict thread matches above, loose matches on Subject: below --
2014-08-14  7:49 [PATCH 1/6] libdigest-sha1-perl: " Kai Kang
2014-08-14  7:49 ` [PATCH 4/6] libnet-ssleay-perl: " Kai Kang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.