# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
maintainers {l2dy @l2dy} openmaintainer
description Miredo is an open-source Teredo IPv6 tunneling software
long_description ${description}. \
It includes functional implementations of all components of the Teredo \
specification (client, relay and server). It is meant to provide IPv6 \
connectivity even from behind NAT devices
homepage https://www.remlab.net/miredo/
master_sites https://www.remlab.net/files/miredo/
checksums rmd160 b02b96f233df2211f45c0dad981f0a5ab6aa1789 \
sha256 fa26d2f4a405415833669e2e2e22677b225d8f83600844645d5683535ea43149
patchfiles patch-nosignal.diff patch-compat-closefrom.c.diff
depends_lib-append port:judy port:tuntaposx
configure.args-append --enable-miredo-user
startupitem.executable ${prefix}/sbin/miredo -c ${prefix}/etc/miredo/miredo.conf \
-p ${prefix}/var/run/${name}.pid --foreground
add_users ${miredo_user} group=${miredo_group}
# Renaming of interface isn't supported
reinplace "s|^InterfaceName|#InterfaceName|" ${destroot}${prefix}/etc/miredo/miredo.conf
livecheck.url ${master_sites}
livecheck.regex <a href=\"${name}-(.*)${extract.suffix}\">