Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions srcpkgs/yggdrasil-ng/files/yggdrasil-ng/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
exec 2>&1
modprobe tun
caps='-all,+NET_ADMIN,+NET_RAW'
drop_caps="setpriv --inh-caps $caps --bounding-set $caps"
if [ -f /etc/yggdrasil-ng.toml ]; then
exec $drop_caps yggdrasil-ng -c /etc/yggdrasil-ng.toml 2>&1
else
exec $drop_caps yggdrasil-ng --autoconf 2>&1
fi
17 changes: 17 additions & 0 deletions srcpkgs/yggdrasil-ng/template
Original file line number Diff line number Diff line change
@@ -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="Orphaned <orphan@voidlinux.org>"
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
}