# $Id$

PortSystem          1.0

name                radvd
version             1.8.5
categories          net
platforms           darwin
maintainers         sics.se:lars.rasmusson
homepage            http://www.litech.org/radvd/
master_sites        ${homepage}dist/
license             Permissive

description         router advertisement daemon

long_description    The router advertisement daemon (radvd) is run by \
                    Linux or BSD systems acting as IPv6 routers. \
                    It sends Router Advertisement messages, specified by RFC 2461, \
                    to a local Ethernet LAN periodically and when requested by a node \
                    sending a Router Solicitation message. \
                    These messages are required for IPv6 stateless autoconfiguration.

checksums           rmd160  cdadcc1dc96e66142a2a9988676967c2aee9dc48 \
                    sha256  ac789d820c96570fe6921bd0c96ce69d7265c9686bdeb67170d9438091cfd08e

if {${os.platform} eq "darwin" && ${os.major} >= 11} {
    patchfiles-append   rfc3542.patch
}

configure.args      --with-logfile=${prefix}/var/log/radvd.log \
                    --with-pidfile=${prefix}/var/run/radvd.pid

notes               "You must enable ipv6 forwarding to use radvd, like this:\
                    \n\n    sudo sysctl -w net.inet6.ip6.forwarding=1\
                    \n\nYou must also create a config file in ${prefix}/etc/radvd.conf\
                    \nSee \"man radvd.conf\" for how to configure radvd."