From: Geoffrey Hausheer Date: Fri, 5 Jul 2024 16:29:28 +0000 (-0700) Subject: luasocket: Enable serial module X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=6769d5cf118b3a31ca4ecc36a5d656f50b19d059;p=openwrt-packages.git luasocket: Enable serial module Includes the serial module for luasockets (which is already being built) in the final package. This allows using socket.select() on a serial port (eg /dev/ttyACM0) which is the easiest way to use a serial-port with coroutines. Signed-off-by: Geoffrey Hausheer --- diff --git a/lang/luasocket/Makefile b/lang/luasocket/Makefile index f5d458c28..9538d7a9c 100644 --- a/lang/luasocket/Makefile +++ b/lang/luasocket/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=luasocket PKG_VERSION:=3.1.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_VERSION:=v$(PKG_VERSION) @@ -83,6 +83,7 @@ define Package/luasocket/install $(INSTALL_DIR) $(1)/usr/lib/lua/socket $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/{ftp,http,smtp,tp,url,headers}.lua $(1)/usr/lib/lua/socket $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/unix.so $(1)/usr/lib/lua/socket + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/serial.so $(1)/usr/lib/lua/socket ln -sf ../socket-3.0.0.so $(1)/usr/lib/lua/socket/core.so endef