# -*- 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                cfengine3
version             3.18.0
revision            1
categories          sysutils
platforms           darwin
license             GPL-3
maintainers         nomaintainer

description         network configuration-management tool
long_description    a suite of programs for integrated autonomic \
                    management of either individual or networked \
                    computers. Cfengine 3 is a significant rewrite \
                    of underlying cfengine technology which \
                    preserves the core principles and methodology \
                    of cfengine2’s approach.

homepage            https://cfengine.com
master_sites        https://cfengine-package-repos.s3.amazonaws.com/tarballs/
distname            cfengine-${version}

checksums           rmd160  68f9d95e58b1b88df78218dad6f3da61da929d85 \
                    sha256  d601a3af30f3fba7d51a37476c9e1a00b750682149bf96f4a0002e804bc87783 \
                    size    3281819
                    
depends_lib         path:lib/libssl.dylib:openssl \
                    port:pcre \
                    port:lmdb

patchfiles          patch-configure.diff

configure.args      --enable-fhs \
                    --with-openssl=${prefix} \
                    --with-pcre=${prefix} \
                    --with-postgresql=no \
                    --with-lmdb=${prefix}

livecheck.type      regex
livecheck.url       ${homepage}source-code
livecheck.regex     "cfengine-(\\d+(?:\\.\\d+)*).tar.gz"
