# -*- 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                MacPorts_daemondo
version             1.1
revision            20141017
categories          sysutils
platforms           darwin
supported_archs     x86_64
license             BSD
maintainers         {ctreleaven @ctreleaven} openmaintainer

description         HACK to get daemondo into mpkg
long_description    Nasty ${description}. \
                    When using MacPorts to create an mpkg, any daemons requiring daemondo \
                    would fail.  Adding this port as dependency permits them to work.

homepage            https://www.macports.org/
master_sites

universal_variant   no

distfiles
use_configure no
build {}

destroot {
    file copy ${prefix}/bin/daemondo ${destroot}${prefix}/bin/
}

# We'll force the install and overwrite daemondo...with itself!
# But now we can add this as a dependency to the mpkg