@ -1,5 +1,5 @@
#
#
# Copyright (C) 2009-2010 OpenWrt.org
# Copyright (C) 2009-2014 OpenWrt.org
#
#
# This is free software, licensed under the GNU General Public License v2.
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
# See /LICENSE for more information.
@ -8,12 +8,17 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := luasec
PKG_NAME := luasec
PKG_VERSION := 0.4
PKG_VERSION := 0.5
PKG_RELEASE := 1
PKG_RELEASE := 1
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := http://files.luaforge.net/releases/luasec/LuaSec/LuaSec0.4/
PKG_MD5SUM := 712158d60207bdbb6215fc7e07d8db24
PKG_SOURCE_URL := https://github.com/brunoos/luasec/archive/
PKG_MD5SUM := 0518f4524f399f33424c6f450e1d06db
PKG_BUILD_DIR := $( BUILD_DIR) /$( PKG_NAME) -$( PKG_NAME) -$( PKG_VERSION)
MAINTAINER := W. Michael Petullo <mike@flyn.org>
PKG_LICENSE := MIT
PKG_LICENSE_FILES := LICENSE
PKG_INSTALL := 1
PKG_INSTALL := 1
@ -24,8 +29,7 @@ define Package/luasec
SECTION:= lang
SECTION:= lang
CATEGORY:= Languages
CATEGORY:= Languages
TITLE:= LuaSec
TITLE:= LuaSec
URL:= http://luasec.luaforge.net/
MAINTAINER:= W. Michael Petullo <mike@flyn.org>
URL:= https://github.com/brunoos/luasec
DEPENDS:= +lua +libopenssl +luasocket
DEPENDS:= +lua +libopenssl +luasocket
e n d e f
e n d e f
@ -36,16 +40,15 @@ endef
d e f i n e B u i l d / C o n f i g u r e
d e f i n e B u i l d / C o n f i g u r e
e n d e f
e n d e f
MAKE_PATH = ./src
MAKE_FLAGS += \
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 \
INCDIR = " $( TARGET_CPPFLAGS) -I. " \
LIBDIR = " $( TARGET_LDFLAGS) -L./luasocket " \
LUACPATH = "/usr/lib/lua" \
LUAPATH = "/usr/lib/lua"
d e f i n e B u i l d / C o m p i l e
$( call Build /Compile /Default ,linux )
e n d e f
d e f i n e P a c k a g e / l u a s e c / i n s t a l l
d e f i n e P a c k a g e / l u a s e c / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib/lua
$( INSTALL_DIR) $( 1) /usr/lib/lua