yggdrasil-network / yggdrasil-go

An experiment in scalable routing as an encrypted IPv6 overlay network
https://yggdrasil-network.github.io
Other
3.47k stars 236 forks source link

Don't depend on systemd #637

Open danimesq opened 4 years ago

danimesq commented 4 years ago

Unpacking yggdrasil (0.3.9) ... dpkg: error processing archive yggdrasil-0.3.9-i386.deb (--install): unable to create '/etc/systemd/system/yggdrasil.service.dpkg-new' (while processing 'etc/systemd/system/yggdrasil.service'): No such file or directory Errors were encountered while processing: yggdrasil-0.3.9-i386.deb

There are Linux distros such as AntiX (Debian) and Gentoo which doesn't uses systemd. Can't install yggdrasil in those.

neilalexander commented 4 years ago

This will require alternative packages to be created.

danimesq commented 4 years ago

Yggdrasil isn't distributed for Gentoo? About .deb, the installer can first verify if the distro uses systemd before working with 'etc/systemd/system/yggdrasil.service'.

neilalexander commented 4 years ago

I’m not aware that anyone has created a Gentoo package yet.

janicez commented 4 years ago

Installing manually (i.e. with ./build) on FreeBSD works fine. systemd isn't even /available/ for that platform.

Thin would be better directed at yggdrasil-go-packagers (which needs to be a thing, because it's not yet)

wstrm commented 4 years ago

I have had Gentoo ebuilds in my overlay for a while: https://github.com/wstrm/gentoo-overlay/blob/master/net-p2p/yggdrasil-go/yggdrasil-go-0.3.13.ebuild

Supports both Systemd and OpenRC on Gentoo.

You can add my overlay:

eselect repository enable optmzr

Or just copy and paste the ebuild and install with the ebuild command.

I've been looking into adding it to Gentoo, but I haven't had time.