# $Id: Portfile 67240 2010-05-03 10:11:58Z ryandesign@macports.org $

PortSystem      1.0

name            openslp
version         1.2.1
revision        1
categories      devel net
platforms       darwin
maintainers     nomaintainer
description     Open source implementation of SLP

long_description \
    The OpenSLP project is an effort to develop an open-source \
    implementation of Service Location Protocol suitable for commercial and \
    non-commercial application. \
    Service Location Protocol is an IETF standards track protocol that \
    provides a framework to allow networking applications to discover the \
    existence, location, and configuration of networked services in \
    enterprise networks.

homepage        http://www.openslp.org/
master_sites    sourceforge

checksums       md5 ff9999d1b44017281dd00ed2c4d32330 \
                sha1 47ab19154084d2b467f09525f5351e9ab7193cf9 \
                rmd160 a31d516ba784ad893a740946082fe5e0f15a37ea

depends_lib     port:openssl

patchfiles      patch-slp_net.txt

test.run        yes
test.target     check

set docdir      ${prefix}/share/doc/${name}-${version}

destroot.args   DOC_DIR=${docdir}

post-destroot {
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog FAQ NEWS README THANKS \
        ${destroot}${docdir}
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex "OpenSLP (\\d+(?:\\.\\d+)*)"

