mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
39 lines
1.2 KiB
Makefile
39 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Copyright (C) 2022-present kkoshelev (https://github.com/kkoshelev)
|
|
# Copyright (C) 2022-present fewtarius (https://github.com/fewtarius)
|
|
|
|
PKG_NAME="tailscale"
|
|
PKG_VERSION="1.76.6"
|
|
PKG_SITE="https://tailscale.com/"
|
|
PKG_DEPENDS_TARGET="toolchain wireguard-tools"
|
|
PKG_LONGDESC="Zero config VPN. Installs on any device in minutes, manages firewall rules for you, and works from anywhere."
|
|
PKG_TOOLCHAIN="manual"
|
|
|
|
case ${TARGET_ARCH} in
|
|
aarch64)
|
|
TS_ARCH="_arm64"
|
|
PKG_SHA256="a906659b57590a195370e93719d9633975db64704e90eb1ed9f8cd3d437b4941"
|
|
;;
|
|
x86_64)
|
|
TS_ARCH="_amd64"
|
|
PKG_SHA256="08f2377b78f7b9e411caa28f231a9c4cd0887209c142b49b815bcc7042ff61f7"
|
|
;;
|
|
esac
|
|
|
|
PKG_URL="https://pkgs.tailscale.com/stable/tailscale_${PKG_VERSION}${TS_ARCH}.tgz"
|
|
|
|
pre_unpack() {
|
|
mkdir -p ${PKG_BUILD}
|
|
tar --strip-components=1 -xf $SOURCES/${PKG_NAME}/${PKG_NAME}-${PKG_VERSION}.tgz -C ${PKG_BUILD} tailscale_${PKG_VERSION}${TS_ARCH}
|
|
}
|
|
|
|
makeinstall_target() {
|
|
mkdir -p ${INSTALL}/usr/sbin/
|
|
cp ${PKG_BUILD}/tailscale ${INSTALL}/usr/sbin/
|
|
cp ${PKG_BUILD}/tailscaled ${INSTALL}/usr/sbin/
|
|
|
|
mkdir -p ${INSTALL}/usr/config
|
|
cp -R ${PKG_DIR}/config/tailscaled.defaults ${INSTALL}/usr/config
|
|
}
|
|
|