Add luasec, patch from OrazioPirataDelloSpazio

git-svn-id: svn://svn.openwrt.org/openwrt/packages@14520 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2009-02-15 13:51:28 +00:00
parent 3551f6d731
commit a7be8a081d

51
lang/luasec/Makefile Normal file
View File

@ -0,0 +1,51 @@
#
# Copyright (C) 2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id: $
include $(TOPDIR)/rules.mk
PKG_NAME:=luasec
PKG_VERSION:=0.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/3920/
PKG_MD5SUM:=a88f2c05d22abfcc9ab92bd1d6f32b37
include $(INCLUDE_DIR)/package.mk
define Package/luasec
SUBMENU:=LUA
SECTION:=lang
CATEGORY:=Languages
TITLE:=LUASec
URL:=http://luasec.luaforge.net/
DEPENDS:=lua +libopenssl +luasocket
endef
define Package/luasec/description
LuaSec is a binding for OpenSSL library to provide TLS/SSL communication.
endef
define Build/Configure
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/src linux \
INCDIR="-I$(STAGING_DIR)/usr/include/" \
LIBDIR="-L$(STAGING_DIR)/usr/lib/" \
CC="$(TARGET_CC) $(TARGET_CFLAGS)" \
LD="$(TARGET_CROSS)ld -shared"
endef
define Package/luasec/install
$(INSTALL_DIR) $(1)/usr/lib/lua
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/{ssl.so,ssl.lua} $(1)/usr/lib/lua
endef
$(eval $(call BuildPackage,luasec))