New comment by chrysos349 on void-packages repository https://github.com/void-linux/void-packages/pull/51562#issuecomment-2260192463 Comment: ```diff diff --git a/srcpkgs/zerotier-one/files/zerotier-one/run b/srcpkgs/zerotier-one/files/zerotier-one/run new file mode 100644 index 000000000..fdde52177 --- /dev/null +++ b/srcpkgs/zerotier-one/files/zerotier-one/run @@ -0,0 +1,3 @@ +#!/bin/sh +exec 2>&1 +exec zerotier-one diff --git a/srcpkgs/zerotier-one/template b/srcpkgs/zerotier-one/template new file mode 100644 index 000000000..9e26d7f69 --- /dev/null +++ b/srcpkgs/zerotier-one/template @@ -0,0 +1,24 @@ +# Template file for 'zerotier-one' +pkgname=zerotier-one +version=1.14.0 +revision=1 +build_style=gnu-makefile +short_desc="Smart Ethernet Switch for Earth" +maintainer="chrysos349 " +license="custom:BSL-1.1" +homepage="https://github.com/zerotier/ZeroTierOne" +changelog="https://raw.githubusercontent.com/zerotier/ZeroTierOne/dev/RELEASE-NOTES.md" +distfiles="https://github.com/zerotier/ZeroTierOne/archive/refs/tags/${version}.tar.gz" +checksum=7191623a81b0d1b552b9431e8864dd3420783ee518394ac1376cee6aaf033291 +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 +} -- 2.46.0 ```