2009-02-15 13:51:28 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2009 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=luasec
|
|
|
|
PKG_VERSION:=0.3
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2009-03-15 11:02:46 +00:00
|
|
|
PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/3920
|
2009-02-15 13:51:28 +00:00
|
|
|
PKG_MD5SUM:=a88f2c05d22abfcc9ab92bd1d6f32b37
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/luasec
|
2009-04-25 20:36:30 +00:00
|
|
|
SUBMENU:=Lua
|
2009-02-15 13:51:28 +00:00
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
2009-04-25 20:36:30 +00:00
|
|
|
TITLE:=LuaSec
|
2009-02-15 13:51:28 +00:00
|
|
|
URL:=http://luasec.luaforge.net/
|
2009-04-27 22:34:46 +00:00
|
|
|
DEPENDS:=+lua +libopenssl +luasocket
|
2009-02-15 13:51:28 +00:00
|
|
|
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 \
|
2009-04-29 12:56:17 +00:00
|
|
|
INCDIR="$(TARGET_CPPFLAGS)" \
|
|
|
|
LIBDIR="$(TARGET_LDFLAGS)" \
|
|
|
|
CC="$(TARGET_CC) $(TARGET_CFLAGS)" \
|
|
|
|
LD="$(TARGET_CROSS)ld -shared"
|
2009-02-15 13:51:28 +00:00
|
|
|
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))
|