From 31d4e36b7cf52c0e8c0163ca7625efe6b3a2a400 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 28 Jul 2020 14:33:50 -0700 Subject: [PATCH] ttyd: update to 1.6.1 Refresh patch. Signed-off-by: Rosen Penev --- utils/ttyd/Makefile | 6 +++--- utils/ttyd/patches/100-log-to-syslog.patch | 24 +++++++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/utils/ttyd/Makefile b/utils/ttyd/Makefile index 71e6f122cb..2e195f8216 100644 --- a/utils/ttyd/Makefile +++ b/utils/ttyd/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ttyd -PKG_VERSION:=1.6.0 -PKG_RELEASE:=2 +PKG_VERSION:=1.6.1 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/tsl0922/ttyd/tar.gz/$(PKG_VERSION)? -PKG_HASH:=d14740bc82be0d0760dd0a3c97acbcbde490412a4edc61edabe46d311b068f83 +PKG_HASH:=d72dcca3dec00cda87b80a0a25ae4fee2f8b9098c1cdb558508dcb14fbb6fafc PKG_MAINTAINER:=Shuanglei Tao PKG_LICENSE:=MIT diff --git a/utils/ttyd/patches/100-log-to-syslog.patch b/utils/ttyd/patches/100-log-to-syslog.patch index 392673270f..04a3027c2a 100644 --- a/utils/ttyd/patches/100-log-to-syslog.patch +++ b/utils/ttyd/patches/100-log-to-syslog.patch @@ -1,20 +1,20 @@ --- a/src/server.c +++ b/src/server.c -@@ -6,6 +6,7 @@ - #include - #include +@@ -10,6 +10,7 @@ + #include + #include #include +#include - #include - #include -@@ -418,7 +419,8 @@ main(int argc, char **argv) { - return -1; - } + #include "utils.h" -- lws_set_log_level(debug_level, NULL); -+ openlog("ttyd", LOG_NDELAY | LOG_PID, LOG_DAEMON); -+ lws_set_log_level(debug_level, lwsl_emit_syslog); +@@ -441,7 +442,8 @@ int main(int argc, char **argv) { + return -1; + } + +- lws_set_log_level(debug_level, NULL); ++ openlog("ttyd", LOG_NDELAY | LOG_PID, LOG_DAEMON); ++ lws_set_log_level(debug_level, lwsl_emit_syslog); #if LWS_LIBRARY_VERSION_MAJOR >= 2 - char server_hdr[128] = ""; + char server_hdr[128] = ""; -- 2.30.2