diff --git a/srcpkgs/yggdrasil-ng/files/yggdrasil-ng/run b/srcpkgs/yggdrasil-ng/files/yggdrasil-ng/run new file mode 100644 index 00000000000000..68ea8482f1d9bd --- /dev/null +++ b/srcpkgs/yggdrasil-ng/files/yggdrasil-ng/run @@ -0,0 +1,8 @@ +#!/bin/sh +exec 2>&1 +modprobe tun +[ -r ./conf ] && . ./conf +exec setpriv --ambient-caps +net_admin,+net_raw \ + --inh-caps +net_admin,+net_raw \ + --bounding-set -all,+net_admin,+net_raw \ + yggdrasil-ng ${OPTS:- --autoconf} diff --git a/srcpkgs/yggdrasil-ng/template b/srcpkgs/yggdrasil-ng/template new file mode 100644 index 00000000000000..9bfcd20a7a512a --- /dev/null +++ b/srcpkgs/yggdrasil-ng/template @@ -0,0 +1,17 @@ +# Template file for 'yggdrasil-ng' +pkgname=yggdrasil-ng +version=0.3.0 +revision=1 +build_style=cargo +make_install_args="--path crates/yggdrasil" +short_desc="Rust rewrite of the Yggdrasil encrypted IPv6 overlay network" +maintainer="John Mitrich " +license="MPL-2.0" +homepage="https://github.com/Revertron/Yggdrasil-ng" +distfiles="https://github.com/Revertron/Yggdrasil-ng/archive/v${version}.tar.gz" +checksum=be136c7478bf245bc434ddde1e9750968ad5f7d716750fbe66949a98e9fc7fb5 + +post_install() { + vsv yggdrasil-ng + mv ${DESTDIR}/usr/bin/yggdrasil ${DESTDIR}/usr/bin/yggdrasil-ng +}