From patchwork Mon May 20 12:56:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Assaf Inbal X-Patchwork-Id: 245030 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 430F42C009A for ; Mon, 20 May 2013 22:58:57 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id B0F3331ACD; Mon, 20 May 2013 12:58:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4DuVupEfEDT1; Mon, 20 May 2013 12:58:44 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 8B44C3190E; Mon, 20 May 2013 12:58:34 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 345688F76F for ; Mon, 20 May 2013 12:58:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A46D18C941 for ; Mon, 20 May 2013 12:58:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cMRmf1koYm+v for ; Mon, 20 May 2013 12:58:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ee0-f42.google.com (mail-ee0-f42.google.com [74.125.83.42]) by whitealder.osuosl.org (Postfix) with ESMTPS id 659718C923 for ; Mon, 20 May 2013 12:58:00 +0000 (UTC) Received: by mail-ee0-f42.google.com with SMTP id c50so4091629eek.29 for ; Mon, 20 May 2013 05:57:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=Ert4gDRJPV+CJJhl9D8al21L9ShvHSt5IS2wp5CRHbg=; b=DLny/bMW76fJBzocp6cwiTa9DRHu6sgXjzUe2IwTC+yEtDYvWiuk50TvOmdfeVmPkN VH0etXcJuVV+/v7GprPH8AM0j+xAnV2lQjpBePw3DkjLuID84euesoSBlC/aiIkqhAuD M4vE34G5XumWIeISFhOl4W7ML1BiNBLduPGDPbl7kZ34GPui4wRJTEI+cHkARREOY8DJ M2gxQfrbiu2W1sVeNvhZzE//V5uicLEWWpukY5nIs/TRKUBs9yziWSZMnh1FCj9UzRGL vzLI5ULE2bfGmk+yW3xRATnWvcZg13P1+kU/ZLMUvP0+AbyfyzH3b8AA464TNEPR8goj u4PA== X-Received: by 10.14.48.4 with SMTP id u4mr7309665eeb.10.1369054677929; Mon, 20 May 2013 05:57:57 -0700 (PDT) Received: from localhost.localdomain (80.179.199.150.cable.012.net.il. [80.179.199.150]) by mx.google.com with ESMTPSA id g7sm37514827eew.15.2013.05.20.05.57.56 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 20 May 2013 05:57:57 -0700 (PDT) From: Assaf Inbal To: buildroot@busybox.net Date: Mon, 20 May 2013 15:56:42 +0300 Message-Id: <1369054604-26139-10-git-send-email-shmuelzon@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1369054604-26139-1-git-send-email-shmuelzon@gmail.com> References: <1369054604-26139-1-git-send-email-shmuelzon@gmail.com> Cc: Assaf Inbal Subject: [Buildroot] [PATCH 10/12] luasec: New package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net LuaSec is a Lua binding for OpenSSL library to provide TLS/SSL communication. Signed-off-by: Assaf Inbal --- package/Config.in | 1 + package/luasec/Config.in | 9 +++++++++ package/luasec/luasec.mk | 31 +++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 package/luasec/Config.in create mode 100644 package/luasec/luasec.mk diff --git a/package/Config.in b/package/Config.in index 9c615b5..3a49e59 100644 --- a/package/Config.in +++ b/package/Config.in @@ -315,6 +315,7 @@ source "package/luaexpat/Config.in" source "package/luaexpatutils/Config.in" source "package/luafilesystem/Config.in" source "package/luaposix/Config.in" +source "package/luasec/Config.in" source "package/luasocket/Config.in" source "package/lua-ev/Config.in" source "package/lua-msgpack-native/Config.in" diff --git a/package/luasec/Config.in b/package/luasec/Config.in new file mode 100644 index 0000000..2d303c1 --- /dev/null +++ b/package/luasec/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_LUASEC + bool "luasec" + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_LUASOCKET + help + LuaSec is a binding for OpenSSL library to provide TLS/SSL + communication. + + http://www.inf.puc-rio.br/~brunoos/luasec/ diff --git a/package/luasec/luasec.mk b/package/luasec/luasec.mk new file mode 100644 index 0000000..0fc8144 --- /dev/null +++ b/package/luasec/luasec.mk @@ -0,0 +1,31 @@ +############################################################# +# +# luasec +# +############################################################# + +LUASEC_VERSION = 0.4.1 +LUASEC_SITE = http://www.inf.puc-rio.br/~brunoos/luasec/download/ +LUASEC_LICENSE = MIT +LUASEC_LICENSE_FILES = LICENSE +LUASEC_DEPENDENCIES = lua luasocket openssl + +define LUASEC_BUILD_CMDS + $(MAKE) -C $(@D) CC="$(TARGET_CC)" LD="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS) -fPIC" \ + LDFLAGS="$(TARGET_LDFLAGS) -shared" linux +endef + +define LUASEC_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D) \ + LUAPATH="$(TARGET_DIR)/usr/share/lua" \ + LUACPATH="$(TARGET_DIR)/usr/lib/lua" install +endef + +define LUASEC_UNINSTALL_TARGET_CMDS + rm -f "$(TARGET_DIR)/usr/lib/lua/ssl.so" + rm -rf "$(TARGET_DIR)/usr/share/lua/ssl" + rm -f "$(TARGET_DIR)/usr/share/lua/ssl.lua" +endef + +$(eval $(generic-package))