Ticket #44300: Portfile-salt.diff
File Portfile-salt.diff, 3.9 KB (added by cro (C. R. Oldham), 10 years ago) |
---|
-
Portfile
old new 1 1 # -*- 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 2 # $Id: Portfile 1 27385 2014-10-26 20:02:37Z snc@macports.org $2 # $Id: Portfile 112969 2013-11-05 19:09:52Z ryandesign@macports.org $ 3 3 4 4 PortSystem 1.0 5 PortGroup github 1.0 5 6 PortGroup python 1.0 6 7 8 github.setup saltstack salt 2014.1.13 v 7 9 name salt 8 version 0.17.19 revision 110 10 categories sysutils 11 11 platforms darwin 12 12 maintainers saltstack.com:cr 13 13 license Apache-2 14 14 supported_archs noarch 15 distname v2014.1.13 15 16 16 17 description Salt is a Python-based remote execution, automation, \ 17 18 configuration, and orchestration engine. … … 20 21 center automation, from infrastructure and any cloud, \ 21 22 to the entire application stack. 22 23 23 homepage http://docs.saltstack.com/ 24 master_sites https://pypi.python.org/packages/source/s/salt/ 25 26 checksums rmd160 4b4d7c0602b404d56b05af3060208fd23a296cf2 \ 27 sha256 2f9f0e8b2ed53241ab3e373fd8d4030384b3f78f7b796d185c9907874cceebb9 24 homepage http://saltstack.com/ 28 25 29 26 python.default_version 27 30 27 python.link_binaries_suffix 31 28 29 checksums rmd160 2695fc2e63ae73b1b63eaa30cae8f15fd4784466 \ 30 sha256 5ce29633a6d290ce11c375b5af6bfd84aecc5b41b2cc3272342ecc56f8c63375 31 32 32 depends_build port:py${python.version}-setuptools 33 33 34 34 depends_lib-append port:py${python.version}-crypto \ 35 port:py${python.version}-jinja2 \36 35 port:py${python.version}-m2crypto \ 36 port:py${python.version}-jinja2 \ 37 37 port:py${python.version}-msgpack \ 38 38 port:py${python.version}-pip \ 39 39 port:py${python.version}-yaml \ 40 40 port:py${python.version}-zmq \ 41 41 port:swig-python 42 42 43 livecheck.type regex 44 livecheck.regex {topics/releases/([0-9.]+)\.html} 43 startupitem.create yes 44 startupitem.name salt-minion 45 startupitem.netchange yes 46 startupitem.logevents yes 47 startupitem.logfile ${prefix}/var/log/salt/minion 48 startupitem.executable ${prefix}/bin/salt-minion 49 50 51 52 post-activate { 53 54 file mkdir ${prefix}/etc/salt 55 56 if ![file exists /etc/salt] { 57 ln -s ${prefix}/etc/salt /etc/salt 58 } 59 60 if ![file exists ${prefix}/etc/salt/minion] { 61 copy ${worksrcpath}/conf/minion ${prefix}/etc/salt 62 } 63 64 if ![file exists ${prefix}/etc/salt/master] { 65 copy ${worksrcpath}/conf/master ${prefix}/etc/salt 66 } 67 } 68 69 destroot { 70 71 if ![file exists ${destroot}/Library/LaunchDaemons] { 72 file mkdir ${destroot}/Library/LaunchDaemons 73 } 74 copy ${worksrcpath}/pkg/darwin/com.saltstack.salt.master.plist ${destroot}/Library/LaunchDaemons 75 copy ${worksrcpath}/pkg/darwin/com.saltstack.salt.syndic.plist ${destroot}/Library/LaunchDaemons 76 77 } 78 79 pre-deactivate { 80 81 if { [file type /etc/salt] == "link" } { 82 file delete /etc/salt 83 } 84 85 } 86 87 notes " 88 This port configures a LaunchItem for salt-minion. 89 90 It also installs LaunchItems for the salt-master and the salt-syndic. 91 92 To start the salt-master via launchd, run 93 94 sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.master.plist 95 96 To start the salt-syndic via launchd, run 97 98 sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.syndic.plist 99 100 To disable launchd management for the master or syndic, run the appropriate 101 unload command: 102 103 sudo launchctl unload -w /Library/LaunchDaemons/com.saltstack.salt.master.plist 104 or 105 sudo launchctl unload -w /Library/LaunchDaemons/com.saltstack.salt.syndic.plist 106 107 " 108