chore: update dependencies

This commit is contained in:
github-actions[bot] 2024-05-18 00:06:21 +00:00 committed by GitHub
parent 9453c819a1
commit 704d3ae904
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 61 additions and 0 deletions

View file

@ -1,2 +1,3 @@
DIST deps.tar.xz 394973200 BLAKE2B a10ea3b364eac25fc65393b84c7e8188336830259ebbb89409b993f0da81f360e8d443f56355196b9943893c382185a68e66d65ead9cd1099e470862b999bbbc SHA512 c751ce7e64e490e0c246b658a3f83f1300836f22042aba54a9c8ca35a14c652a4637e05319e34955afce53768cdc737c04daab1a5e20fbaf11dde4e55d4b2137 DIST deps.tar.xz 394973200 BLAKE2B a10ea3b364eac25fc65393b84c7e8188336830259ebbb89409b993f0da81f360e8d443f56355196b9943893c382185a68e66d65ead9cd1099e470862b999bbbc SHA512 c751ce7e64e490e0c246b658a3f83f1300836f22042aba54a9c8ca35a14c652a4637e05319e34955afce53768cdc737c04daab1a5e20fbaf11dde4e55d4b2137
DIST tailscale-1.66.1.tar.gz 2634211 BLAKE2B cbf90ee36545fa8ba302f872948dc92e735bfe690451428540bee10399d1db1cdbf050949a5f3dbc69a77596b6a6d94724eb43bf9a4ee78a5cee9ada03889a3e SHA512 46e226c651abd5dee248e49fcf40a0cea9de72fe9e330015299acd9ec1fc83e1f192948c26b803f0fe3404558471b374391f3cf9155ecb2257a2563f79f3278b DIST tailscale-1.66.1.tar.gz 2634211 BLAKE2B cbf90ee36545fa8ba302f872948dc92e735bfe690451428540bee10399d1db1cdbf050949a5f3dbc69a77596b6a6d94724eb43bf9a4ee78a5cee9ada03889a3e SHA512 46e226c651abd5dee248e49fcf40a0cea9de72fe9e330015299acd9ec1fc83e1f192948c26b803f0fe3404558471b374391f3cf9155ecb2257a2563f79f3278b
DIST tailscale-1.66.3.tar.gz 2637720 BLAKE2B cdab81ed3a243cc4065ff414126b59b92bb439c82bf35ce371ccda7f81143fd714afa98d5e3148da21d95aa3f8dfbf33cb85b70d733dba6dfa98dadb4d1605fd SHA512 886650d48c4615f60db66d39783cc222b597c7fcb9db980a017e0aefba1f0f61854fa52771591667c4f9e707e82f998273c949f9ade85d01bc913777491c2890

View file

@ -0,0 +1,60 @@
# Copyright 2020-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd tmpfiles
# These settings are obtained by running ./build_dist.sh shellvars in
# the upstream repo.
VERSION_MINOR="66"
VERSION_SHORT="1.66.3"
VERSION_LONG="1.66.3-teae73f821"
VERSION_GIT_HASH="eae73f821381ce653468ba3c4eec3453c0808953"
DESCRIPTION="Tailscale vpn client"
HOMEPAGE="https://tailscale.com"
SRC_URI="https://github.com/tailscale/tailscale/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://gentoo.rgst.io/updater_artifacts/${CATEGORY}/${PN}/${PV}/deps.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86"
RDEPEND="net-firewall/iptables"
BDEPEND=">=dev-lang/go-1.22"
RESTRICT="test"
# This translates the build command from upstream's build_dist.sh to an
# ebuild equivalent.
build_dist() {
ego build -tags xversion -ldflags "
-X tailscale.com/version.Long=${VERSION_LONG}
-X tailscale.com/version.Short=${VERSION_SHORT}
-X tailscale.com/version.GitCommit=${VERSION_GIT_HASH}" "$@"
}
src_compile() {
build_dist ./cmd/tailscale
build_dist ./cmd/tailscaled
}
src_install() {
dosbin tailscaled
dobin tailscale
systemd_dounit cmd/tailscaled/tailscaled.service
insinto /etc/default
newins cmd/tailscaled/tailscaled.defaults tailscaled
keepdir /var/lib/${PN}
fperms 0750 /var/lib/${PN}
newtmpfiles "${FILESDIR}/${PN}.tmpfiles" ${PN}.conf
newinitd "${FILESDIR}/${PN}d.initd" ${PN}
newconfd "${FILESDIR}/${PN}d.confd" ${PN}
}
pkg_postinst() {
tmpfiles_process ${PN}.conf
}