Conflicts: net/ipsec-tools/Makefilelilik-openwrt-22.03
@ -0,0 +1,22 @@ | |||
--- a/plugins/if_ | |||
+++ b/plugins/if_ | |||
@@ -26,7 +26,7 @@ config_if() { | |||
fi | |||
} | |||
fetch_if() { | |||
- IINFO=$(grep "$1:" /proc/net/dev | cut -d: -f2 | sed -e 's/ / /g') | |||
+ IINFO=$(cat /proc/net/dev | sed -e 's/-/_/g' | grep "$1:" | cut -d: -f2 | sed -e 's/ */ /g' -e 's/^[ \t]*//') | |||
echo "down.value" $(echo $IINFO | cut -d\ -f1) | |||
echo "up.value" $(echo $IINFO | cut -d\ -f9) | |||
} | |||
--- a/plugins/if_err_ | |||
+++ b/plugins/if_err_ | |||
@@ -15,7 +15,7 @@ config_if_err() { | |||
echo "trans.warning 1" | |||
} | |||
fetch_if_err() { | |||
- IINFO=$(grep "$1:" /proc/net/dev | cut -d: -f2 | sed -e 's/ / /g') | |||
+ IINFO=$(cat /proc/net/dev | sed -e 's/-/_/g' | grep "$1:" | cut -d: -f2 | sed -e 's/ */ /g' -e 's/^[ \t]*//') | |||
echo "rcvd.value" $(echo $IINFO | cut -d\ -f3) | |||
echo "trans.value" $(echo $IINFO | cut -d\ -f11) | |||
} |
@ -0,0 +1,23 @@ | |||
--- a/configure.ac | |||
+++ b/configure.ac | |||
@@ -51,7 +51,7 @@ AC_CHECK_HEADERS(stdio.h stdlib.h string | |||
syslog.h time.h errno.h sys/types.h sys/stat.h netinet/in.h \ | |||
math.h sys/socket.h dirent.h ctype.h \ | |||
mtent.h fcntl.h sys/param.h arpa/inet.h \ | |||
- sys/vfs.h sys/pstat.h sys/sysinfo.h sys/statvfs.h sys/statfs.h \ | |||
+ sys/vfs.h sys/pstat.h sys/statvfs.h sys/statfs.h \ | |||
sys/socket.h sys/loadavg.h arpa/inet.h \ | |||
sys/vmmeter.h strings.h vm/vm_param.h \ | |||
sys/time.h kstat.h sys/syscall.h sys/sysmacros.h \ | |||
@@ -63,6 +63,11 @@ AC_CHECK_HEADERS(stdio.h stdlib.h string | |||
sys/timeb.h Winber.h lber.h ws2tcpip.h inttypes.h sys/file.h grp.h \ | |||
execinfo.h libperfstat.h sys/systemcfg.h sys/mnttab.h mntent.h sys/times.h \ | |||
dlfcn.h sys/utsname.h) | |||
+AC_CHECK_HEADERS(sys/sysinfo.h, [], [], [ | |||
+#ifdef HAVE_LINUX_KERNEL_H | |||
+# include <linux/kernel.h> | |||
+#endif | |||
+]) | |||
AC_CHECK_HEADERS(resolv.h, [], [], [ | |||
#ifdef HAVE_SYS_TYPES_H | |||
# include <sys/types.h> |
@ -0,0 +1,10 @@ | |||
--- a/instrumentation/events/lttng-module/kmem.h | |||
+++ b/instrumentation/events/lttng-module/kmem.h | |||
@@ -287,6 +287,7 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE_PRINT(mm | |||
) | |||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2) \ | |||
+ || LTTNG_KERNEL_RANGE(3,18,10, 3,19,0) \ | |||
|| LTTNG_KERNEL_RANGE(3,14,36, 3,15,0) \ | |||
|| LTTNG_DEBIAN_KERNEL_RANGE(3,16,7,9,0,0, 3,17,0,0,0,0)) | |||
@ -1,29 +1,40 @@ | |||
--- aiccu/common/resolver.c.orig 2007-09-02 23:10:58.000000000 +0200 | |||
+++ aiccu/common/resolver.c 2007-09-02 23:11:01.000000000 +0200 | |||
--- a/common/resolver.c | |||
+++ b/common/resolver.c | |||
@@ -26,7 +26,7 @@ | |||
int getrrs(const char *label, int rrtype, void gotrec(unsigned int num, int type, const char *record)) | |||
{ | |||
-#ifdef _LINUX | |||
+#if defined(_LINUX) && !defined(__UCLIBC__) | |||
+#if defined(_LINUX) && defined(__GLIBC__) | |||
struct __res_state res; | |||
#endif | |||
unsigned char answer[8192]; | |||
@@ -38,7 +38,7 @@ | |||
@@ -38,7 +38,7 @@ int getrrs(const char *label, int rrtype | |||
uint16_t type = 0, class = 0; | |||
uint32_t ttl = 0; | |||
-#ifdef _LINUX | |||
+#if defined(_LINUX) && !defined(__UCLIBC__) | |||
+#if defined(_LINUX) && defined(__GLIBC__) | |||
memset(&res, 0, sizeof(res)); | |||
res.options = RES_DEBUG; | |||
res_ninit(&res); | |||
@@ -47,7 +47,7 @@ | |||
@@ -47,7 +47,7 @@ int getrrs(const char *label, int rrtype | |||
#endif | |||
memset(answer, 0, sizeof(answer)); | |||
-#ifdef _LINUX | |||
+#if defined(_LINUX) && !defined(__UCLIBC__) | |||
+#if defined(_LINUX) && defined(__GLIBC__) | |||
ret = res_nquery(&res, label, C_IN, rrtype, answer, sizeof(answer)); | |||
#else | |||
ret = res_query(label, C_IN, rrtype, answer, sizeof(answer)); | |||
--- a/common/dn_skipname.c | |||
+++ b/common/dn_skipname.c | |||
@@ -9,7 +9,7 @@ | |||
* return: | |||
* 0 on success, -1 (with errno set) on failure. | |||
*/ | |||
-int ns_name_skip(const u_char **ptrptr, const u_char *eom) | |||
+static int ns_name_skip(const u_char **ptrptr, const u_char *eom) | |||
{ | |||
const u_char *cp; | |||
u_int n; |
@ -0,0 +1,29 @@ | |||
--- a/common/common.h | |||
+++ b/common/common.h | |||
@@ -50,6 +50,7 @@ | |||
#include <signal.h> | |||
#include <sys/types.h> | |||
#include <sys/stat.h> | |||
+#include <sys/uio.h> | |||
#include <fcntl.h> | |||
#if defined(_SUNOS) || defined(_AIX) || defined(_DARWIN) | |||
@@ -91,7 +92,9 @@ | |||
#include <sys/select.h> | |||
#include <net/if.h> | |||
+#if defined(__GLIBC__) || defined(__UCLIBC__) | |||
#include <netinet/if_ether.h> | |||
+#endif | |||
#ifdef linux | |||
#include <netpacket/packet.h> | |||
#include <linux/if_tun.h> | |||
--- a/common/dn_skipname.c | |||
+++ b/common/dn_skipname.c | |||
@@ -1,5 +1,6 @@ | |||
#include <errno.h> | |||
#include <resolv.h> | |||
+#include <sys/types.h> | |||
/* Ripped from glibc 2.4 sources. */ | |||
@ -0,0 +1,51 @@ | |||
# | |||
# Copyright (C) 2014 Bruno Randolf <br1@einfach.org> | |||
# | |||
# This is free software, licensed under the GNU General Public License v2. | |||
# See /LICENSE for more information. | |||
# | |||
include $(TOPDIR)/rules.mk | |||
include $(INCLUDE_DIR)/kernel.mk | |||
PKG_NAME:=exfat-nofuse | |||
PKG_VERSION:=git-20150301 | |||
PKG_RELEASE:=1 | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 | |||
PKG_SOURCE_URL:=https://github.com/dorimanx/exfat-nofuse.git | |||
PKG_SOURCE_PROTO:=git | |||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |||
PKG_SOURCE_VERSION:=63964d3fb69cffe9a38822a657bb3b3279eebadf | |||
PKG_MAINTAINER:=Bruno Randolf <br1@einfach.org> | |||
PKG_LICENSE:=GPL-2.0 | |||
PKG_LICENSE_FILES:=LICENSE | |||
include $(INCLUDE_DIR)/package.mk | |||
define KernelPackage/fs-exfat | |||
SUBMENU:=Filesystems | |||
TITLE:=ExFAT Kernel driver | |||
FILES:=$(PKG_BUILD_DIR)/exfat.ko | |||
AUTOLOAD:=$(call AutoLoad,30,exfat,1) | |||
DEPENDS:=+kmod-nls-base @BUILD_PATENTED | |||
endef | |||
define KernelPackage/fs-exfat/description | |||
Kernel module for ExFAT Filesytems | |||
endef | |||
MAKE_OPTS:= \ | |||
ARCH="$(LINUX_KARCH)" \ | |||
CROSS_COMPILE="$(TARGET_CROSS)" \ | |||
M="$(PKG_BUILD_DIR)" | |||
define Build/Compile | |||
$(MAKE) -C "$(LINUX_DIR)" \ | |||
$(MAKE_OPTS) \ | |||
CONFIG_EXFAT_FS=m \ | |||
modules | |||
endef | |||
$(eval $(call KernelPackage,fs-exfat)) |
@ -0,0 +1,11 @@ | |||
--- a/lib/erl_interface/src/connect/ei_resolve.c | |||
+++ b/lib/erl_interface/src/connect/ei_resolve.c | |||
@@ -642,7 +642,7 @@ struct hostent *ei_gethostbyname_r(const | |||
#ifndef HAVE_GETHOSTBYNAME_R | |||
return my_gethostbyname_r(name,hostp,buffer,buflen,h_errnop); | |||
#else | |||
-#if (defined(__GLIBC__) || (__FreeBSD_version >= 602000) || defined(__DragonFly__) || defined(__ANDROID__)) | |||
+#if (defined(_GNU_SOURCE) || (__FreeBSD_version >= 602000) || defined(__DragonFly__) || defined(__ANDROID__)) | |||
struct hostent *result; | |||
gethostbyname_r(name, hostp, buffer, buflen, &result, h_errnop); |
@ -0,0 +1,52 @@ | |||
# | |||
# Copyright (C) 2006-2015 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:=json4lua | |||
PKG_VERSION:=0.9.53 | |||
PKG_RELEASE:=1 | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz | |||
PKG_SOURCE_PROTO:=git | |||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |||
PKG_SOURCE_URL:=https://github.com/amrhassan/json4lua.git | |||
PKG_SOURCE_VERSION:=$(PKG_VERSION) | |||
PKG_MAINTAINER:=Amr Hassan <amr.hassan@gmail.com> | |||
PKG_LICENSE=MIT | |||
LUA_MODULE_PATH:=/usr/lib/lua | |||
include $(INCLUDE_DIR)/package.mk | |||
define Package/json4lua | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=json4lua | |||
URL:=https://github.com/amrhassan/json4lua | |||
DEPENDS:=+lua +luasocket | |||
endef | |||
define Package/json4lua/description | |||
JSON and JSONRPC for Lua | |||
endef | |||
define Build/Configure | |||
endef | |||
define Build/Compile | |||
endef | |||
define Package/json4lua/install | |||
$(INSTALL_DIR) $(1)/$(LUA_MODULE_PATH)/json | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/json/json.lua $(1)/$(LUA_MODULE_PATH)/json.lua | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/json/rpc.lua $(1)/$(LUA_MODULE_PATH)/json/rpc.lua | |||
endef | |||
$(eval $(call BuildPackage,json4lua)) |
@ -0,0 +1,48 @@ | |||
# | |||
# Copyright (C) 2015 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:=lpeg | |||
PKG_VERSION:=0.12.2 | |||
PKG_RELEASE:=1 | |||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> | |||
PKG_LICENSE:=MIT | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |||
PKG_SOURCE_URL:=http://www.inf.puc-rio.br/~roberto/lpeg/ | |||
PKG_MD5SUM:=fabb614eb46e370d4f6b8fd82d17ca7e | |||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) | |||
include $(INCLUDE_DIR)/package.mk | |||
define Package/lpeg | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=LPeg | |||
URL:=http://www.inf.puc-rio.br/~roberto/lpeg/ | |||
DEPENDS:=+lua | |||
endef | |||
define Package/lpeg/description | |||
LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs) | |||
endef | |||
define Build/Configure | |||
endef | |||
# add make variable overrides here | |||
MAKE_FLAGS += | |||
define Package/lpeg/install | |||
$(INSTALL_DIR) $(1)/usr/lib/lua | |||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lpeg.so $(1)/usr/lib/lua | |||
endef | |||
$(eval $(call BuildPackage,lpeg)) |
@ -0,0 +1,50 @@ | |||
# | |||
# Copyright (C) 2015 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:=lua-cjson | |||
PKG_VERSION:=2.1.0 | |||
PKG_RELEASE:=2 | |||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> | |||
PKG_LICENSE:=MIT | |||
PKG_LICENSE_FILES:=LICENSE | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |||
PKG_SOURCE_URL:=http://www.kyne.com.au/~mark/software/download/ | |||
PKG_MD5SUM:=24f270663e9f6ca8ba2a02cef19f7963 | |||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) | |||
include $(INCLUDE_DIR)/package.mk | |||
include $(INCLUDE_DIR)/cmake.mk | |||
define Package/lua-cjson | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=Lua CJSON parser | |||
URL:=https://github.com/mpx/lua-cjson | |||
DEPENDS:= +lua | |||
endef | |||
define Package/lua-cjson/description | |||
Lua CJSON is a fast JSON encoding/parsing module for Lua. | |||
endef | |||
CMAKE_OPTIONS += \ | |||
-DUSE_LUA=ON | |||
define Package/lua-cjson/install | |||
$(INSTALL_DIR) $(1)/usr/lib/lua | |||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cjson.so $(1)/usr/lib/lua/ | |||
$(INSTALL_DIR) $(1)/usr/lib/lua/cjson | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/lua/cjson/util.lua $(1)/usr/lib/lua/cjson | |||
endef | |||
$(eval $(call BuildPackage,lua-cjson)) |
@ -0,0 +1,62 @@ | |||
# | |||
# Copyright (C) 2009-2013 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:=lua-copas | |||
PKG_VERSION:=2.0.0 | |||
PKG_RELEASE:=1 | |||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> | |||
PKG_LICENSE:=MIT | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |||
PKG_SOURCE_URL:=https://github.com/keplerproject/copas.git | |||
PKG_SOURCE_PROTO:=git | |||
PKG_SOURCE_VERSION:=f39a80add9f7c010ac979297652bbaaea0360a27 | |||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |||
PKG_INSTALL:=1 | |||
include $(INCLUDE_DIR)/package.mk | |||
define Package/lua-copas | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=Lua-Copas | |||
URL:=https://github.com/keplerproject/copas | |||
DEPENDS:=+lua | |||
endef | |||
define Package/lua-copas/description | |||
Copas is a dispatcher based on coroutines that can be used by TCP/IP servers. | |||
endef | |||
define Build/Configure | |||
endef | |||
define Build/Compile | |||
$(MAKE) -C $(PKG_BUILD_DIR) \ | |||
T="$(BUILD_VARIANT)" \ | |||
PREFIX="$(PKG_INSTALL_DIR)/usr" \ | |||
install | |||
endef | |||
# add make variable overrides here | |||
MAKE_FLAGS += | |||
define Package/lua-copas/install | |||
$(INSTALL_DIR) $(1)/usr/lib/lua | |||
$(INSTALL_DIR) $(1)/usr/lib/lua/copas | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas.lua $(1)/usr/lib/lua | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/ftp.lua $(1)/usr/lib/lua/copas | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/smtp.lua $(1)/usr/lib/lua/copas | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/http.lua $(1)/usr/lib/lua/copas | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/limit.lua $(1)/usr/lib/lua/copas | |||
endef | |||
$(eval $(call BuildPackage,lua-copas)) |
@ -0,0 +1,15 @@ | |||
--- lua-copas-1.2.1_org/Makefile 2014-06-04 16:39:17.451563827 +0800 | |||
+++ lua-copas-1.2.1/Makefile 2014-06-04 16:39:41.115563309 +0800 | |||
@@ -1,10 +1,10 @@ | |||
# $Id: Makefile,v 1.3 2007/10/29 22:50:16 carregal Exp $ | |||
# Default prefix | |||
-PREFIX = /usr/local | |||
+PREFIX ?= $(DESTDIR)/usr | |||
# System's lua directory (where Lua libraries are installed) | |||
-LUA_DIR= $(PREFIX)/share/lua/5.1 | |||
+LUA_DIR= $(PREFIX)/lib/lua | |||
install: | |||
mkdir -p $(LUA_DIR)/copas |
@ -0,0 +1,59 @@ | |||
# | |||
# Copyright (C) 2009-2013 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:=lua-coxpcall | |||
PKG_VERSION:=1.15.0 | |||
PKG_RELEASE:=1 | |||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> | |||
PKG_LICENSE:=MIT | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |||
PKG_SOURCE_URL:=https://github.com/keplerproject/coxpcall.git | |||
PKG_SOURCE_PROTO:=git | |||
PKG_SOURCE_VERSION:=979257892884816c97391dfd7b0a7b30dcc8f479 | |||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |||
PKG_INSTALL:=1 | |||
include $(INCLUDE_DIR)/package.mk | |||
define Package/lua-coxpcall | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=Lua-Coxpcall | |||
URL:=https://github.com/keplerproject/coxpcall | |||
DEPENDS:=+lua | |||
endef | |||
define Package/lua-coxpcall/description | |||
Coxpcall encapsulates the protected calls with a coroutine based loop, | |||
so errors can be dealed without the usual pcall/xpcall issues with coroutines. | |||
endef | |||
TARGET_CFLAGS += $(FPIC) | |||
# add make variable overrides here | |||
MAKE_FLAGS += | |||
define Build/Configure | |||
endef | |||
define Build/Compile | |||
$(MAKE) -C $(PKG_BUILD_DIR) \ | |||
T="$(BUILD_VARIANT)" \ | |||
LUA_DIR="$(PKG_INSTALL_DIR)/usr/lib/lua" \ | |||
install | |||
endef | |||
define Package/lua-coxpcall/install | |||
$(INSTALL_DIR) $(1)/usr/lib/lua | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/coxpcall.lua $(1)/usr/lib/lua | |||
endef | |||
$(eval $(call BuildPackage,lua-coxpcall)) |
@ -0,0 +1,4 @@ | |||
--- lua-coxpcall-1.15.0_org/config 1970-01-01 08:00:00.000000000 +0800 | |||
+++ lua-coxpcall-1.15.0/config 2014-06-04 16:51:55.487547258 +0800 | |||
@@ -0,0 +1 @@ | |||
+LUA_DIR ?=$(DESTDIR)/usr/lib/lua |
@ -0,0 +1,48 @@ | |||
# | |||
# Copyright (C) 2015 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:=lua-lzlib | |||
PKG_VERSION:=0.4.3 | |||
PKG_RELEASE:=1 | |||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> | |||
PKG_LICENSE:=MIT | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |||
PKG_SOURCE_URL:=https://github.com/LuaDist/lzlib.git | |||
PKG_SOURCE_PROTO:=git | |||
PKG_SOURCE_VERSION:=79329a07d8f79c19eadd7ea2752b4c4e1574b015 | |||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |||
include $(INCLUDE_DIR)/package.mk | |||
define Package/lua-lzlib | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=Lua zlib binding | |||
URL:=http://github.com/LuaDist/lzlib | |||
DEPENDS:= +lua +zlib | |||
endef | |||
define Package/lua-lzlib/description | |||
A library to access zlib library functions and also to read/write gzip files using an interface similar to the base io package. | |||
endef | |||
MAKE_FLAGS += \ | |||
LUA="$(STAGING_DIR)/usr" \ | |||
OFLAGS="$(TARGET_CFLAGS)" \ | |||
define Package/lua-lzlib/install | |||
$(INSTALL_DIR) $(1)/usr/lib/lua | |||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/zlib.so $(1)/usr/lib/lua/ | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/gzip.lua $(1)/usr/lib/lua/ | |||
endef | |||
$(eval $(call BuildPackage,lua-lzlib)) |
@ -0,0 +1,12 @@ | |||
--- a/Makefile | |||
+++ b/Makefile | |||
@@ -14,7 +14,8 @@ LUABIN= $(LUA)/bin | |||
ZLIB=../zlib-1.2.3 | |||
# no need to change anything below here | |||
-CFLAGS= $(INCS) $(DEFS) $(WARN) -O0 -fPIC | |||
+CFLAGS= $(INCS) $(DEFS) $(WARN) $(OFLAGS) -fPIC | |||
+OFLAGS= -O0 | |||
WARN= -g -Werror -Wall -pedantic #-ansi | |||
INCS= -I$(LUAINC) -I$(ZLIB) | |||
LIBS= -L$(ZLIB) -lz -L$(LUALIB) -L$(LUABIN) #-llua51 |
@ -0,0 +1,75 @@ | |||
# | |||
# Copyright (C) 2015 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:=lua-md5 | |||
PKG_VERSION:=1.2 | |||
PKG_RELEASE:=1 | |||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> | |||
PKG_LICENSE:=MIT | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |||
PKG_SOURCE_URL:=https://github.com/keplerproject/md5.git | |||
PKG_SOURCE_PROTO:=git | |||
PKG_SOURCE_VERSION:=024b65738b4434860777fc43d7cacaefea29ec60 | |||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |||
PKG_INSTALL:=1 | |||
include $(INCLUDE_DIR)/package.mk | |||
define Package/lua-md5 | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=Lua-MD5 | |||
URL:=https://github.com/keplerproject/md5 | |||
DEPENDS:=+lua | |||
endef | |||
define Package/lua-md5/description | |||
MD5 offers basic cryptographic facilities for Lua | |||
endef | |||
TARGET_CFLAGS += $(FPIC) | |||
# add make variable overrides here | |||
MAKE_FLAGS += | |||
define Build/Configure | |||
endef | |||
define Build/Compile | |||
$(MAKE) -C $(PKG_BUILD_DIR) \ | |||
PREFIX="$(STAGING_DIR)/usr" \ | |||
LUA_LIBDIR="$(STAGING_DIR)/usr/lib/lua" \ | |||
clean | |||
$(MAKE) -C $(PKG_BUILD_DIR) \ | |||
PREFIX="$(STAGING_DIR)/usr" \ | |||
LUA_LIBDIR="$(STAGING_DIR)/usr/lib/lua" \ | |||
LIB_OPTION="-shared" \ | |||
CC="$(TARGET_CROSS)gcc" \ | |||
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ | |||
all | |||
endef | |||
define Build/Install | |||
$(MAKE) -C $(PKG_BUILD_DIR) \ | |||
LUA_LIBDIR="$(PKG_INSTALL_DIR)/usr/lib/lua" \ | |||
LUA_DIR="$(PKG_INSTALL_DIR)/usr/lib/lua" \ | |||
install | |||
endef | |||
define Package/lua-md5/install | |||
$(INSTALL_DIR) $(1)/usr/lib/lua | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/md5.lua $(1)/usr/lib/lua | |||
$(INSTALL_DIR) $(1)/usr/lib/lua/md5 | |||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/core.so $(1)/usr/lib/lua/md5/core.so | |||
endef | |||
$(eval $(call BuildPackage,lua-md5)) |
@ -0,0 +1,19 @@ | |||
--- lua-md5-1.2/config 2014-06-04 16:55:50.000000000 +0800 | |||
+++ lua-md5-1.2_new/config 2014-06-04 16:57:54.223539416 +0800 | |||
@@ -1,13 +1,13 @@ | |||
# Installation directories | |||
# Default prefix | |||
-PREFIX = /usr/local | |||
+PREFIX = /usr | |||
# System's libraries directory (where binary libraries are installed) | |||
-LUA_LIBDIR= $(PREFIX)/lib/lua/5.1 | |||
+LUA_LIBDIR= $(PREFIX)/lib/lua | |||
# System's lua directory (where Lua libraries are installed) | |||
-LUA_DIR= $(PREFIX)/share/lua/5.1 | |||
+LUA_DIR= $(PREFIX)/lib/lua | |||
# Lua includes directory | |||
LUA_INC= $(PREFIX)/include |
@ -0,0 +1,10 @@ | |||
--- a/Makefile.orig 2014-06-04 17:16:40.083514808 +0800 | |||
+++ b/Makefile 2014-06-04 17:17:27.111513780 +0800 | |||
@@ -1,6 +1,6 @@ | |||
# $Id: Makefile,v 1.7 2007/10/11 00:02:56 carregal Exp $ | |||
-CONFIG= ./config | |||
+CFLAGS+= -fPIC | |||
include $(CONFIG) | |||
@ -0,0 +1,56 @@ | |||
# | |||
# Copyright (C) 2015 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:=lua-mobdebug | |||
PKG_VERSION:=0.61 | |||
PKG_RELEASE:=1 | |||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> | |||
PKG_LICENSE:=MIT | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |||
PKG_SOURCE_URL:=https://github.com/pkulchenko/MobDebug.git | |||
PKG_SOURCE_PROTO:=git | |||
PKG_SOURCE_VERSION:=9a03aa59696647ba3b7f9ae2f29a9f28532a4feb | |||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |||
PKG_INSTALL:=1 | |||
include $(INCLUDE_DIR)/package.mk | |||
define Package/lua-mobdebug | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=Lua-MobDebug | |||
URL:=https://github.com/pkulchenko/MobDebug | |||
DEPENDS:=+lua | |||
endef | |||
define Package/lua-mobdebug/description | |||
MobDebug is a remote debugger for Lua (including Lua 5.1, Lua 5.2, Lua 5.3, and LuaJIT 2.x). | |||
endef | |||
define Build/Configure | |||
endef | |||
define Build/Compile | |||
endef | |||
define Build/Install | |||
endef | |||
# add make variable overrides here | |||
MAKE_FLAGS += | |||
define Package/lua-mobdebug/install | |||
$(INSTALL_DIR) $(1)/usr/lib/lua | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/mobdebug.lua $(1)/usr/lib/lua | |||
endef | |||
$(eval $(call BuildPackage,lua-mobdebug)) |
@ -0,0 +1,54 @@ | |||
# | |||
# Copyright (C) 2015 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:=lua-rings | |||
PKG_VERSION:=1.3.0 | |||
PKG_RELEASE:=1 | |||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> | |||
PKG_LICENSE:=MIT | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |||
PKG_SOURCE_URL:=https://github.com/keplerproject/rings.git | |||
PKG_SOURCE_PROTO:=git | |||
PKG_SOURCE_VERSION:=2b8a900f8b9dbde304859a3ac9d437795c3fdde3 | |||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |||
PKG_FIXUP:=autoreconf | |||
PKG_INSTALL:=1 | |||
include $(INCLUDE_DIR)/package.mk | |||
define Package/lua-rings | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=Lua-Rings | |||
URL:=http://www.inf.puc-rio.br/~roberto/lua-rings/ | |||
DEPENDS:=+lua | |||
endef | |||
define Package/lua-rings/description | |||
Rings is a library which provides a way to create new Lua states from within Lua. | |||
endef | |||
TARGET_CFLAGS += $(FPIC) | |||
# add make variable overrides here | |||
MAKE_FLAGS += | |||
define Build/Configure | |||
endef | |||
define Package/lua-rings/install | |||
$(INSTALL_DIR) $(1)/usr/lib/lua | |||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/rings.so $(1)/usr/lib/lua | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/stable.lua $(1)/usr/lib/lua | |||
endef | |||
$(eval $(call BuildPackage,lua-rings)) |
@ -0,0 +1,28 @@ | |||
--- lua-rings-1.3.0_org/config 2014-06-04 15:24:24.223662038 +0800 | |||
+++ lua-rings-1.3.0/config 2014-06-04 16:16:15.183594040 +0800 | |||
@@ -1,15 +1,15 @@ | |||
# Installation directories | |||
# Default prefix | |||
-PREFIX ?= /usr/local | |||
+PREFIX ?= /usr | |||
DESTDIR ?= / | |||
# System's libraries directory (where binary libraries are installed) | |||
-LUA_LIBDIR ?= $(PREFIX)/lib/lua/5.1 | |||
+LUA_LIBDIR ?= $(PREFIX)/lib/lua | |||
# System's lua directory (where Lua libraries are installed) | |||
-LUA_DIR ?= $(PREFIX)/share/lua/5.1 | |||
+LUA_DIR ?= $(PREFIX)/lib/lua | |||
# Lua includes directory | |||
LUA_INC ?= $(PREFIX)/include | |||
@@ -24,6 +24,5 @@ | |||
WARN ?= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -Wpointer-arith -pedantic | |||
INCS ?= -I$(LUA_INC) | |||
CFLAGS ?= $(WARN) $(INCS) | |||
-CC ?= gcc | |||
# $Id: config,v 1.7 2007/10/29 22:51:39 carregal Exp $ |
@ -0,0 +1,11 @@ | |||
--- lua-rings-1.3.0_org/Makefile 2014-06-04 15:24:37.583661746 +0800 | |||
+++ lua-rings-1.3.0/Makefile 2014-06-04 15:23:41.611662970 +0800 | |||
@@ -3,6 +3,8 @@ | |||
T= rings | |||
CONFIG= ./config | |||
+CFLAGS+= -fPIC | |||
+ | |||
include $(CONFIG) | |||
SRCS= src/rings.c |
@ -0,0 +1,62 @@ | |||
# | |||
# Copyright (C) 2015 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:=lua-rs232 | |||
PKG_VERSION:=1.0.3 | |||
PKG_RELEASE:=1 | |||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> | |||
PKG_LICENSE:=MIT | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |||
PKG_SOURCE_URL:=https://github.com/srdgame/librs232.git | |||
PKG_SOURCE_PROTO:=git | |||
PKG_SOURCE_VERSION:=a9d463181e7f7034fe6a55bc38e845fb04fa93ba | |||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |||
PKG_INSTALL:=1 | |||
include $(INCLUDE_DIR)/package.mk | |||
define Package/lua-rs232 | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=Lua Serial Library | |||
URL:=https://github.com/srdgame/librs232 | |||
DEPENDS:= +lua | |||
endef | |||
define Package/lua-rs232/description | |||
multiplatform library for serial communications over RS-232 | |||
endef | |||
CONFIGURE_ARGS += \ | |||
--with-lua-inc=$(STAGING_DIR)/usr/include \ | |||
--with-lua-lib=$(STAGING_DIR)/usr/lib | |||
#define Build/Configure | |||
# ( cd "$(PKG_BUILD_DIR)"; ./autogen.sh ) | |||
# $(call Build/Configure/Default) | |||
#endef | |||
define Build/Configure | |||
endef | |||
define Build/Compile | |||
(cd "$(PKG_BUILD_DIR)"; $(TARGET_CC) src/rs232.c src/rs232_posix.c bindings/lua/luars232.c -DLUAROCKS_HACK -std=gnu99 -I./include -I$(STAGING_DIR)/usr/include -L$(STAGING_DIR)/usr/lib -fPIC -shared -o luars232.so) | |||
endef | |||
define Build/Install | |||
endef | |||
define Package/lua-rs232/install | |||
$(INSTALL_DIR) $(1)/usr/lib/lua | |||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/luars232.so $(1)/usr/lib/lua/ | |||
endef | |||
$(eval $(call BuildPackage,lua-rs232)) |
@ -0,0 +1,95 @@ | |||
# | |||
# Copyright (C) 2015 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:=lua-wsapi | |||
PKG_VERSION:=1.6.1 | |||
PKG_RELEASE:=1 | |||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> | |||
PKG_LICENSE:=MIT | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |||
PKG_SOURCE_URL:=https://github.com/keplerproject/wsapi.git | |||
PKG_SOURCE_PROTO:=git | |||
PKG_SOURCE_VERSION:=eed8338401196cc155e59280adbe58d78933ead0 | |||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |||
PKG_INSTALL:=1 | |||
include $(INCLUDE_DIR)/package.mk | |||
define Package/lua-wsapi/Default | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=Lua WSAPI | |||
URL:=http://www.keplerproject.org/wsapi | |||
DEPENDS:= +lua | |||
endef | |||
define Package/lua-wsapi/Default/description | |||
WSAPI is an API that abstracts the web server from Lua web applications | |||
endef | |||
define Package/lua-wsapi-base | |||
$(call Package/lua-wsapi/Default) | |||
TITLE+= base | |||
DEPENDS+= +luafilesystem | |||
VARIANT:=base | |||
endef | |||
define Package/lua-wsapi-base/description | |||
$(call Package/lua-wsapi/Default/description) | |||
. | |||
This package contains the basic stuff. | |||
endef | |||
define Package/lua-wsapi-xavante | |||
$(call Package/lua-wsapi/Default) | |||
TITLE+= xavante | |||
DEPENDS+= +lua-wsapi-base +lua-xavante | |||
VARIANT:=xavante | |||
endef | |||
define Package/lua-wsapi-xavante/description | |||
$(call Package/lua-wsapi/Default/description) | |||
. | |||
This package contains the Xavante stuff. | |||
endef | |||
define Build/Configure | |||
endef | |||
define Build/Compile | |||
endef | |||
define Build/Install | |||
endef | |||
define Package/lua-wsapi-base/install | |||
$(INSTALL_DIR) $(1)/usr/lib/lua | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/wsapi.lua $(1)/usr/lib/lua | |||
$(INSTALL_DIR) $(1)/usr/bin | |||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/launcher/wsapi.cgi $(1)/usr/bin | |||
$(INSTALL_DIR) $(1)/usr/lib/lua/wsapi | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/wsapi/{common,request,response,util,cgi,sapi,ringer,mock}.lua $(1)/usr/lib/lua/wsapi | |||
endef | |||
define Package/lua-wsapi-xavante/install | |||
$(INSTALL_DIR) $(1)/usr/bin | |||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/launcher/wsapi $(1)/usr/bin | |||
$(INSTALL_DIR) $(1)/usr/lib/lua/wsapi | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/wsapi/xavante.lua $(1)/usr/lib/lua/wsapi | |||
endef | |||
$(eval $(call BuildPackage,lua-wsapi-base)) | |||
$(eval $(call BuildPackage,lua-wsapi-xavante)) |
@ -0,0 +1,58 @@ | |||
# | |||
# Copyright (C) 2015 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:=lua-xavante | |||
PKG_VERSION:=2.3.0 | |||
PKG_RELEASE:=1 | |||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> | |||
PKG_LICENSE:=MIT | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |||
PKG_SOURCE_URL:=https://github.com/keplerproject/xavante.git | |||
PKG_SOURCE_PROTO:=git | |||
PKG_SOURCE_VERSION:=9825b905133e14d37a4c179f2d02367ab93f1ef6 | |||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |||
PKG_INSTALL:=1 | |||
include $(INCLUDE_DIR)/package.mk | |||
define Package/lua-xavante | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=Xavante Web Server | |||
URL:=http://www.keplerproject.org/xavante | |||
DEPENDS:= +lua | |||
endef | |||
define Package/lua-xavante/description | |||
Xavante is a Lua HTTP 1.1 Web server that uses a modular architecture based on URI mapped handlers. | |||
endef | |||
define Build/Configure | |||
endef | |||
define Build/Compile | |||
endef | |||
define Build/Install | |||
endef | |||
define Package/lua-xavante/install | |||
$(INSTALL_DIR) $(1)/usr/lib/lua | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/sajax/sajax.lua $(1)/usr/lib/lua | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/xavante/xavante.lua $(1)/usr/lib/lua | |||
$(INSTALL_DIR) $(1)/usr/lib/lua/xavante | |||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/src/xavante/{cgiluahandler,encoding,filehandler,httpd,mime,patternhandler,redirecthandler,vhostshandler,indexhandler,urlhandler,ruleshandler}.lua $(1)/usr/lib/lua/xavante | |||
endef | |||
$(eval $(call BuildPackage,lua-xavante)) |
@ -0,0 +1,58 @@ | |||
# | |||
# Copyright (C) 2006-2015 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:=luarocks | |||
PKG_VERSION:=2.2.2 | |||
PKG_RELEASE:=1 | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz | |||
PKG_SOURCE_PROTO:=git | |||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) | |||
PKG_SOURCE_URL:=https://github.com/keplerproject/luarocks.git | |||
PKG_SOURCE_VERSION:=v$(PKG_VERSION) | |||
PKG_MAINTAINER:=Amr Hassan <amr.hassan@gmail.com> | |||
PKG_INSTALL=1 | |||
PKG_BUILD_DEPENDS:=lua/host luac/host | |||
PKG_LICENSE=GPL | |||
include $(INCLUDE_DIR)/package.mk | |||
define Package/luarocks | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=luarocks | |||
URL:=https://github.com/keplerproject/luarocks | |||
DEPENDS:=+lua +luac +liblua +luasocket +unzip +curl +luasec | |||
endef | |||
define Package/luarocks/description | |||
LuaRocks is a deployment and management system for Lua modules. | |||
endef | |||
# My custom args, copied and modified from SDK_ROOT/include/package-defaults.mk | |||
CONFIGURE_ARGS = \ | |||
--prefix=$(CONFIGURE_PREFIX) \ | |||
--sysconfdir=/etc \ | |||
--with-lua=$(STAGING_DIR_HOST) | |||
define Build/Compile | |||
$(call Build/Compile/Default,build) | |||
endef | |||
define Package/luarocks/install | |||
$(INSTALL_DIR) $(1)/usr/bin | |||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/luarocks-5.1 $(1)/usr/bin/luarocks | |||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/luarocks-admin-5.1 $(1)/usr/bin/luarocks-admin | |||
$(CP) $(PKG_INSTALL_DIR)/usr/share $(1)/usr/share | |||
$(CP) $(PKG_INSTALL_DIR)/etc $(1)/etc | |||
endef | |||
$(eval $(call BuildPackage,luarocks)) |
@ -0,0 +1,13 @@ | |||
diff -rupN luarocks/Makefile luarocks.new/Makefile | |||
--- luarocks/Makefile 2015-02-19 13:24:07.027310956 +0200 | |||
+++ luarocks.new/Makefile 2015-02-22 13:28:24.497353543 +0200 | |||
@@ -104,7 +104,7 @@ build_bins: cleanup_bins | |||
for f in $(BIN_FILES) ;\ | |||
do \ | |||
sed "1d" src/bin/$$f > src/bin/$$f.bak ;\ | |||
- echo "#!$(LUA_BINDIR)/lua$(LUA_SUFFIX)" > src/bin/$$f ;\ | |||
+ echo "#!/usr/bin/env lua" > src/bin/$$f ;\ | |||
echo "package.path = [[$(LUADIR)/?.lua;]]..package.path" | sed "s,//,/,g" >> src/bin/$$f ;\ | |||
cat src/bin/$$f.bak >> src/bin/$$f ;\ | |||
chmod +x src/bin/$$f ;\ | |||
Binary files luarocks/src/bin/.luarocks.swp and luarocks.new/src/bin/.luarocks.swp differ |
@ -0,0 +1,48 @@ | |||
# | |||
# Copyright (C) 2015 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:=lzmq | |||
PKG_VERSION:=0.4.3 | |||
PKG_RELEASE:=1 | |||
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> | |||
PKG_LICENSE:=MIT | |||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | |||
PKG_SOURCE_URL:=https://codeload.github.com/zeromq/lzmq/tar.gz/v$(PKG_VERSION)? | |||
PKG_MD5SUM:=c4e51a60a5a26987bdce59e45d674a9e | |||
include $(INCLUDE_DIR)/package.mk | |||
include $(INCLUDE_DIR)/cmake.mk | |||
define Package/lzmq | |||
SUBMENU:=Lua | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=Lua ZeroMQ binding | |||
URL:=https://github.com/moteus/lzmq/ | |||
DEPENDS:= +lua +libzmq | |||
endef | |||
define Package/lzmq/description | |||
LZMQ is a Lua binding to ZeroMQ. | |||
endef | |||
CMAKE_OPTIONS += \ | |||
-DUSE_LUA=ON | |||
define Package/lzmq/install | |||
$(INSTALL_DIR) $(1)/usr/lib/lua | |||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lzmq.so $(1)/usr/lib/lua/ | |||
$(INSTALL_DIR) $(1)/usr/lib/lua/lzmq | |||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lzmq/timer.so $(1)/usr/lib/lua/lzmq | |||
$(CP) -R $(PKG_BUILD_DIR)/src/lua/lzmq/* $(1)/usr/lib/lua/lzmq | |||
endef | |||
$(eval $(call BuildPackage,lzmq)) |
@ -0,0 +1,53 @@ | |||
# | |||
# Copyright (C) 2014, 2015 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:=perl-device-serialport | |||
PKG_VERSION:=1.04 | |||
PKG_RELEASE:=2 | |||
PKG_SOURCE_URL:=http://www.cpan.org/authors/id/C/CO/COOK/ | |||
PKG_SOURCE:=Device-SerialPort-$(PKG_VERSION).tar.gz | |||
PKG_MD5SUM:=82c698151f934eb28c65d1838cee7d9e | |||
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl | |||
PKG_MAINTAINER:=Paul Oranje <por@xs4all.nl> | |||
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Device-SerialPort-$(PKG_VERSION) | |||
include $(INCLUDE_DIR)/package.mk | |||
include ../perl/perlmod.mk | |||
define Package/perl-device-serialport | |||
SUBMENU:=Perl | |||
SECTION:=lang | |||
CATEGORY:=Languages | |||
TITLE:=A POSIX-based version of the Win32::SerialPort module | |||
URL:=http://search.cpan.org/dist/Device-SerialPort/ | |||
DEPENDS:=perl +perlbase-essential | |||
endef | |||
define Package/perl-device-serialport/description | |||
A POSIX-based version of the Win32::SerialPort module | |||
that provides modem support to Perl applications | |||
endef | |||
define Build/Configure | |||
$(call perlmod/Configure,,) | |||
endef | |||
define Build/Compile | |||
$(call perlmod/Compile,,) | |||
endef | |||
define Package/perl-device-serialport/install | |||
$(call perlmod/Install,$(1),Device auto/Device) | |||
endef | |||
$(eval $(call BuildPackage,perl-device-serialport)) |
@ -0,0 +1,11 @@ | |||
--- a/pp.c | |||
+++ b/pp.c | |||
@@ -43,7 +43,7 @@ extern Pid_t getpid (void); | |||
* Some BSDs and Cygwin default to POSIX math instead of IEEE. | |||
* This switches them over to IEEE. | |||
*/ | |||
-#if defined(LIBM_LIB_VERSION) | |||
+#if defined(LIBM_LIB_VERSION) && (defined(__GLIBC__) || defined(__UCLIBC__)) | |||
_LIB_VERSION_TYPE _LIB_VERSION = _IEEE_; | |||
#endif | |||
@ -0,0 +1,36 @@ | |||
# | |||
# Copyright (C) 2012-2015 OpenWrt.org | |||
# | |||
# This is free software, licensed under the GNU General Public License v2. | |||
# See /LICENSE for more information. | |||
# | |||
include $(TOPDIR)/rules.mk | |||
PECL_NAME:=dio | |||
PECL_LONGNAME:=Direct I/O functions | |||
PKG_VERSION:=0.0.7 | |||
PKG_RELEASE:=1 | |||
PKG_MD5SUM:=a1a4df428a17dbe1ab4277b492dfa052 | |||
PKG_NAME:=php5-pecl-$(PECL_NAME) | |||
PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz | |||
PKG_SOURCE_URL:=http://pecl.php.net/get/ | |||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PECL_NAME)-$(PKG_VERSION) | |||
PKG_BUILD_PARALLEL:=1 | |||
PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de> | |||
PKG_LICENSE:=PHPv3.01 | |||
PKG_LICENSE_FILES:= | |||
PKG_FIXUP:=autoreconf | |||
include $(INCLUDE_DIR)/package.mk | |||
include $(INCLUDE_DIR)/nls.mk | |||
include ../php5/pecl.mk | |||
$(eval $(call PECLPackage,$(PECL_NAME),$(PECL_LONGNAME))) | |||
$(eval $(call BuildPackage,$(PKG_NAME))) |
@ -0,0 +1,29 @@ | |||
--- a/dio.c | |||
+++ b/dio.c | |||
@@ -442,6 +442,26 @@ PHP_FUNCTION(dio_tcsetattr) | |||
/* assign to correct values... */ | |||
switch (Baud_Rate) { | |||
+#ifdef B460800 | |||
+ case 460800: | |||
+ BAUD = B460800; | |||
+ break; | |||
+#endif | |||
+#ifdef B230400 | |||
+ case 230400: | |||
+ BAUD = B230400; | |||
+ break; | |||
+#endif | |||
+#ifdef B115200 | |||
+ case 115200: | |||
+ BAUD = B115200; | |||
+ break; | |||
+#endif | |||
+#ifdef B57600 | |||
+ case 57600: | |||
+ BAUD = B57600; | |||
+ break; | |||
+#endif | |||
case 38400: | |||
BAUD = B38400; | |||
break; |
@ -0,0 +1,38 @@ | |||
# | |||
# Copyright (C) 2012-2015 OpenWrt.org | |||
# | |||
# This is free software, licensed under the GNU General Public License v2. | |||
# See /LICENSE for more information. | |||
# | |||
include $(TOPDIR)/rules.mk | |||
PECL_NAME:=libevent | |||
PECL_LONGNAME:=Libevent - event notification | |||
PKG_VERSION:=0.1.0 | |||
PKG_RELEASE:=2 | |||
PKG_MD5SUM:=e091371a9e714098a4c04a6e3daeb56a | |||
PKG_NAME:=php5-pecl-$(PECL_NAME) | |||
PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz | |||
PKG_SOURCE_URL:=http://pecl.php.net/get/ | |||
PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de> | |||
PKG_LICENSE:=PHPv3.01 | |||
PKG_LICENSE_FILES:= | |||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PECL_NAME)-$(PKG_VERSION) | |||
PKG_BUILD_PARALLEL:=1 | |||
PKG_FIXUP:=autoreconf | |||
include $(INCLUDE_DIR)/package.mk | |||
include $(INCLUDE_DIR)/nls.mk | |||
include ../php5/pecl.mk | |||
CONFIGURE_ARGS+= --with-libevent=shared,"$(STAGING_DIR)/usr" | |||
$(eval $(call PECLPackage,$(PECL_NAME),$(PECL_LONGNAME),+libevent2 +php5-mod-sockets)) | |||
$(eval $(call BuildPackage,$(PKG_NAME))) |
@ -0,0 +1,16 @@ | |||
--- a/libevent.c | |||
+++ b/libevent.c | |||
@@ -42,10 +42,12 @@ | |||
(rsrc = (rsrc_type) zend_fetch_resource(passed_id TSRMLS_CC, default_id, resource_type_name, NULL, 1, resource_type)) | |||
#endif | |||
-#ifdef PHP_WIN32 | |||
+//#ifdef PHP_WIN32 | |||
/* XXX compiling with 2.x on Windows. Luckily the ext code works thanks to the | |||
compat exports from the libevent. However it might need to be adapted to the | |||
never version, so this ifdefs would go away. */ | |||
+#if 1 | |||
+/* force use of libevent2 on OpenWrt and by-pass compat event.h */ | |||
# include <event2/event.h> | |||
# include <event2/event_compat.h> | |||
# include <event2/event_struct.h> |
@ -0,0 +1,39 @@ | |||
# | |||
# Copyright (C) 2015 OpenWrt.org | |||
# | |||
# This is free software, licensed under the GNU General Public License v2. | |||
# See /LICENSE for more information. | |||
# | |||
include $(TOPDIR)/rules.mk | |||
PECL_NAME:=propro | |||
PECL_LONGNAME:=Property proxy | |||
PKG_VERSION:=1.0.0 | |||
PKG_RELEASE:=1 | |||
PKG_MD5SUM:=9c775035fd17c65f0162b7eb1b4f8564 | |||
PKG_NAME:=php5-pecl-propro | |||
PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz | |||
PKG_SOURCE_URL:=http://pecl.php.net/get/ | |||
PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de> | |||
PKG_LICENSE:=BSD-3-Clause | |||
PKG_LICENSE_FILES:=LICENSE | |||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PECL_NAME)-$(PKG_VERSION) | |||
PKG_BUILD_PARALLEL:=1 | |||
PKG_FIXUP:=autoreconf | |||
include $(INCLUDE_DIR)/package.mk | |||
include $(INCLUDE_DIR)/nls.mk | |||
include ../php5/pecl.mk | |||
CONFIGURE_ARGS+= \ | |||
--enable-propro | |||
$(eval $(call PECLPackage,$(PECL_NAME),$(PECL_LONGNAME))) | |||
$(eval $(call BuildPackage,$(PKG_NAME))) |
@ -0,0 +1,39 @@ | |||
# | |||
# Copyright (C) 2015 OpenWrt.org | |||
# | |||
# This is free software, licensed under the GNU General Public License v2. | |||
# See /LICENSE for more information. | |||
# | |||
include $(TOPDIR)/rules.mk | |||
PECL_NAME:=raphf | |||
PECL_LONGNAME:=Resource and persistent handles factory | |||
PKG_VERSION:=1.0.4 | |||
PKG_RELEASE:=1 | |||
PKG_MD5SUM:=e5e7e5c3954a5fd31c034c347f22c4a5 | |||
PKG_NAME:=php5-pecl-raphf | |||
PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz | |||
PKG_SOURCE_URL:=http://pecl.php.net/get/ | |||
PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de> | |||
PKG_LICENSE:=BSD-3-Clause | |||
PKG_LICENSE_FILES:=LICENSE | |||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PECL_NAME)-$(PKG_VERSION) | |||
PKG_BUILD_PARALLEL:=1 | |||
PKG_FIXUP:=autoreconf | |||
include $(INCLUDE_DIR)/package.mk | |||
include $(INCLUDE_DIR)/nls.mk | |||
include ../php5/pecl.mk | |||
CONFIGURE_ARGS+= \ | |||
--enable-raphf | |||
$(eval $(call PECLPackage,$(PECL_NAME),$(PECL_LONGNAME))) | |||
$(eval $(call BuildPackage,$(PKG_NAME))) |