View | Details | Raw Unified | Return to bug 276673 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-2 / +1 lines)
Lines 1-7 Link Here
1
PORTNAME=	yggdrasil
1
PORTNAME=	yggdrasil
2
DISTVERSIONPREFIX=	v
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=	0.5.1
3
DISTVERSION=	0.5.5
4
PORTREVISION=	1
5
CATEGORIES=	net
4
CATEGORIES=	net
6
5
7
MAINTAINER=	freebsd@neilalexander.dev
6
MAINTAINER=	freebsd@neilalexander.dev
(-)./distinfo (-5 / +5 lines)
Lines 1-5 Link Here
1
TIMESTAMP = 1698509866
1
TIMESTAMP = 1706397079
2
SHA256 (go/net_yggdrasil/yggdrasil-v0.5.1/v0.5.1.mod) = 2039923698dd8b3f3a5a73a46bb57cd5e4b322edc9737923a193ecfee90add9e
2
SHA256 (go/net_yggdrasil-package-freebsd/yggdrasil-v0.5.5/v0.5.5.mod) = 63a943ca619c9809973b438d52c45ddfd5ed0bda28c5610e49a367ef4c3570bf
3
SIZE (go/net_yggdrasil/yggdrasil-v0.5.1/v0.5.1.mod) = 1762
3
SIZE (go/net_yggdrasil-package-freebsd/yggdrasil-v0.5.5/v0.5.5.mod) = 1762
4
SHA256 (go/net_yggdrasil/yggdrasil-v0.5.1/v0.5.1.zip) = ab082d066fbd825d0ea97a6bfafdc80084ed220060e11c44db7880fa5723088c
4
SHA256 (go/net_yggdrasil-package-freebsd/yggdrasil-v0.5.5/v0.5.5.zip) = de089a6e0b8b61edb0e40cf931b2efe93867e6afefa60e60e0c4d1363399f4b3
5
SIZE (go/net_yggdrasil/yggdrasil-v0.5.1/v0.5.1.zip) = 151253
5
SIZE (go/net_yggdrasil-package-freebsd/yggdrasil-v0.5.5/v0.5.5.zip) = 153660
(-)./files/yggdrasil.in (-5 / +6 lines)
Lines 1-14 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# Put the yggdrasil and yggdrasilctl binaries into /usr/local/bin
3
# Put the yggdrasil and yggdrasilctl binaries into /usr/local/bin
4
# Then copy this script into /etc/rc.d/yggdrasil
4
# Then copy this script into /usr/local/etc/rc.d/yggdrasil
5
# Finally, run:
5
# Finally, run:
6
#   1. chmod +x /etc/rc.d/yggdrasil /usr/local/bin/{yggdrasil,yggdrasilctl}
6
#   1. chmod +x /etc/rc.d/yggdrasil /usr/local/bin/{yggdrasil,yggdrasilctl}
7
#   2. echo "yggdrasil_enable=yes" >> /etc/rc.d
7
#   2. sysrc yggdrasil_enable=YES
8
#   3. service yggdrasil start
8
#   3. service yggdrasil start
9
#
9
#
10
# PROVIDE: yggdrasil
10
# PROVIDE: yggdrasil
11
# REQUIRE: networking
11
# REQUIRE: NETWORKING
12
# KEYWORD:
12
# KEYWORD:
13
13
14
. /etc/rc.subr
14
. /etc/rc.subr
Lines 19-27 Link Here
19
start_cmd="${name}_start"
19
start_cmd="${name}_start"
20
stop_cmd="${name}_stop"
20
stop_cmd="${name}_stop"
21
21
22
yggdrasil_command="%%PREFIX%%/bin/yggdrasil"
22
pidfile="/var/run/yggdrasil/${name}.pid"
23
pidfile="/var/run/yggdrasil/${name}.pid"
23
command="/usr/sbin/daemon"
24
command="/usr/sbin/daemon"
24
command_args="-P ${pidfile} -r -f ${yggdrasil_command}"
25
command_args="-P ${pidfile} -r -S -m 3 -s info -T yggdrasil ${yggdrasil_command}"
25
26
26
yggdrasil_start()
27
yggdrasil_start()
27
{
28
{
Lines 39-45 Link Here
39
	mkdir -p /var/run/yggdrasil
40
	mkdir -p /var/run/yggdrasil
40
41
41
	logger -s -t yggdrasil "Starting yggdrasil"
42
	logger -s -t yggdrasil "Starting yggdrasil"
42
	${command} ${command_args} %%PREFIX%%/bin/yggdrasil -useconffile %%PREFIX%%/etc/yggdrasil.conf \
43
	${command} ${command_args} -useconffile %%PREFIX%%/etc/yggdrasil.conf \
43
		1>/var/log/yggdrasil.stdout.log \
44
		1>/var/log/yggdrasil.stdout.log \
44
		2>/var/log/yggdrasil.stderr.log &
45
		2>/var/log/yggdrasil.stderr.log &
45
}
46
}
(-)./pkg-descr (+2 lines)
Lines 3-5 Link Here
3
allows pretty much any IPv6-capable application to communicate securely with
3
allows pretty much any IPv6-capable application to communicate securely with
4
other Yggdrasil nodes. Yggdrasil does not require you to have IPv6 Internet
4
other Yggdrasil nodes. Yggdrasil does not require you to have IPv6 Internet
5
connectivity - it also works over IPv4.
5
connectivity - it also works over IPv4.
6
7
WWW: https://yggdrasil-network.github.io/

Return to bug 276673