1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00

net-p2p/cardano-node: Fix startup on systems without ipv6.

This commit is contained in:
Gleb Popov 2022-09-22 19:09:03 +03:00
parent 4beeb0346a
commit ba6fef6fee
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= cardano-node
PORTVERSION= 1.35.3
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= net-p2p
MAINTAINER= arrowd@FreeBSD.org

View File

@ -135,7 +135,13 @@ jail_root="${_home}/jail"
jail_topology="/topology_dir/`basename ${_topology}`"
jail_config="/config_dir/`basename ${_config}`"
jail_socket="/socket/`basename ${_socket}`"
jail_cmd="jail -c name=${name}_jail path=${jail_root} exec.jail_user=cardano exec.system_jail_user ip4=inherit ip6=inherit host=inherit"
jail_ip6_arg=""
sysctl -q kern.features.inet6 2> /dev/null
if [ "$?" = "0" ]
then
jail_ip6_arg="ip6=inherit"
fi
jail_cmd="jail -c name=${name}_jail path=${jail_root} exec.jail_user=cardano exec.system_jail_user ip4=inherit ${jail_ip6_arg} host=inherit"
pidfile="/var/run/${name}.pid"
flags="run +RTS ${_rts_flags} -RTS \