# $Id: Portfile 68857 2010-06-16 02:18:24Z rmsfisher@macports.org $

PortSystem      1.0

name            libdaemon
version         0.14
categories      devel
platforms       darwin
maintainers     nomaintainer
description     C library that eases writing UNIX daemons

long_description \
    libdaemon is a lightweight C library that eases the process of \
    writing UNIX daemons. It contains a daemonizing fork() wrapper, \
    a powerful syslog() wrapper, PID file management, and signal \
    serialization.

homepage        http://0pointer.de/lennart/projects/libdaemon/
master_sites    ${homepage}

checksums           md5     509dc27107c21bcd9fbf2f95f5669563 \
                    sha1    78a4db58cf3a7a8906c35592434e37680ca83b8f \
                    rmd160  952ae993fecfe3ec765dfa43b2690a83f1a5c939

depends_build   port:pkgconfig

configure.args  --disable-lynx

post-destroot {
    set docdir ${prefix}/share/doc/${name}-${version}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} LICENSE README ${destroot}${docdir}
}

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