diff options
Diffstat (limited to 'community/tailscale/APKBUILD')
-rw-r--r-- | community/tailscale/APKBUILD | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/community/tailscale/APKBUILD b/community/tailscale/APKBUILD index 71b504dd90f..aebbbb2c940 100644 --- a/community/tailscale/APKBUILD +++ b/community/tailscale/APKBUILD @@ -1,59 +1,63 @@ +# Contributor: Andrei Jiroh Eugenio Halili <ajhalili2006@andreijiroh.eu.org> # Contributor: Robert Günzler <r@gnzler.io> -# Contributor: Christine Dodrill <xe@tailscale.com> +# Contributor: Xe <xe@tailscale.com> # Maintainer: Robert Günzler <r@gnzler.io> pkgname=tailscale -pkgver=1.14.0 +pkgver=1.62.0 pkgrel=1 pkgdesc="The easiest, most secure way to use WireGuard and 2FA" url="https://tailscale.com/" license="BSD-3-Clause" -arch="all !s390x !mips !mips64" # upstream still doesn't have hardware to debug this +arch="all !s390x" # upstream still doesn't have hardware to debug this options="chmod-clean" -depends="iptables" +depends="iptables" # https://github.com/tailscale/tailscale/issues/391 makedepends="go linux-headers" +checkdepends="helm iproute2-minimal openssh" subpackages="$pkgname-doc $pkgname-openrc" source="$pkgname-$pkgver.tar.gz::https://github.com/tailscale/tailscale/archive/v$pkgver.tar.gz - portmapper.patch::https://github.com/tailscale/tailscale/commit/15c87017b88902c6000ad27b0daf372547a89d30.patch - rate.patch::https://github.com/tailscale/tailscale/commit/0744d752387a1eee7a95fd5c139c48792aa04f6f.patch - deephash.patch::https://github.com/tailscale/tailscale/commit/15835f03b31223ef6b5d55c99c02679870119b26.patch tailscale.confd tailscale.initd tailscale.logrotate tailscale.modules-load + test-bump-conn-max-overhead.patch " -builddir="$srcdir/src/github.com/tailscale/$pkgname" -prepare() { - export GOPATH="$srcdir" +export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" +export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" +export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" - mkdir -p "$(dirname $builddir)" - mv "$srcdir"/$pkgname-$pkgver "$builddir"/ +# secfixes: +# 1.32.3-r0: +# - CVE-2022-41924 TS-2022-004 +# 0: +# - CVE-2022-41925 TS-2022-005 +prepare() { default_prepare + + # this script attempts to download a helm binary + # use the helm we have in repo instead + rm -v tool/helm + ln -sv /usr/bin/helm tool/helm } build() { - msg2 "Prepare GOPATH and GOBIN..." - export GOPATH="$srcdir" - export GOBIN="$GOPATH/bin" - msg2 "Building tailscale..." TAGS="netcgo osusergo static_build xversion" VERSIONFLAGS=" - -X tailscale.com/version.Short=$pkgver - -X tailscale.com/version.Long=$pkgver-AlpineLinux - -X tailscale.com/version.GitCommit=AlpineLinux + -X tailscale.com/version.shortStamp=$pkgver + -X tailscale.com/version.longStamp=$pkgver-AlpineLinux + -X tailscale.com/version.gitCommitStamp=AlpineLinux " - GOLDFLAGS="-w -s" - go build -tags "$TAGS" -ldflags "$VERSIONFLAGS $GOLDFLAGS" ./cmd/tailscale - go build -tags "$TAGS" -ldflags "$VERSIONFLAGS $GOLDFLAGS" ./cmd/tailscaled + go build -tags "$TAGS" -ldflags "$VERSIONFLAGS" ./cmd/tailscale + go build -tags "$TAGS" -ldflags "$VERSIONFLAGS" ./cmd/tailscaled } check() { # shellcheck disable=SC2046 - go test $(go list ./... | grep -v 'wgengine/magicsock') + go test $(go list ./... | grep -Ev '(util/linuxfw|net/netcheck|wgengine/magicsock|tstest/archtest|tstest/integration|tstest/jsdeps|tstest/iosdeps|ssh/tailssh|containerboot|net/connstats)') } package() { @@ -71,12 +75,10 @@ package() { } sha512sums=" -083b4d66dc9e8686568fa733cbcf9c834776095950d29455f4ac39504c83f47a119377e8b313adb7d3044e5f39c760b5091cc0b0ea8ecc7aa73010c39595798e tailscale-1.14.0.tar.gz -a58c482b401a6fc17293bcda2b2b702ca0d3523c1ca7cfc56a95d875deedd5b41869ad460883f2f4fe44dc2271b2ed1879784a91289b30b23a279c0c66cf8365 portmapper.patch -aca831e344f2ff8c02ab995a0a4bef275c8dc8ea2691bac0cbf81c2bf0a6d147c2efdbd4eebae6ce6ef6986bede140a2deb5c91ce66a907a2225aedc2fc50dba rate.patch -37597f1c3692b79a0a125e64126c6205724f7ec4ed7c7a476a173906085600ac55044934084ac890228a246eb18ee9674d95030fab0e10cfd25b7481488df9d4 deephash.patch +187cadb3eb0db54b8b4a6ae78d77745750167ead7fd6e68bc95171ea6058386e91696a3e36fdd8101f8a52fe0a2d9344484b4bca0a48929f19b2d314bb182e1c tailscale-1.62.0.tar.gz 24706f10a6f5f7091c0f73a13e0c2d72e969e92e6f7aa21abe504f8e2c16af4d1d80fd28c33acbe4866dd8174abd9dc201d97eb5271f6355f7589a56f470f52c tailscale.confd 5cb35e0144d3bc2c20b1fde1ee402aab642b666c259bb324bf1c742a79fd8b3892cf2e7419e684764a50b6a29dc562ee674915bbf16a76eda543fd9c8988428c tailscale.initd c139461ff829359bfdc66866ef4cd6561f781e2bc3b40e5cfe9c9d06e3e749d179835ee8548d2b2e725f9a59644db64b1136393dff78ae29955c905e76c8ef46 tailscale.logrotate 871b650ff982be061532b4c5fe4812f41e6e2c58fc69b24f8a745f9a43389da44e742a69b0467b3c3d9e2b031af0728e20f10fa4584695c4f5ac87768a1fd34e tailscale.modules-load +d62ca3f75f23319ffb45452499d082a82862ba90099e50287cc152ba6d9796bc5c4ad2a90d662919023e0a6e9b1e7722d8f35ba85f4807908abcc202d77fc31c test-bump-conn-max-overhead.patch " |