-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syncthing: update to v1.23.4 and include next-gen-gui (#5523)
* syncthing: update to v1.22.2 and include next-gen-gui - update syncthing to v1.22.2 - include next-get-gui and provide it under /tech-ui - fix parameter of ca_reloader.sh - fix link in wizard files * syncthing #3320 - avoid the creation of a default folder on first startup * fix usage text in ca_reloader.sh * clarify that the parameter --no-default-folder is ignored after the first start of syncthing * Update spk/syncthing/Makefile Co-authored-by: André Colomb <github.com@andre.colomb.de> * Update cross/syncthing/PLIST Co-authored-by: André Colomb <github.com@andre.colomb.de> * avoid to use $HOME as default sync folder * update syncthing configuration - avoid the use of '--home' argument as not related to HOME env. variable - enable to define custom HOME folder in options.conf * create options.conf.new on package update for DSM<7 * update wizard pages - add customization information to wizard - fix install_uifile_fre (add wizard_username and wizard_password) - add information for options.conf.new to upgrade wizard * Update spk/syncthing/src/service-setup.sh Co-authored-by: André Colomb <github.com@andre.colomb.de> * move tech-ui to dedicated module and download prebuilt release - omit to compile synchthing --with-next-gen-gui * syncthing: udpate to v1.23.4 Co-authored-by: André Colomb <github.com@andre.colomb.de> * final cleanup - avoid running ca_reloader.sh on DSM 7+ --------- Co-authored-by: André Colomb <github.com@andre.colomb.de>
- Loading branch information
Showing
14 changed files
with
212 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
PKG_NAME = syncthing-tech-ui | ||
PKG_REAL_NAME = tech-ui | ||
PKG_VERS = 1.0.0 | ||
PKG_EXT = zip | ||
PKG_DIST_NAME = $(PKG_REAL_NAME)-v$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIST_SITE = https://github.com/syncthing/tech-ui/releases/download/v$(PKG_VERS) | ||
PKG_DIR = $(PKG_REAL_NAME)-v$(PKG_VERS) | ||
|
||
# Remarks: | ||
# The repository https://github.com/syncthing/tech-ui is archived | ||
# Current development is in https://github.com/syncthing/syncthing/tree/main/next-gen-gui | ||
# but there are no downloadable releases for tech-ui in the syncthing repository. | ||
# | ||
# Until otherwise requested, we take the only official release published on Apr 17, 2020. | ||
# | ||
|
||
HOMEPAGE = https://github.com/syncthing/syncthing/tree/main/next-gen-gui | ||
COMMENT = Alternative, stripped down status UI for large setups. | ||
LICENSE = MPL-2.0 | ||
|
||
INSTALL_TARGET = syncthing-tech-ui_install | ||
|
||
include ../../mk/spksrc.install-resources.mk | ||
|
||
.PHONY: syncthing-tech-ui_install | ||
syncthing-tech-ui_install: | ||
@$(MSG) Install tech-ui | ||
@install -d -m 755 $(STAGING_INSTALL_PREFIX)/gui/default/tech-ui | ||
@tar -cf - -C $(WORK_DIR)/tech-ui . | tar -xf - -C $(STAGING_INSTALL_PREFIX)/gui/default/tech-ui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rsc:gui/default/tech-ui/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
tech-ui-v1.0.0.zip SHA1 155679ebd818c736208cb57ac29e8d2ffb7351b9 | ||
tech-ui-v1.0.0.zip SHA256 aab6df18f9d82ec6ea72414ab9cfaedce963d27e3d87a1b729d2f30f43b16558 | ||
tech-ui-v1.0.0.zip MD5 159e7acfe7333f5051acaa56e2a83453 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
syncthing-1.22.1.tar.gz SHA1 c8e0e75b0ba5b04f4f7ce8a98dcf7212733dce37 | ||
syncthing-1.22.1.tar.gz SHA256 b024d112167e0e81a785ab98c1a044aee1ac041dfe57a62772c08284f875a5bd | ||
syncthing-1.22.1.tar.gz MD5 6947b7b3a1eaf03d8e6f371894c37b41 | ||
syncthing-source-v1.23.4.tar.gz SHA1 e4aead28fa927acc618d69d702a75703faa37bc0 | ||
syncthing-source-v1.23.4.tar.gz SHA256 06a2882f8ac49e15faf96025b01d0edcd4cc190a419d5de98fbe8271695329fa | ||
syncthing-source-v1.23.4.tar.gz MD5 59280b2e551a8001ce84867c27398aa3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
#!/bin/sh | ||
|
||
source /etc.defaults/VERSION | ||
if [ ${majorversion} -ge 7 ]; then | ||
echo "ERROR: ${0} does not work on DSM 7+" >&2 | ||
exit -1 | ||
fi | ||
|
||
CERT_DIR=/usr/local/etc/certificate/syncthing/syncthing_webui | ||
CONF_DIR=/var/packages/syncthing/var | ||
if [ ! -d "$CONF_DIR" ]; then | ||
CONF_DIR=/var/packages/syncthing/target/var | ||
fi | ||
SYNCTHING=/var/packages/syncthing/target/bin/syncthing | ||
|
||
case $1 in | ||
syncthing_webui) | ||
# Forcefully overwrite certificate files by symlinks | ||
ln -sf $CERT_DIR/cert.pem $CONF_DIR/https-cert.pem | ||
ln -sf $CERT_DIR/privkey.pem $CONF_DIR/https-key.pem | ||
ln -sf ${CERT_DIR}/cert.pem ${CONF_DIR}/https-cert.pem | ||
ln -sf ${CERT_DIR}/privkey.pem ${CONF_DIR}/https-key.pem | ||
|
||
# Required: set $HOME environment variable | ||
HOME=$CONF_DIR | ||
HOME=${CONF_DIR} | ||
export HOME | ||
|
||
$SYNCTHING cli --home=$CONF_DIR operations restart | ||
${SYNCTHING} cli --config=${CONF_DIR} --data=${CONF_DIR} operations restart | ||
RESTART_STATUS=$? | ||
exit $RESTART_STATUS | ||
exit ${RESTART_STATUS} | ||
;; | ||
*) | ||
echo "Usage: $0 syncthing-webui" >&2 | ||
echo "Usage: $0 syncthing_webui" >&2 | ||
exit 1 | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
#!/bin/sh | ||
# This file will be added to start-stop-status script | ||
# This file is included in the start-stop-status script | ||
# for customization of syncthing service | ||
|
||
# To add additional parameters to start syncthing with, define the variable SYNCTHING_OPTIONS | ||
# For possible options see syncthing --help | ||
|
||
# Example: uncomment this to start syncthing with all devices paused | ||
# SYNCTHING_OPTIONS="-paused" | ||
# Example: to start syncthing with all devices paused | ||
#SYNCTHING_OPTIONS="--paused" | ||
|
||
|
||
# Additionally you can define environment variables for the syncthing service | ||
# REMARKS: | ||
# HOME is the only variable that is exported by the start-stop-status script | ||
# other environment variables must be exported here. | ||
# | ||
# Example: set a custom folder for the web gui | ||
# - this folder needs a subfolder with the template name (default is "default") | ||
# containing the web page resources | ||
#export STGUIASSETS=/my_custom_web_gui_folder | ||
# | ||
# Example: set your custom HOME folder: | ||
#HOME=/volume1/my_syncthing_home_folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.