# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                cdpd
version             1.0.4.1
categories          net
maintainers         nomaintainer
license             BSD

description         Sends Cisco Discovery Protocol announcements

long_description    cdpd periodically sends Cisco Discovery Protocol \
                    announcements on configured interfaces.

homepage            http://snar.spb.ru/prog/cdpd/
master_sites        ${homepage}
extract.suffix      .tgz

checksums           rmd160 d74ace642fe0a1d194f1fba5f2b64a23722e43a0 \
                    sha256 a064aaf9ea094fe537a08975f81553c93566c25aeb1439a04b66d878c3b3cc2a

depends_lib         port:libpcap

patchfiles          Makefile.in.patch \
                    strlcpy.c.patch

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} CHANGES COPYRIGHT README \
        ${destroot}${prefix}/share/doc/${name}
}
