[128431] trunk/dports/sysutils/salt/Portfile
snc at macports.org
snc at macports.org
Thu Nov 20 20:27:31 PST 2014
Revision: 128431
https://trac.macports.org/changeset/128431
Author: snc at macports.org
Date: 2014-11-20 20:27:31 -0800 (Thu, 20 Nov 2014)
Log Message:
-----------
salt: update to 2014.1.13, #44300
Modified Paths:
--------------
trunk/dports/sysutils/salt/Portfile
Modified: trunk/dports/sysutils/salt/Portfile
===================================================================
--- trunk/dports/sysutils/salt/Portfile 2014-11-21 03:58:10 UTC (rev 128430)
+++ trunk/dports/sysutils/salt/Portfile 2014-11-21 04:27:31 UTC (rev 128431)
@@ -2,16 +2,17 @@
# $Id$
PortSystem 1.0
+PortGroup github 1.0
PortGroup python 1.0
+github.setup saltstack salt 2014.1.13 v
name salt
-version 0.17.1
-revision 1
categories sysutils
platforms darwin
maintainers saltstack.com:cr
license Apache-2
supported_archs noarch
+distname v2014.1.13
description Salt is a Python-based remote execution, automation, \
configuration, and orchestration engine.
@@ -20,25 +21,88 @@
center automation, from infrastructure and any cloud, \
to the entire application stack.
-homepage http://docs.saltstack.com/
-master_sites https://pypi.python.org/packages/source/s/salt/
+homepage http://saltstack.com/
-checksums rmd160 4b4d7c0602b404d56b05af3060208fd23a296cf2 \
- sha256 2f9f0e8b2ed53241ab3e373fd8d4030384b3f78f7b796d185c9907874cceebb9
-
python.default_version 27
python.link_binaries_suffix
+checksums rmd160 2695fc2e63ae73b1b63eaa30cae8f15fd4784466 \
+ sha256 5ce29633a6d290ce11c375b5af6bfd84aecc5b41b2cc3272342ecc56f8c63375
+
depends_build port:py${python.version}-setuptools
depends_lib-append port:py${python.version}-crypto \
+ port:py${python.version}-m2crypto \
port:py${python.version}-jinja2 \
- port:py${python.version}-m2crypto \
port:py${python.version}-msgpack \
port:py${python.version}-pip \
port:py${python.version}-yaml \
port:py${python.version}-zmq \
port:swig-python
-livecheck.type regex
-livecheck.regex {topics/releases/([0-9.]+)\.html}
+startupitem.create yes
+startupitem.name salt-minion
+startupitem.netchange yes
+startupitem.logevents yes
+startupitem.logfile ${prefix}/var/log/salt/minion
+startupitem.executable ${prefix}/bin/salt-minion
+
+
+
+post-activate {
+
+ file mkdir ${prefix}/etc/salt
+
+ if ![file exists /etc/salt] {
+ ln -s ${prefix}/etc/salt /etc/salt
+ }
+
+ if ![file exists ${prefix}/etc/salt/minion] {
+ copy ${worksrcpath}/conf/minion ${prefix}/etc/salt
+ }
+
+ if ![file exists ${prefix}/etc/salt/master] {
+ copy ${worksrcpath}/conf/master ${prefix}/etc/salt
+ }
+}
+
+destroot {
+
+ if ![file exists ${destroot}/Library/LaunchDaemons] {
+ file mkdir ${destroot}/Library/LaunchDaemons
+ }
+ copy ${worksrcpath}/pkg/darwin/com.saltstack.salt.master.plist ${destroot}/Library/LaunchDaemons
+ copy ${worksrcpath}/pkg/darwin/com.saltstack.salt.syndic.plist ${destroot}/Library/LaunchDaemons
+
+}
+
+pre-deactivate {
+
+ if { [file type /etc/salt] == "link" } {
+ file delete /etc/salt
+ }
+
+}
+
+notes "
+This port configures a LaunchItem for salt-minion.
+
+It also installs LaunchItems for the salt-master and the salt-syndic.
+
+To start the salt-master via launchd, run
+
+sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.master.plist
+
+To start the salt-syndic via launchd, run
+
+sudo launchctl load -w /Library/LaunchDaemons/com.saltstack.salt.syndic.plist
+
+To disable launchd management for the master or syndic, run the appropriate
+unload command:
+
+sudo launchctl unload -w /Library/LaunchDaemons/com.saltstack.salt.master.plist
+or
+sudo launchctl unload -w /Library/LaunchDaemons/com.saltstack.salt.syndic.plist
+
+"
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141120/0b9451f7/attachment.html>
More information about the macports-changes
mailing list