rtty: update to 8.0.0
authorJianhui Zhao <zhaojh329@gmail.com>
Mon, 27 Sep 2021 11:23:34 +0000 (11:23 +0000)
committerHannu Nyman <hannu.nyman@iki.fi>
Sat, 21 Jan 2023 19:19:54 +0000 (21:19 +0200)
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
(cherry picked from commit 12c5ed9a4c971a5cf314831a1a01d851be976120)

utils/rtty/Makefile
utils/rtty/files/rtty.config
utils/rtty/files/rtty.init

index f1b9f063f71c4ecd245aeb6268f9c7165b02c7ce..aa7add5eaa257038cb3c5c0b533cc11b99a471dd 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=rtty
-PKG_VERSION:=7.4.1
+PKG_VERSION:=8.0.0
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL=https://github.com/zhaojh329/rtty/releases/download/v$(PKG_VERSION)
-PKG_HASH:=997e5a3f0b1ce5e06d8505691ea0a9a3fd8af972f6d1b4b04f42dd03f392649f
+PKG_HASH:=b9c555005b76c1ad0f5af891964375bbdf50ee22b9a9f53ddd48d2cdb4e53b49
 
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
index b9952ce1de56ded0827bd4f6d6b042bbdcc89f3c..d7b83bd42d9a36e57a39130017d4f02d5b38c322 100644 (file)
@@ -10,5 +10,7 @@
 #   option  host        'your-server-host'  # Server host
 #   option  port        '5912'              # Server Port
 #   option  ssl         1                   # Whether to use ssl
+#   option  insecure    '1'                 # Allow insecure server connections when using SSL
 #   option  token       'your-token'        # generated by rttys
+#   option  username    'root'              # Skip a second login authentication. See man login(1) about the details
 #   option  verbose     '1'                 # verbose log
index 94b4c364b425adf060bf83383916d140081c2d6a..4725cc158f5e0985de896332c52ec821e088c39b 100644 (file)
@@ -13,7 +13,9 @@ validate_rtty_section() {
                'host:host' \
                'port:port' \
                'ssl:bool:0' \
+               'insecure:bool:0' \
                'token:maxlength(32)' \
+               'username:string' \
                'verbose:bool:0'
 }
 
@@ -48,7 +50,9 @@ start_rtty() {
        [ -n "$port" ] && procd_append_param command -p "$port"
        [ -n "$description" ] && procd_append_param command -d "$description"
        [ "$ssl" = "1" ] && procd_append_param command -s
+       [ "$insecure" = "1" ] && procd_append_param command -x
        [ -n "$token" ] && procd_append_param command -t "$token"
+       [ -n "$username" ] && procd_append_param command -f "$username"
        [ "$verbose" = "1" ] && procd_append_param command -v
        procd_set_param respawn
        procd_close_instance