add zerotier-one package

This commit is contained in:
Wallenstein 2025-03-22 08:22:01 +03:00
parent 3fc9a2afc7
commit b8379f6bfc
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#!/bin/sh
exec 2>&1
exec zerotier-one

View file

@ -0,0 +1,26 @@
# template file for 'zerotier-one'
pkgname=zerotier-one
version=1.14.2
revision=1
build_style=gnu-makefile
hostmakedepends="cargo pkg-config"
makedepends="openssl-devel libsodium-devel libnatpmp-devel http-parser-devel gcc"
short_desc="Smart ethernet switch for Earth"
maintainer="CringeTech Team <team@cringetech.net>"
license="BSL-1.1"
homepage="https://www.zerotier.com"
distfiles="https://github.com/zerotier/ZeroTierOne/archive/refs/tags/${version}.tar.gz"
checksum=c2f64339fccf5148a7af089b896678d655fbfccac52ddce7714314a59d7bddbb
repository=nonfree
pre_configure() {
vsed -i "s/sbin/bin/g" make-linux.mk
# disable SSO
vsed -i "/ZT_SSO_SUPPORTED=/s/1/0/g" make-linux.mk
}
post_install() {
vsv zerotier-one
vlicense LICENSE.txt
}