2022-06-23 02:09:41 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
# Copyright (C) 2022-present kkoshelev (https://github.com/kkoshelev)
|
2022-07-30 14:50:45 +00:00
|
|
|
# Copyright (C) 2022-present fewtarius (https://github.com/fewtarius)
|
2022-06-23 02:09:41 +00:00
|
|
|
|
|
|
|
PKG_NAME="tailscale"
|
2023-01-10 22:11:33 +00:00
|
|
|
PKG_VERSION="1.34.2"
|
2022-06-23 02:09:41 +00:00
|
|
|
PKG_SITE="https://tailscale.com/"
|
|
|
|
PKG_URL="https://pkgs.tailscale.com/stable/tailscale_${PKG_VERSION}_arm64.tgz"
|
2022-07-01 20:17:33 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain wireguard-tools"
|
2022-06-23 02:09:41 +00:00
|
|
|
PKG_SHORTDESC="Zero config VPN. Installs on any device in minutes, manages firewall rules for you, and works from anywhere."
|
|
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
|
2023-02-13 22:43:44 +00:00
|
|
|
case ${DEVICE} in
|
2023-02-16 22:40:39 +00:00
|
|
|
RK3566)
|
2023-02-13 22:43:44 +00:00
|
|
|
PKG_DEPENDS_TARGET+=" wireguard-linux-compat"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2022-06-23 02:09:41 +00:00
|
|
|
pre_unpack() {
|
2022-07-30 14:50:45 +00:00
|
|
|
mkdir -p ${PKG_BUILD}
|
|
|
|
tar --strip-components=1 -xf $SOURCES/${PKG_NAME}/${PKG_NAME}-${PKG_VERSION}.tgz -C ${PKG_BUILD} tailscale_${PKG_VERSION}_arm64
|
2022-06-23 02:09:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
makeinstall_target() {
|
2022-06-28 00:48:35 +00:00
|
|
|
mkdir -p ${INSTALL}/usr/sbin/
|
|
|
|
cp ${PKG_BUILD}/tailscale ${INSTALL}/usr/sbin/
|
|
|
|
cp ${PKG_BUILD}/tailscaled ${INSTALL}/usr/sbin/
|
2022-06-23 02:09:41 +00:00
|
|
|
|
|
|
|
mkdir -p ${INSTALL}/usr/config
|
|
|
|
cp -R ${PKG_DIR}/config/tailscaled.defaults ${INSTALL}/usr/config
|
|
|
|
}
|
|
|
|
|