yggdrasil: update to 0.3.15.

This also adds log capturing via vlogger and stops dropping all caps due
to a bug in util-linux causing this to break.
This commit is contained in:
Jan Christian Grünhage 2020-10-05 15:41:48 +02:00 committed by Érico Nogueira Rolim
parent c18c0bbf13
commit c33aec8e70
3 changed files with 12 additions and 7 deletions

View file

@ -0,0 +1 @@
/usr/bin/vlogger

View file

@ -1,9 +1,13 @@
#!/bin/sh #!/bin/sh
modprobe tun modprobe tun
caps='-all,+NET_ADMIN,+NET_RAW' # limiting caps is temporarily disabled, as it breaks with
drop_caps="setpriv --inh-caps $caps --bounding-set $caps" # setpriv: libcap-ng is too old for "all" caps
# TODO: instead of dropping all caps, start with a
# non-priv user and manually add needed privileges instead.
#caps='-all,+NET_ADMIN,+NET_RAW'
#drop_caps="setpriv --inh-caps $caps --bounding-set $caps"
if [ -f /etc/yggdrasil.conf ]; then if [ -f /etc/yggdrasil.conf ]; then
exec $drop_caps yggdrasil --useconffile /etc/yggdrasil.conf 1>/dev/null exec yggdrasil -useconffile /etc/yggdrasil.conf 2>&1
else else
exec $drop_caps yggdrasil --autoconf 1>/dev/null exec yggdrasil -autoconf 2>&1
fi fi

View file

@ -1,7 +1,7 @@
# Template file for 'yggdrasil' # Template file for 'yggdrasil'
pkgname=yggdrasil pkgname=yggdrasil
version=0.3.14 version=0.3.15
revision=2 revision=1
wrksrc="yggdrasil-go-${version}" wrksrc="yggdrasil-go-${version}"
build_style=go build_style=go
go_import_path=github.com/yggdrasil-network/yggdrasil-go go_import_path=github.com/yggdrasil-network/yggdrasil-go
@ -11,7 +11,7 @@ maintainer="Jan Christian Gruenhage <jan.christian@gruenhage.xyz>"
license="LGPL-3.0-only" license="LGPL-3.0-only"
homepage="https://yggdrasil-network.github.io/" homepage="https://yggdrasil-network.github.io/"
distfiles="https://github.com/yggdrasil-network/yggdrasil-go/archive/v${version}.tar.gz" distfiles="https://github.com/yggdrasil-network/yggdrasil-go/archive/v${version}.tar.gz"
checksum=e8579a04bf289434e7b8caaf621e2c0b853e83cc06f136c4f9e4bfc667df5a27 checksum=25ea85399a142aa7a3d6f6886fd4e0d215116c4c8c33453de43999787d735565
do_build() { do_build() {
PKGNAME=${pkgname} PKGVER=${version} ./build PKGNAME=${pkgname} PKGVER=${version} ./build