rtty: update to 6.6.1 8793/head
authorJianhui Zhao <jianhuizhao329@gmail.com>
Thu, 25 Apr 2019 03:01:28 +0000 (11:01 +0800)
committerJianhui Zhao <jianhuizhao329@gmail.com>
Thu, 25 Apr 2019 03:54:35 +0000 (11:54 +0800)
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
utils/rtty/Makefile
utils/rtty/files/rtty.config
utils/rtty/files/rtty.init

index 480ce32051cef9f7204599fc0ced495afb77e3f1..0696f6d8cb5a2172879847010ff8e15e8fe3c2b4 100644 (file)
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=rtty
-PKG_VERSION:=6.5.0
-PKG_RELEASE:=2
+PKG_VERSION:=6.6.1
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
 PKG_SOURCE_URL=https://codeload.github.com/zhaojh329/rtty/tar.gz/v$(PKG_VERSION)?
-PKG_HASH:=736f4f6bb214c5d97ae530d8029b9a113dbd82b5e6683cf46bf9f23c55fb10d8
+PKG_HASH:=4a46bd80f738ccb9aeea7c0cb8aa5ac364fd964d9ccc1bc3faf7b68eae17007c
 CMAKE_INSTALL:=1
 
 PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR)
index dfa2aa33d7c466b0ebdabba9e0c168df3f42b2b1..65138e6310e733febd747f42d0e9954c6eecdfc7 100644 (file)
@@ -11,3 +11,4 @@
 #   option  port        '5912'              # Server Port
 #   option  ssl         1                   # Whether to use ssl
 #   option  keepalive   5                   # keep alive in seconds for this client
+#   option  token       'your-token'        # generated by rttys
index f18497af8acc2493847b2ecfd94eb1855417362f..55a131053a15c85ffc30cb2f3c37b3446df4393c 100644 (file)
@@ -13,7 +13,8 @@ validate_rtty_section() {
                'host:host' \
                'port:port' \
                'ssl:bool:0' \
-               'keepalive:uinteger:5'
+               'keepalive:uinteger:5' \
+               'token:maxlength(32)'
 }
 
 start_rtty() {
@@ -49,6 +50,7 @@ start_rtty() {
        [ -n "$id" ] && procd_append_param command -I "$id"
        [ -n "$description" ] && procd_append_param command -d "$description"
        [ "$ssl" = "1" ] && procd_append_param command -s
+       [ -n "$token" ] && procd_append_param command -t "$token"
        procd_set_param respawn
        procd_close_instance
 }