void-packages/srcpkgs/yggdrasil/template
Will Springer 1f2bdcc821 yggdrasil: add changes from upstream systemd unit
Attempt to load tun module in service

Drop unnecessary caps when running service
2020-04-27 17:50:00 -04:00

30 lines
838 B
Bash

# Template file for 'yggdrasil'
pkgname=yggdrasil
version=0.3.14
revision=2
wrksrc="yggdrasil-go-${version}"
build_style=go
go_import_path=github.com/yggdrasil-network/yggdrasil-go
hostmakedepends="go git"
short_desc="Experiment in scalable routing as an encrypted IPv6 overlay network"
maintainer="Jan Christian Gruenhage <jan.christian@gruenhage.xyz>"
license="LGPL-3.0-only"
homepage="https://yggdrasil-network.github.io/"
distfiles="https://github.com/yggdrasil-network/yggdrasil-go/archive/v${version}.tar.gz"
checksum=e8579a04bf289434e7b8caaf621e2c0b853e83cc06f136c4f9e4bfc667df5a27
do_build() {
PKGNAME=${pkgname} PKGVER=${version} ./build
}
do_install() {
vbin yggdrasil
vsv yggdrasil
}
yggdrasilctl_package() {
short_desc="Administration utility for the yggdrasil node admin API"
pkg_install() {
vbin yggdrasilctl
}
}