Changeset 147811 for trunk


Ignore:
Timestamp:
Apr 16, 2016, 2:42:41 PM (4 years ago)
Author:
khindenburg@…
Message:

salt: update to 2015.8.8.2 maintainer #51164

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/salt/Portfile

    r147021 r147811  
    66PortGroup           python 1.0
    77
    8 github.setup        saltstack salt 2015.8.5 v
     8github.setup        saltstack salt 2015.8.8.2 v
    99name                salt
    1010categories          sysutils
     
    1313license             Apache-2
    1414supported_archs     noarch
    15 
    16 # Remove this line when the port's version is next updated.
    17 distname            v${version}
    1815
    1916description         Salt is a Python-based remote execution, automation, \
     
    2825python.default_version 27
    2926
    30 checksums           rmd160 dc656a433c88e42e932e1f204a861752bb225b11\
    31                     sha256 3f8f013e90328ded27e06c80a698c7436d121461e50f7ae23438d8abedc56ad7
     27checksums           rmd160 0ffc4b342fc83a1cdf62eb0871a25cf573dad91d\
     28                    sha256 510d17f9f0a99f10ba46b73edaa5ee20a8176111d791625b0c58a6b1f8b3648c
    3229
    3330depends_build       port:py${python.version}-setuptools
     
    3936                    port:py${python.version}-yaml \
    4037                    port:py${python.version}-tornado \
     38                    port:py${python.version}-zmq \
    4139                    port:swig-python
    4240
     
    7270        file mkdir ${destroot}/Library/LaunchDaemons
    7371    }
    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
     72    copy ${worksrcpath}/pkg/osx/scripts/com.saltstack.salt.master.plist \
     73        ${destroot}/Library/LaunchDaemons/org.macports.salt-master.plist
     74    reinplace -W ${destroot}/Library/LaunchDaemons \
     75        "s|/opt/salt/bin/start-salt-master.sh|${prefix}/bin/salt-master|g" org.macports.salt-master.plist
     76    reinplace -W ${destroot}/Library/LaunchDaemons \
     77        "s|com.saltstack.salt.master|org.macports.salt-master|g" org.macports.salt-master.plist
     78    copy ${worksrcpath}/pkg/osx/scripts/com.saltstack.salt.api.plist \
     79        ${destroot}/Library/LaunchDaemons/org.macports.salt-api.plist
     80    reinplace -W ${destroot}/Library/LaunchDaemons \
     81        "s|/opt/salt/bin/start-salt-api.sh|${prefix}/bin/salt-api|g" org.macports.salt-api.plist
     82    reinplace -W ${destroot}/Library/LaunchDaemons \
     83        "s|com.saltstack.salt.api|org.macports.salt-api|g" org.macports.salt-api.plist
     84    copy ${worksrcpath}/pkg/osx/scripts/com.saltstack.salt.syndic.plist \
     85        ${destroot}/Library/LaunchDaemons/org.macports.salt-syndic.plist
     86    reinplace -W ${destroot}/Library/LaunchDaemons \
     87        "s|/opt/salt/bin/start-salt-syndic.sh|${prefix}/bin/salt-syndic|g" org.macports.salt-syndic.plist
     88    reinplace -W ${destroot}/Library/LaunchDaemons \
     89        "s|com.saltstack.salt.syndic|org.macports.salt-syndic|g" org.macports.salt-syndic.plist
    7690
    7791}
     
    88102This port configures a LaunchItem for salt-minion.
    89103
    90 It also installs LaunchItems for the salt-master and the salt-syndic.
     104It also installs LaunchItems for the salt-master, api, and the salt-syndic.
    91105
    92 To start the salt-master via launchd, run
     106To start the salt-master, api, or syndic via launchd, run
    93107   
    94 sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.master.plist
     108sudo launchctl load -w /Library/LaunchDaemons/org.macports.salt-master.plist
     109sudo launchctl load -w /Library/LaunchDaemons/org.macports.salt-api.plist
     110sudo launchctl load -w /Library/LaunchDaemons/org.macports.salt-syndic.plist
    95111
    96 To start the salt-syndic via launchd, run
     112or to start on El Capitan (10.11) or later system
    97113
    98 sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.syndic.plist
     114sudo launchctl enable system/org.macports.salt-master
     115sudo launchctl bootstrap system /Library/LaunchDaemons/org.macports.salt-master.plist
     116sudo launchctl enable system/org.macports.salt-api
     117sudo launchctl bootstrap system /Library/LaunchDaemons/org.macports.salt-api.plist
     118sudo launchctl enable system/org.macports.salt-syndic
     119sudo launchctl bootstrap system /Library/LaunchDaemons/org.macports.salt-syndic.plist
    99120
    100121To disable launchd management for the master or syndic, run the appropriate
    101122unload command:
    102123
    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
     124sudo launchctl unload -w /Library/LaunchDaemons/org.macports.salt-master.plist
     125sudo launchctl unload -w /Library/LaunchDaemons/org.macports.salt-api.plist
     126sudo launchctl unload -w /Library/LaunchDaemons/org.macports.salt-syndic.plist
     127
     128or to disable on El Capitan (10.11) or later system
     129
     130sudo launchctl disable system/org.macports.salt-master
     131sudo launchctl bootout system /Library/LaunchDaemons/org.macports.salt-master.plist
     132sudo launchctl disable system/org.macports.salt-api
     133sudo launchctl bootout system /Library/LaunchDaemons/org.macports.salt-api.plist
     134sudo launchctl disable system/org.macports.salt-syndic
     135sudo launchctl bootout system /Library/LaunchDaemons/org.macports.salt-syndic.plist
    106136
    107137"
Note: See TracChangeset for help on using the changeset viewer.