# -*- 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
PortGroup               makefile 1.0

name                    daemon
version                 0.8.4
revision                0
categories              sysutils
platforms               darwin
license                 GPL-2+
maintainers             {khindenburg @kurthindenburg} openmaintainer
description             Daemon turns other process into daemons
long_description        {*}${description}. There are many \
                        tasks that need to be performed to correctly set up a \
                        daemon process. This can be tedious. Daemon performs these \
                        tasks for other processes. This is useful for writing \
                        daemons in languages other than C, C++ or Perl (e.g. \
                        /bin/sh, Java).

homepage                https://libslack.org/daemon/
master_sites            ${homepage}download/

checksums               rmd160  bac3901dab24e01c0dc501be2b61e0d0a5bdd977 \
                        sha256  fa28859ad341cb0a0b012c11c271814f870482013b49f710600321d379887cd1 \
                        size    481216

patchfiles              disable-test-pseudo.patch

# Only a script, not a real configure.
use_configure           yes
configure.args          --prefix=${prefix} --destdir=${destroot} --disable-mail-test

test.run                yes

destroot.args           install-daemon-conf
destroot.keepdirs       ${destroot}${prefix}/etc/daemon.conf.d

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}

