PKG_NAME:=syncthing
PKG_VERSION:=1.30.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=syncthing-source-v$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/syncthing/syncthing/releases/download/v$(PKG_VERSION)
option listen ':8443'
option db_dir '/etc/stdiscosrv/discovery.db'
- # # Find the documents from: https://docs.syncthing.net/users/stdiscosrv.html
+ # Find the documents from: https://docs.syncthing.net/users/stdiscosrv.html
# option cert '/etc/stdiscosrv/cert.pem'
# option key '/etc/stdiscosrv/key.pem'
+ # option db_flush_interval '5m'
# option metrics_listen ''
- # option replicate ''
- # option replication_listen ':19200'
- # # CLI options with no value should be defined as booleans and theirs
- # # names should be prefixed with '_'.
+ # CLI options with no value should be defined as booleans and theirs names
+ # should be prefixed with '_'.
+ # option _compression '0'
# option _debug '0'
# option _http '1'
-
[ "$value" = "0" ] || extra_args="$extra_args -${option//_/-}"
;;
*)
- extra_args="$extra_args -${option//_/-}=$value"
+ extra_args="$extra_args --${option//_/-}='$value'"
;;
esac
}
}
}
-service_triggers()
-{
+service_triggers() {
procd_add_reload_trigger "stdiscosrv"
}
option keys '/etc/strelaysrv'
option listen ':22067'
- # # Find the documents from: https://docs.syncthing.net/users/strelaysrv.html
+ # Find the documents from: https://docs.syncthing.net/users/strelaysrv.html
# option ext_address ''
# option global_rate ''
# option message_timeout '1m0s'
- # option nat_lease 60
- # option nat_renewal 30
- # option nat_timeout 10
+ # option nat_lease '60'
+ # option nat_renewal '30'
+ # option nat_timeout '10'
# option network_timeout '2m0s'
# option per_session_rate ''
# option ping_interval '1m0s'
# option protocol 'tcp'
# option provided_by ''
# option status_srv ':22070'
+ # option token ''
- # # CLI options with no value should be defined as booleans and theirs
- # # names should be prefixed with '_'.
+ # CLI options with no value should be defined as booleans and theirs names
+ # should be prefixed with '_'.
# option _debug '0'
# option _nat '0'
-
+ # option _pprof '0'
eval $option=$value
;;
_*)
- [ "$value" = "0" ] || extra_args="$extra_args -${option//_/-}"
+ [ "$value" = "0" ] || extra_args="$extra_args ${option//_/-}"
;;
*)
- extra_args="$extra_args -${option//_/-}=$value"
+ extra_args="$extra_args -${option//_/-}='$value'"
;;
esac
}
list_cb() {
local name="$1"
local value="$2"
- [ "$name" = "_" ] && extra_args="$extra_args --${value//_/-}" || return 0
+ [ "$name" = "_" ] && extra_args="$extra_args -${value//_/-}" || return 0
}
}
-service_triggers()
-{
+service_triggers() {
procd_add_reload_trigger "strelaysrv"
}