Skip to content

Commit cc8d9e5

Browse files
committed
Add support for QTS4 installations on x19 packages only
The x19 architecture cannot run QTS5 anyway, but can run Tailscale perfectly.
1 parent d844df1 commit cc8d9e5

File tree

3 files changed

+104
-1
lines changed

3 files changed

+104
-1
lines changed

Tailscale/.DS_Store

-6 KB
Binary file not shown.

Tailscale/qpkg-QTS4.cfg.in

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# Name of the packaged application.
2+
QPKG_NAME="Tailscale"
3+
# Name of the display application.
4+
#QPKG_DISPLAY_NAME=""
5+
# Version of the packaged application.
6+
QPKG_VER="$QPKG_VER"
7+
# Author or maintainer of the package
8+
QPKG_AUTHOR="Tailscale Inc."
9+
# License for the packaged application
10+
#QPKG_LICENSE=""
11+
# One-line description of the packaged application
12+
#QPKG_SUMMARY="Connect all your devices using WireGuard, without the hassle."
13+
14+
# Preferred number in start/stop sequence.
15+
QPKG_RC_NUM="101"
16+
# Init-script used to control the start and stop of the installed application.
17+
QPKG_SERVICE_PROGRAM="Tailscale.sh"
18+
19+
# Optional 1 is enable. Path of starting/ stopping shall script. (no start/stop on App Center)
20+
#QPKG_DISABLE_APPCENTER_UI_SERVICE=1
21+
22+
# On QTS4, the QVPN package is required to create the proper interface for Tailscale to work.
23+
QPKG_REQUIRE="QVPN"
24+
# Specifies what packages cannot be installed if the current package
25+
# is to operate properly.
26+
#QPKG_CONFLICT="Python"
27+
# Name of configuration file (multiple definitions are allowed).
28+
#QPKG_CONFIG="Tailscale.cfg"
29+
#QPKG_CONFIG="/etc/config/myApp.conf"
30+
# Port number used by service program.
31+
QPKG_SERVICE_PORT="41641"
32+
# Location of file with running service's PID
33+
#QPKG_SERVICE_PIDFILE=""
34+
# Relative path to web interface
35+
QPKG_WEBUI="/cgi-bin/qpkg/Tailscale/index.cgi"
36+
# Port number for the web interface.
37+
#QPKG_WEB_PORT=""
38+
# Port number for the SSL web interface.
39+
#QPKG_WEB_SSL_PORT=""
40+
41+
# Use QTS HTTP Proxy and set Proxy_Path in the qpkg.conf.
42+
# When the QPKG has its own HTTP service port, and want clients to connect via QTS HTTP port (default 8080).
43+
# Usually use this option when the QPKG need to connect via myQNAPcloud service.
44+
QPKG_USE_PROXY="1"
45+
#QPKG_PROXY_PATH="/qpkg_name"
46+
47+
#Desktop Application (since 4.1)
48+
# Set value to 1 means to open the QPKG's Web UI inside QTS desktop instead of new window.
49+
#QPKG_DESKTOP_APP="1"
50+
# Desktop Application Window default inner width (since 4.1) (not over 1178)
51+
#QPKG_DESKTOP_APP_WIN_WIDTH=""
52+
# Desktop Application Window default inner height (since 4.1) (not over 600)
53+
#QPKG_DESKTOP_APP_WIN_HEIGHT=""
54+
55+
# Minimum QTS version requirement
56+
QTS_MINI_VERSION="4.0.0"
57+
# Maximum QTS version requirement
58+
#QTS_MAX_VERSION="5.0.0"
59+
60+
# Select volume
61+
# 1: support installation
62+
# 2: support migration
63+
# 3 (1+2): support both installation and migration
64+
QPKG_VOLUME_SELECT="1"
65+
66+
# Set timeout for QPKG enable and QPKG disable (since 4.1.0)
67+
# Format in seconds (enable, disable)
68+
#QPKG_TIMEOUT="10,30"
69+
70+
# Visible setting for the QPKG that has web UI, show this QPKG on the Main menu of
71+
# 1(default): administrators, 2: all NAS users.
72+
QPKG_VISIBLE="1"
73+
74+
# Location of icons for the packaged application.
75+
QDK_DATA_DIR_ICONS="icons"
76+
# Location of files specific to arm-x19 packages.
77+
#QDK_DATA_DIR_X19="arm-x19"
78+
# Location of files specific to arm-x31 packages.
79+
#QDK_DATA_DIR_X31="arm-x31"
80+
# Location of files specific to arm-x41 packages.
81+
#QDK_DATA_DIR_X41="arm_al"
82+
# Location of files specific to x86 packages.
83+
#QDK_DATA_DIR_X86="x86"
84+
# Location of files specific to x86 (64-bit) packages.
85+
#QDK_DATA_DIR_X86_64="x86_64"
86+
# Location of files common to all architectures.
87+
QDK_DATA_DIR_SHARED="shared"
88+
# Location of configuration files.
89+
#QDK_DATA_DIR_CONFIG="config"
90+
# Name of local data package.
91+
#QDK_DATA_FILE=""
92+
# Name of extra package (multiple definitions are allowed).
93+
#QDK_EXTRA_FILE=""
94+
# For QNAP code signing (currently can be done only inside QNAP)
95+
# Uncomment the following four options if you want to enable code signing for this QPKG
96+
#QNAP_CODE_SIGNING="0"
97+
#QNAP_CODE_SIGNING_SERVER_IP="codesigning.qnap.com.tw"
98+
#QNAP_CODE_SIGNING_SERVER_PORT="5001"
99+
#QNAP_CODE_SIGNING_CSV="build_sign.csv"

build/build-qpkg.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ sed "s/\$QPKG_VER/$TSTAG-$QNAPTAG/g" /Tailscale/qpkg.cfg.in > /Tailscale/qpkg.cf
3333
qbuild --root /Tailscale --build-arch x86 --build-dir /out/pkg
3434
qbuild --root /Tailscale --build-arch x86_ce53xx --build-dir /out/pkg
3535
qbuild --root /Tailscale --build-arch x86_64 --build-dir /out/pkg
36-
qbuild --root /Tailscale --build-arch arm-x19 --build-dir /out/pkg
3736
qbuild --root /Tailscale --build-arch arm-x31 --build-dir /out/pkg
3837
qbuild --root /Tailscale --build-arch arm-x41 --build-dir /out/pkg
3938
qbuild --root /Tailscale --build-arch arm_64 --build-dir /out/pkg
39+
40+
# arm-x19 NAS don't support QTS5 anyway, so let's downgrade the requirements
41+
# and build this one with QTS 4 support.
42+
sed "s/\$QPKG_VER/$TSTAG-$QNAPTAG/g" /Tailscale/qpkg-QTS4.cfg.in >/Tailscale/qpkg.cfg
43+
qbuild --root /Tailscale --build-arch arm-x19 --build-dir /out/pkg

0 commit comments

Comments
 (0)