# -*- 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           python 1.0

name                bcfg2
version             1.3.6
categories          sysutils python
maintainers         nomaintainer
license             BSD
supported_archs     noarch

description         Bcfg2 configuration management system
long_description    Bcfg2 helps system administrators deploy complex \
                    changes across large numbers of systems in a \
                    coherent and transparent fashion.  This port \
                    only contains the client.

homepage            http://www.bcfg2.org/
platforms           {darwin any}
master_sites        ftp://ftp.mcs.anl.gov/pub/bcfg

checksums           rmd160  c39f375ba20a5f457e3b2cd1b890a8baa877056c \
                    sha256  0bb53c16b46ee5e27a7692c7c43b53876d25b1fe9354262a0271c70beaad5bb0

python.default_version  27

patchfiles          patch-setup.py.diff

depends_build-append    port:py${python.version}-setuptools
depends_lib-append      port:py${python.version}-daemon \
                        port:py${python.version}-lockfile \
                        port:py${python.version}-lxml

post-destroot {
    set pyman ${python.prefix}/share/man/
    set manroot ${destroot}${prefix}/share/man/

    xinstall -d ${manroot}/man5
    xinstall -d ${manroot}/man1
    ln -s ${pyman}man5/bcfg2.conf.5 ${manroot}/man5/
    ln -s ${pyman}/man1/bcfg2.1 ${manroot}/man1/
}

livecheck.type      regex
livecheck.url       http://bcfg2.org/download/index.html
livecheck.regex     {Current stable release \(([0-9\.]+)\)}
