From 8e8337baa71086cbcf85e5ecddf8ffb23c5785a4 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 25 Jan 2012 16:33:51 -0800
Subject: [PATCH] libnet-ssleay-perl_1.42: Add recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-extended/perl/libnet-ssleay-license   |  187 ++++++++++++++++++++
 .../perl/libnet-ssleay-perl_1.42.bb                |   33 ++++
 2 files changed, 220 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-extended/perl/libnet-ssleay-license
 create mode 100644 meta/recipes-extended/perl/libnet-ssleay-perl_1.42.bb

diff --git a/meta/recipes-extended/perl/libnet-ssleay-license b/meta/recipes-extended/perl/libnet-ssleay-license
new file mode 100644
index 0000000..588fba8
--- /dev/null
+++ b/meta/recipes-extended/perl/libnet-ssleay-license
@@ -0,0 +1,187 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Maintainer: Florian Ragwitz <rafl@debian.org>, Mike McCauley <mikem@open.com.au>
+Source: http://search.cpan.org/dist/Net-SSLeay/
+Name: Net-SSLeay
+
+Files: *
+Copyright: 1996-2003, Sampo Kellomaki <sampo@iki.fi>
+ 2005-2006, Florian Ragwitz <rafl@debian.org>
+ 2005-2006, Mike McCauley <mikem@open.com.au>
+License: OpenSSL
+
+Files: inc/Module/*
+Copyright: 2002-2010, Adam Kennedy <adamk@cpan.org>
+ 2002-2010, Audrey Tang <autrijus@autrijus.org>
+ 2002-2010, Brian Ingerson <ingy@cpan.org>
+License: Artistic or GPL-1+
+
+Files: debian/*
+Copyright: 1999-2001, Gergely Madarasz <gorgo@caesar.elte.hu>
+ 2001, Remi Lefebvre <remi@debian.org>
+ 2001-2004, Stephen Zander <gibreel@debian.org>
+ 2002, Brendan O'Dea <bod@debian.org>
+ 2005, Steve Kemp <skx@debian.org>
+ 2005-2006, Florian Ragwitz <rafl@debian.org>
+ 2008, Niko Tyni <ntyni@debian.org>
+ 2008, Damyan Ivanov <dmn@debian.org>
+ 2008-2011, gregor herrmann <gregoa@debian.org>
+ 2010, Franck Joncourt <franck@debian.org>
+License: Artistic or GPL-1+
+
+License: OpenSSL
+ Distribution and use of this module is under the same terms as the
+ OpenSSL package itself (i.e. free, but mandatory attribution; NO
+ WARRANTY). Please consult LICENSE file in the root of the OpenSSL
+ distribution.
+ .
+ While the source distribution of this perl module does not contain
+ Eric's or OpenSSL's code, if you use this module you will use OpenSSL
+ library. Please give Eric and OpenSSL team credit (as required by
+ their licenses).
+ .
+ And remember, you, and nobody else but you, are responsible for
+ auditing this module and OpenSSL library for security problems,
+ backdoors, and general suitability for your application.
+ .
+ LICENSE ISSUES
+ ==============
+ .
+ The OpenSSL toolkit stays under a dual license, i.e. both the conditions of
+ the OpenSSL License and the original SSLeay license apply to the toolkit.
+ See below for the actual license texts. Actually both licenses are BSD-style
+ Open Source licenses. In case of any license issues related to OpenSSL
+ please contact openssl-core@openssl.org.
+ .
+ OpenSSL License
+ ---------------
+ .
+ /* ====================================================================
+  * Copyright (c) 1998-1999 The OpenSSL Project.  All rights reserved.
+  *
+  * Redistribution and use in source and binary forms, with or without
+  * modification, are permitted provided that the following conditions
+  * are met:
+  *
+  * 1. Redistributions of source code must retain the above copyright
+  *    notice, this list of conditions and the following disclaimer. 
+  *
+  * 2. Redistributions in binary form must reproduce the above copyright
+  *    notice, this list of conditions and the following disclaimer in
+  *    the documentation and/or other materials provided with the
+  *    distribution.
+  *
+  * 3. All advertising materials mentioning features or use of this
+  *    software must display the following acknowledgment:
+  *    "This product includes software developed by the OpenSSL Project
+  *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
+  *
+  * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
+  *    endorse or promote products derived from this software without
+  *    prior written permission. For written permission, please contact
+  *    openssl-core@openssl.org.
+  *
+  * 5. Products derived from this software may not be called "OpenSSL"
+  *    nor may "OpenSSL" appear in their names without prior written
+  *    permission of the OpenSSL Project.
+  *
+  * 6. Redistributions of any form whatsoever must retain the following
+  *    acknowledgment:
+  *    "This product includes software developed by the OpenSSL Project
+  *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
+  *
+  * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
+  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
+  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+  * OF THE POSSIBILITY OF SUCH DAMAGE.
+  * ====================================================================
+  *
+  * This product includes cryptographic software written by Eric Young
+  * (eay@cryptsoft.com).  This product includes software written by Tim
+  * Hudson (tjh@cryptsoft.com).
+  *
+  */
+ .
+ Original SSLeay License
+ -----------------------
+ .
+ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
+  * All rights reserved.
+  *
+  * This package is an SSL implementation written
+  * by Eric Young (eay@cryptsoft.com).
+  * The implementation was written so as to conform with Netscapes SSL.
+  * 
+  * This library is free for commercial and non-commercial use as long as
+  * the following conditions are aheared to.  The following conditions
+  * apply to all code found in this distribution, be it the RC4, RSA,
+  * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
+  * included with this distribution is covered by the same copyright terms
+  * except that the holder is Tim Hudson (tjh@cryptsoft.com).
+  * 
+  * Copyright remains Eric Young's, and as such any Copyright notices in
+  * the code are not to be removed.
+  * If this package is used in a product, Eric Young should be given attribution
+  * as the author of the parts of the library used.
+  * This can be in the form of a textual message at program startup or
+  * in documentation (online or textual) provided with the package.
+  * 
+  * Redistribution and use in source and binary forms, with or without
+  * modification, are permitted provided that the following conditions
+  * are met:
+  * 1. Redistributions of source code must retain the copyright
+  *    notice, this list of conditions and the following disclaimer.
+  * 2. Redistributions in binary form must reproduce the above copyright
+  *    notice, this list of conditions and the following disclaimer in the
+  *    documentation and/or other materials provided with the distribution.
+  * 3. All advertising materials mentioning features or use of this software
+  *    must display the following acknowledgement:
+  *    "This product includes cryptographic software written by
+  *     Eric Young (eay@cryptsoft.com)"
+  *    The word 'cryptographic' can be left out if the rouines from the library
+  *    being used are not cryptographic related :-).
+  * 4. If you include any Windows specific code (or a derivative thereof) from 
+  *    the apps directory (application code) you must include an acknowledgement:
+  *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
+  * 
+  * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
+  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+  * SUCH DAMAGE.
+  * 
+  * The licence and distribution terms for any publically available version or
+  * derivative of this code cannot be changed.  i.e. this code cannot simply be
+  * copied and put under another distribution licence
+  * [including the GNU Public Licence.]
+  */
+
+License: Artistic
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the Artistic License, which comes with Perl.
+ .
+ On Debian systems, the complete text of the Artistic License
+ can be found in `/usr/share/common-licenses/Artistic'.
+
+License: GPL-1+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 1, or (at your option)
+ any later version.
+ .
+ On Debian systems, the complete text of version 1 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-1'.
+
diff --git a/meta/recipes-extended/perl/libnet-ssleay-perl_1.42.bb b/meta/recipes-extended/perl/libnet-ssleay-perl_1.42.bb
new file mode 100644
index 0000000..3a75de2
--- /dev/null
+++ b/meta/recipes-extended/perl/libnet-ssleay-perl_1.42.bb
@@ -0,0 +1,33 @@
+DESCRIPTION = "Net::SSLeay - Perl extension for using OpenSSL"
+SECTION = "libs"
+LICENSE = "OpenSSL"
+DEPENDS = "openssl zlib"
+RDEPENDS_${PN} += " \
+	perl-module-carp \
+	perl-module-errno \
+	perl-module-extutils-makemaker \
+	perl-module-mime-base64 \
+	perl-module-socket \
+	"
+
+BBCLASSEXTEND = "native"
+PR = "r1"
+LIC_FILES_CHKSUM = "file://libnet-ssleay-license;md5=d9af28e1564d74d6834e9642404639b6"
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MI/MIKEM/Net-SSLeay-${PV}.tar.gz;name=net-ssleay-${PV} \
+           file://libnet-ssleay-license \
+          "
+
+SRC_URI[net-ssleay-1.42.md5sum] = "3f9c9589495301c14bfc03097388ca4f"
+SRC_URI[net-ssleay-1.42.sha256sum] = "b6ca7719cd8568e60204f39027c1c68d19fa690b1f3fd380ed14031a1a70fd9d"
+
+S = "${WORKDIR}/Net-SSLeay-${PV}"
+
+export OPENSSL_PREFIX="${STAGING_INCDIR}/.."
+
+inherit cpan
+
+do_configure_prepend () {
+	cp -a ${WORKDIR}/libnet-ssleay-license ${S}
+}
+FILES_${PN}-dbg += "${PERLLIBDIRS}/vendor_perl/*/auto/Net/SSLeay/.debug/"
-- 
1.7.8.3

