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
8 changes: 8 additions & 0 deletions srcpkgs/yggdrasil-ng/files/yggdrasil-ng/run
Original file line number Diff line number Diff line change
@@ -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}
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="John Mitrich <johnmitrich@gmail.com>"
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
}