# -*- 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 github 1.0 PortGroup python 1.0 github.setup saltstack salt 3000.3 v revision 1 checksums rmd160 f1c2a4f0609c3cd64f3b98c3a3bf8efe39703c75 \ sha256 c5c16a328b7971fecf1dc8902f2315387894613b198581c090063abc67df8fb7 \ size 15255885 categories sysutils python platforms {darwin any} maintainers {gmail.com:jeremy.mcmillan @aphor} openmaintainer license Apache-2 supported_archs noarch description Salt is a Python-based remote execution, automation, \ configuration, and orchestration engine. long_description SaltStack is fast, scalable and flexible software for data \ center automation, from infrastructure and any cloud, \ to the entire application stack. homepage https://saltstack.com/ if {![variant_isset python38]} { default_variants +python38 } variant python38 description {python-3.8 support} { python.default_version 38 depends_build port:py${python.version}-setuptools depends_lib-append port:py${python.version}-asn1 \ port:py${python.version}-cffi \ port:py${python.version}-cherrypy \ port:py${python.version}-cryptography \ port:py${python.version}-dateutil \ port:py${python.version}-distro \ port:py${python.version}-gitpython \ port:py${python.version}-gnupg \ port:py${python.version}-idna \ port:py${python.version}-jinja2 \ port:py${python.version}-mako \ port:py${python.version}-msgpack \ port:py${python.version}-psutil \ port:py${python.version}-pycryptodome \ port:py${python.version}-pyobjc \ port:py${python.version}-setproctitle \ port:py${python.version}-tornado \ port:py${python.version}-yaml \ port:py${python.version}-zmq destroot.cmd-append --with-salt-version=${version} } patchfiles patch-macports_syspaths.diff post-patch { reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/setup.cfg reinplace "s|msgpack-python==.*|msgpack >= 1.0.0|" ${worksrcpath}/pkg/osx/req.txt reinplace "s|backports.ssl_match_hostname==.*||" ${worksrcpath}/pkg/osx/req.txt reinplace "s|ipaddress==.*||" ${worksrcpath}/pkg/osx/req.txt reinplace "s|timelib==.*||" ${worksrcpath}/pkg/osx/req.txt reinplace "s|linode-python==.*||" ${worksrcpath}/pkg/osx/req.txt reinplace "s|vultr==.*||" ${worksrcpath}/pkg/osx/req.txt reinplace "s|==| >= |" ${worksrcpath}/pkg/osx/req.txt reinplace "s|==| >= |" ${worksrcpath}/pkg/osx/req_ext.txt reinplace "s|pyobjc==.*||" ${worksrcpath}/pkg/osx/req_pyobjc.txt reinplace "s|==| >= |" ${worksrcpath}/pkg/osx/req_pyobjc.txt } pre-test { copy ${worksrcpath}/conf ${worksrcpath}/test file mkdir ${worksrcpath}/test/cache reinplace -E "s|^#?cachedir:.*$|cachedir: ${worksrcpath}/test/cache|" \ ${worksrcpath}/test/minion } test.run yes test.env PYTHONPATH=${worksrcpath}/build/lib test.dir ${worksrcpath}/build test.cmd ${python.bin} scripts-${python.branch}/salt-call test.target test.versions_information test.args --log-file=${worksrcpath}/build/minion.log \ --config-dir=${worksrcpath}/test \ --hard-crash \ --local \ --id=local startupitem.create yes startupitem.netchange yes startupitem.logevents yes set daemons {minion master syndic api} foreach daemon ${daemons} { startupitems-append \ name ${name}-${daemon} \ logfile ${prefix}/var/log/${name}/${daemon} \ executable "${prefix}/bin/${name}-${daemon} --config-dir=${prefix}/etc/${name} --pid-file=${prefix}/var/run/${name}-${daemon}.pid" }