aboutsummaryrefslogtreecommitdiff
path: root/lang/luasec
diff options
context:
space:
mode:
authorW. Michael Petullo <mike@flyn.org>2014-07-17 18:37:56 -0400
committerSteven Barth <steven@midlink.org>2014-07-21 16:23:19 +0200
commitf226e1620fc9d5d57d702b11ffd200f7fd001434 (patch)
treeeb9ea9ac8a89d5c186cf25104329477fa05c6029 /lang/luasec
parentdb8d18e1f606c0c6e6935166ca028bc886433e46 (diff)
Copy luasec package from old repository
Signed-off-by: W. Michael Petullo <mike@flyn.org>
Diffstat (limited to 'lang/luasec')
-rw-r--r--lang/luasec/Makefile58
1 files changed, 58 insertions, 0 deletions
diff --git a/lang/luasec/Makefile b/lang/luasec/Makefile
new file mode 100644
index 000000000..bde73cfdc
--- /dev/null
+++ b/lang/luasec/Makefile
@@ -0,0 +1,58 @@
+#
+# Copyright (C) 2009-2010 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.4
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://luaforge.net/frs/download.php/4255
+PKG_MD5SUM:=712158d60207bdbb6215fc7e07d8db24
+
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/luasec
+ SUBMENU:=Lua
+ SECTION:=lang
+ CATEGORY:=Languages
+ TITLE:=LuaSec
+ URL:=http://luasec.luaforge.net/
+ MAINTAINER:=W. Michael Petullo <mike@flyn.org>
+ 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
+
+MAKE_PATH = ./src
+
+MAKE_FLAGS += \
+ INCDIR="$(TARGET_CPPFLAGS)" \
+ LIBDIR="$(TARGET_LDFLAGS)" \
+ CC="$(TARGET_CC) $(TARGET_CFLAGS) -std=gnu99" \
+ LD="$(TARGET_CROSS)ld -shared" \
+ LUACPATH="$(PKG_INSTALL_DIR)/usr/lib/lua" \
+ LUAPATH="$(PKG_INSTALL_DIR)/usr/lib/lua" \
+ linux \
+
+define Package/luasec/install
+ $(INSTALL_DIR) $(1)/usr/lib/lua
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/lua/ssl.so $(1)/usr/lib/lua/
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lua/ssl.lua $(1)/usr/lib/lua/
+ $(INSTALL_DIR) $(1)/usr/lib/lua/ssl
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lua/ssl/https.lua $(1)/usr/lib/lua/ssl/
+endef
+
+$(eval $(call BuildPackage,luasec))