View | Details | Raw Unified | Return to bug 220869 | Differences between
and this patch

Collapse All | Expand All

(-)py-salt-common/Makefile (+65 lines)
Line 0 Link Here
1
# Created by: Christer Edwards <christer.edwards@gmail.com>
2
# $FreeBSD: head/sysutils/py-salt-common/Makefile $
3
4
PORTNAME=	salt
5
PORTVERSION=	2017.7.1
6
CATEGORIES=	sysutils python
7
MASTER_SITES=	CHEESESHOP
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
9
PKGNAMESUFFIX=	-common
10
11
MAINTAINER=	christer.edwards@gmail.com
12
COMMENT=	Event driven automation platform common libraries
13
14
LICENSE=	APACHE20
15
LICENSE_FILE=	${WRKSRC}/LICENSE
16
17
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml \
18
		${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2 \
19
		${PYTHON_PKGNAMEPREFIX}msgpack-python>=0.3:devel/py-msgpack-python \
20
		${PYTHON_PKGNAMEPREFIX}libcloud>=0.14.0:net/py-libcloud \
21
		${PYTHON_PKGNAMEPREFIX}botocore>0:devel/py-botocore \
22
		${PYTHON_PKGNAMEPREFIX}MarkupSafe>0:textproc/py-MarkupSafe \
23
		${PYTHON_PKGNAMEPREFIX}requests>=1.0.0:www/py-requests \
24
		${PYTHON_PKGNAMEPREFIX}enum34>0:devel/py-enum34 \
25
		${PYTHON_PKGNAMEPREFIX}progressbar>0:misc/py-progressbar \
26
		${PYTHON_PKGNAMEPREFIX}futures>=2.0:devel/py-futures \
27
		${PYTHON_PKGNAMEPREFIX}tornado>=4.2.1:www/py-tornado
28
29
USES=		cpe python:2 python:3
30
CPE_VENDOR=	saltstack
31
CPE_PRODUCT=	salt
32
USE_PYTHON=	autoplist distutils
33
NO_ARCH=	yes
34
35
# we must pass these options before the target name, and python.mk has no
36
# early-arguments variable, so we have to manipulate the target
37
PYDISTUTILS_INSTALL_TARGET=\
38
	--salt-root-dir=/ \
39
	--salt-config-dir=${ETCDIR} \
40
	--salt-cache-dir=/var/cache/salt \
41
	--salt-sock-dir=/var/run/salt \
42
	--salt-srv-root-dir=${ETCDIR} \
43
	--salt-base-file-roots-dir=${ETCDIR}/states \
44
	--salt-base-pillar-roots-dir=${ETCDIR}/pillar \
45
	--salt-base-master-roots-dir=${ETCDIR}/salt-master \
46
	--salt-logs-dir=/var/log/salt \
47
	--salt-pidfile-dir=/var/run \
48
	install
49
50
51
post-patch:
52
.for file in conf/minion conf/master doc/man/salt-key.1 \
53
	doc/man/salt-cp.1 doc/man/salt-minion.1 doc/man/salt-syndic.1 \
54
	doc/man/salt-master.1 doc/man/salt-run.1 doc/man/salt.7 doc/man/salt.1 \
55
	doc/man/salt-call.1 \
56
	salt/modules/mysql.py salt/utils/parsers.py salt/modules/tls.py \
57
	salt/modules/postgres.py salt/utils/migrations.py
58
	@${REINPLACE_CMD} -e 's|/etc/salt|${ETCDIR}|' \
59
		-e 's|/srv/salt|${ETCDIR}/states|' \
60
		-e 's|/srv/pillar|${ETCDIR}/pillar|' ${WRKSRC}/${file}
61
.endfor
62
	@${REINPLACE_CMD} -e 's|yumpkg5|pkgng|' ${WRKSRC}/conf/minion
63
64
65
.include <bsd.port.mk>
(-)py-salt-common/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1502823014
2
SHA256 (salt-2017.7.1.tar.gz) = fe868415d0e1162157186f4c5263e9af902b0571870ad2da210e7edf5ff5331d
3
SIZE (salt-2017.7.1.tar.gz) = 11408839
(-)py-salt-common/files/patch-setup.py (+13 lines)
Line 0 Link Here
1
--- setup.py.orig	2016-11-22 16:50:54 UTC
2
+++ setup.py
3
@@ -988,8 +988,8 @@ class SaltDistribution(distutils.dist.Di
4
     def _property_data_files(self):
5
         # Data files common to all scenarios
6
         data_files = [
7
-            ('share/man/man1', ['doc/man/salt-call.1', 'doc/man/salt-run.1']),
8
-            ('share/man/man7', ['doc/man/salt.7'])
9
+            ('man/man1', ['doc/man/salt-call.1', 'doc/man/salt-run.1']),
10
+            ('man/man7', ['doc/man/salt.7'])
11
         ]
12
         if self.ssh_packaging or PACKAGED_FOR_SALT_SSH:
13
             data_files[0][1].append('doc/man/salt-ssh.1')
(-)py-salt-common/pkg-descr (+8 lines)
Line 0 Link Here
1
SaltStack : Event Driven Automation Platform
2
============================================
3
4
Salt is a powerful remote execution and state manager that can be
5
used to administer servers in a fast and efficient way.
6
7
WWW: https://pypi.python.org/pypi/salt
8
WWW: http://saltstack.org/
(-)py-salt-common/pkg-plist (+3 lines)
Line 0 Link Here
1
%%PYTHON_SITELIBDIR%%/salt/_syspaths.py
2
%%PYTHON_SITELIBDIR%%/salt/_syspaths.pyc
3
%%PYTHON_SITELIBDIR%%/salt/_syspaths.%%PYTHON_PYOEXTENSION%%
(-)py-salt-tcp/Makefile (+41 lines)
Line 0 Link Here
1
PORTNAME=	salt
2
PORTVERSION=	2017.7.1
3
CATEGORIES=	sysutils python
4
PKGNAMESUFFIX=	-tcp
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
CONFLICTS_INSTALL=	${PYTHON_PKGNAMEPREFIX}${PORTNAME}-zmq-*
7
8
LICENSE=	APACHE20
9
10
MAINTAINER=	christer.edwards@gmail.com
11
COMMENT=	Event driven automation platform TCP transport
12
13
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyzmq>=2.2.0:net/py-pyzmq
14
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyzmq>=2.2.0:net/py-pyzmq \
16
	${PYTHON_PKGNAMEPREFIX}pycrypto>=2.6.1:security/py-pycrypto \
17
	${PYTHON_PKGNAMEPREFIX}salt-common>=2017.7.0:sysutils/py-salt-common
18
19
USES=	cpe metaport python:2 python:3
20
CPE_VENDOR=	saltstack
21
CPE_PRODUCT=	salt
22
23
NO_MTREE=	yes
24
NO_ARCH=	yes
25
26
SUB_LIST+=	PYTHON_CMD=${PYTHON_CMD}
27
28
USE_RC_SUBR=	salt_api \
29
	salt_master \
30
	salt_minion \
31
	salt_proxy \
32
	salt_syndic
33
34
post-install:
35
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/rc.d
36
	@${MKDIR} ${STAGEDIR}${ETCDIR}/minion.d
37
	@${MKDIR} ${STAGEDIR}${ETCDIR}/master.d
38
	${INSTALL} ${FILESDIR}/transport.conf ${STAGEDIR}${ETCDIR}/minion.d/_transport.conf
39
	${INSTALL} ${FILESDIR}/transport.conf ${STAGEDIR}${ETCDIR}/master.d/_transport.conf
40
41
.include <bsd.port.mk>
(-)py-salt-tcp/files/salt_api.in (+31 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD: head/sysutils/py-salt-tcp/files/salt_api.in 398042 2015-09-27 14:32:04Z junovitch $
4
#
5
# Salt API startup script
6
#
7
# PROVIDE: salt_api
8
# REQUIRE: LOGIN
9
# KEYWORD: shutdown
10
11
# Add the following to /etc/rc.conf[.local] to enable this service
12
#
13
# salt_api_enable (bool):          Set to NO by default.
14
#               Set it to YES to enable salt_api
15
#
16
17
. /etc/rc.subr
18
19
name=salt_api
20
rcvar=salt_api_enable
21
22
load_rc_config ${name}
23
24
: ${salt_api_enable:=NO}
25
26
command="%%PREFIX%%/bin/salt-api"
27
command_interpreter="%%PYTHON_CMD%%"
28
required_files="%%PREFIX%%/etc/salt"
29
command_args="-c ${required_files} -d"
30
31
run_rc_command "$1"
(-)py-salt-tcp/files/salt_master.in (+42 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD: head/sysutils/py-salt-tcp/files/salt_master.in $
4
#
5
# Salt Master startup script
6
#
7
# PROVIDE: salt_master
8
# REQUIRE: LOGIN
9
# KEYWORD: shutdown
10
11
# Add the following to /etc/rc.conf[.local] to enable this service
12
#
13
# salt_master_enable (bool):       Set to NO by default.
14
#               Set it to YES to enable salt_master.
15
# salt_master_paths (string):      Set to "/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin" by default.
16
#               Default $PATH for salt_master.
17
# salt_master_eggcache (string):   Set to "/tmp" by default.
18
#               Allows defining egg cache directory to fix runtime on diskless systems.
19
#
20
21
. /etc/rc.subr
22
23
name=salt_master
24
rcvar=salt_master_enable
25
26
load_rc_config ${name}
27
28
: ${salt_master_enable:=NO}
29
: ${salt_master_paths=/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin}
30
: ${salt_master_pidfile:=/var/run/salt-master.pid}
31
: ${salt_master_eggcache=/tmp}
32
33
command="%%PREFIX%%/bin/salt-master"
34
command_interpreter="%%PYTHON_CMD%%"
35
required_files="%%PREFIX%%/etc/salt"
36
command_args="-c ${required_files} -d"
37
pidfile=${salt_master_pidfile}
38
39
export PATH="${salt_master_paths}"
40
export PYTHON_EGG_CACHE="${salt_master_eggcache}"
41
42
run_rc_command "$1"
(-)py-salt-tcp/files/salt_minion.in (+42 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD: head/sysutils/py-salt-tcp/files/salt_minion.in $
4
#
5
# Salt Minion startup script
6
#
7
# PROVIDE: salt_minion
8
# REQUIRE: LOGIN
9
# KEYWORD: shutdown
10
11
# Add the following to /etc/rc.conf[.local] to enable this service
12
#
13
# salt_minion_enable (bool):       Set to NO by default.
14
#               Set it to YES to enable salt_minion
15
# salt_minion_paths (string):      Set to "/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin" by default.
16
#               Default $PATH for salt_minion
17
# salt_minion_eggcache (string):   Set to "/tmp" by default.
18
#               Allows defining egg cache directory to fix runtime on diskless systems.
19
#
20
21
. /etc/rc.subr
22
23
name=salt_minion
24
rcvar=salt_minion_enable
25
26
load_rc_config ${name}
27
28
: ${salt_minion_enable:=NO}
29
: ${salt_minion_paths=/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin}
30
: ${salt_minion_pidfile:=/var/run/salt-minion.pid}
31
: ${salt_minion_eggcache=/tmp}
32
33
command="%%PREFIX%%/bin/salt-minion"
34
command_interpreter="%%PYTHON_CMD%%"
35
required_files="%%PREFIX%%/etc/salt"
36
command_args="-c ${required_files} -d"
37
pidfile=${salt_minion_pidfile}
38
39
export PATH="${salt_minion_paths}"
40
export PYTHON_EGG_CACHE="${salt_minion_eggcache}"
41
42
run_rc_command "$1"
(-)py-salt-tcp/files/salt_proxy.in (+59 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD: head/sysutils/py-salt-tcp/files/salt_proxy.in $
4
#
5
# Salt Proxy startup script
6
#
7
# PROVIDE: salt_proxy
8
# REQUIRE: LOGIN
9
# KEYWORD: shutdown
10
11
# Add the following to /etc/rc.conf[.local] to enable this service
12
#
13
# salt_proxy_enable (bool):        Set to NO by default.
14
#               Set it to YES to enable salt_proxy.
15
# salt_proxy_paths (string):       Set to "/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin" by default.
16
#               Default $PATH for Salt
17
# salt_proxy_eggcache (string):    Set to "/tmp" by default.
18
#               Allows defining egg cache directory to fix runtime on diskless systems.
19
# salt_proxy_list (string):        Set to "" by default.
20
#               Space separated list of proxies.
21
#
22
23
. /etc/rc.subr
24
25
name=salt_proxy
26
rcvar=salt_proxy_enable
27
28
load_rc_config ${name}
29
30
: ${salt_proxy_enable:=NO}
31
: ${salt_proxy_paths=/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin}
32
: ${salt_proxy_eggcache=/tmp}
33
34
start_cmd=salt_proxy_start
35
36
command="%%PREFIX%%/bin/salt-proxy"
37
command_interpreter="%%PYTHON_CMD%%"
38
required_files="%%PREFIX%%/etc/salt"
39
command_args="-c ${required_files} -d"
40
41
export PATH="${salt_minion_paths}"
42
export PYTHON_EGG_CACHE="${salt_minion_eggcache}"
43
44
salt_proxy_start()
45
{
46
    if [ ! -n "${salt_proxy_list}" ]; then
47
        echo "${salt_proxy_list} is undefined"
48
        return 1
49
    fi
50
51
    local _proxy
52
53
    for _proxy in ${salt_proxy_list}; do
54
        echo "Starting salt-proxy: ${_proxy}"
55
        ${command_interpreter} ${command} --proxyid ${_proxy} ${command_args}
56
    done
57
}
58
59
run_rc_command "$1"
(-)py-salt-tcp/files/salt_syndic.in (+31 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD: head/sysutils/py-salt-tcp/files/salt_syndic.in $
4
#
5
# Salt Synic startup script
6
#
7
# PROVIDE: salt_syndic
8
# REQUIRE: LOGIN
9
# KEYWORD: shutdown
10
11
# Add the following to /etc/rc.conf[.local] to enable this service
12
#
13
# salt_syndic_enable (bool):       Set to NO by default.
14
#               Set it to YES to enable salt_syndic
15
#
16
17
. /etc/rc.subr
18
19
name=salt_syndic
20
rcvar=salt_syndic_enable
21
22
load_rc_config ${name}
23
24
: ${salt_syndic_enable:=NO}
25
26
command="%%PREFIX%%/bin/salt-syndic"
27
command_interpreter="%%PYTHON_CMD%%"
28
required_files="%%PREFIX%%/etc/salt"
29
command_args="-c ${required_files} -d"
30
31
run_rc_command "$1"
(-)py-salt-tcp/files/transport.conf (+1 lines)
Line 0 Link Here
1
transport: tcp
(-)py-salt-tcp/pkg-descr (+7 lines)
Line 0 Link Here
1
SaltStack : Event Driven Automation Platform
2
============================================
3
4
This port provides the TCP trasport.
5
6
WWW: https://pypi.python.org/pypi/salt
7
WWW: http://saltstack.org/
(-)py-salt-tcp/pkg-plist (+2 lines)
Line 0 Link Here
1
%%ETCDIR%%/master.d/_transport.conf
2
%%ETCDIR%%/minion.d/_transport.conf
(-)py-salt-zmq/Makefile (+37 lines)
Line 0 Link Here
1
PORTNAME=	salt
2
PORTVERSION=	2017.7.1
3
CATEGORIES=	sysutils python
4
PKGNAMESUFFIX=	-zmq
5
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
6
CONFLICTS_INSTALL=	${PYTHON_PKGNAMEPREFIX}${PORTNAME}-tcp-*
7
8
LICENSE=	APACHE20
9
10
MAINTAINER=	christer.edwards@gmail.com
11
COMMENT=	Event driven automation platform 0MQ transport
12
13
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyzmq>=2.2.0:net/py-pyzmq
14
15
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyzmq>=2.2.0:net/py-pyzmq \
16
	${PYTHON_PKGNAMEPREFIX}pycrypto>=2.6.1:security/py-pycrypto \
17
	${PYTHON_PKGNAMEPREFIX}salt-common>=2017.7.0:sysutils/py-salt-common
18
19
USES=	cpe metaport python:2 python:3
20
CPE_VENDOR=	saltstack
21
CPE_PRODUCT=	salt
22
23
NO_MTREE=	yes
24
NO_ARCH=	yes
25
26
SUB_LIST+=	PYTHON_CMD=${PYTHON_CMD}
27
28
USE_RC_SUBR=	salt_api \
29
	salt_master \
30
	salt_minion \
31
	salt_proxy \
32
	salt_syndic
33
34
post-install:
35
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc/rc.d
36
37
.include <bsd.port.mk>
(-)py-salt-zmq/files/salt_api.in (+31 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD: head/sysutils/py-salt-zmq/files/salt_api.in $
4
#
5
# Salt API startup script
6
#
7
# PROVIDE: salt_api
8
# REQUIRE: LOGIN
9
# KEYWORD: shutdown
10
11
# Add the following to /etc/rc.conf[.local] to enable this service
12
#
13
# salt_api_enable (bool):          Set to NO by default.
14
#               Set it to YES to enable salt_api
15
#
16
17
. /etc/rc.subr
18
19
name=salt_api
20
rcvar=salt_api_enable
21
22
load_rc_config ${name}
23
24
: ${salt_api_enable:=NO}
25
26
command="%%PREFIX%%/bin/salt-api"
27
command_interpreter="%%PYTHON_CMD%%"
28
required_files="%%PREFIX%%/etc/salt"
29
command_args="-c ${required_files} -d"
30
31
run_rc_command "$1"
(-)py-salt-zmq/files/salt_master.in (+42 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD: head/sysutils/py-salt-zmq/files/salt_master.in $
4
#
5
# Salt Master startup script
6
#
7
# PROVIDE: salt_master
8
# REQUIRE: LOGIN
9
# KEYWORD: shutdown
10
11
# Add the following to /etc/rc.conf[.local] to enable this service
12
#
13
# salt_master_enable (bool):       Set to NO by default.
14
#               Set it to YES to enable salt_master.
15
# salt_master_paths (string):      Set to "/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin" by default.
16
#               Default $PATH for salt_master.
17
# salt_master_eggcache (string):   Set to "/tmp" by default.
18
#               Allows defining egg cache directory to fix runtime on diskless systems.
19
#
20
21
. /etc/rc.subr
22
23
name=salt_master
24
rcvar=salt_master_enable
25
26
load_rc_config ${name}
27
28
: ${salt_master_enable:=NO}
29
: ${salt_master_paths=/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin}
30
: ${salt_master_pidfile:=/var/run/salt-master.pid}
31
: ${salt_master_eggcache=/tmp}
32
33
command="%%PREFIX%%/bin/salt-master"
34
command_interpreter="%%PYTHON_CMD%%"
35
required_files="%%PREFIX%%/etc/salt"
36
command_args="-c ${required_files} -d"
37
pidfile=${salt_master_pidfile}
38
39
export PATH="${salt_master_paths}"
40
export PYTHON_EGG_CACHE="${salt_master_eggcache}"
41
42
run_rc_command "$1"
(-)py-salt-zmq/files/salt_minion.in (+42 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD: head/sysutils/py-salt-zmq/files/salt_minion.in $
4
#
5
# Salt Minion startup script
6
#
7
# PROVIDE: salt_minion
8
# REQUIRE: LOGIN
9
# KEYWORD: shutdown
10
11
# Add the following to /etc/rc.conf[.local] to enable this service
12
#
13
# salt_minion_enable (bool):       Set to NO by default.
14
#               Set it to YES to enable salt_minion
15
# salt_minion_paths (string):      Set to "/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin" by default.
16
#               Default $PATH for salt_minion
17
# salt_minion_eggcache (string):   Set to "/tmp" by default.
18
#               Allows defining egg cache directory to fix runtime on diskless systems.
19
#
20
21
. /etc/rc.subr
22
23
name=salt_minion
24
rcvar=salt_minion_enable
25
26
load_rc_config ${name}
27
28
: ${salt_minion_enable:=NO}
29
: ${salt_minion_paths=/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin}
30
: ${salt_minion_pidfile:=/var/run/salt-minion.pid}
31
: ${salt_minion_eggcache=/tmp}
32
33
command="%%PREFIX%%/bin/salt-minion"
34
command_interpreter="%%PYTHON_CMD%%"
35
required_files="%%PREFIX%%/etc/salt"
36
command_args="-c ${required_files} -d"
37
pidfile=${salt_minion_pidfile}
38
39
export PATH="${salt_minion_paths}"
40
export PYTHON_EGG_CACHE="${salt_minion_eggcache}"
41
42
run_rc_command "$1"
(-)py-salt-zmq/files/salt_proxy.in (+59 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD: head/sysutils/py-salt-zmq/files/salt_proxy.in $
4
#
5
# Salt Proxy startup script
6
#
7
# PROVIDE: salt_proxy
8
# REQUIRE: LOGIN
9
# KEYWORD: shutdown
10
11
# Add the following to /etc/rc.conf[.local] to enable this service
12
#
13
# salt_proxy_enable (bool):        Set to NO by default.
14
#               Set it to YES to enable salt_proxy.
15
# salt_proxy_paths (string):       Set to "/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin" by default.
16
#               Default $PATH for Salt
17
# salt_proxy_eggcache (string):    Set to "/tmp" by default.
18
#               Allows defining egg cache directory to fix runtime on diskless systems.
19
# salt_proxy_list (string):        Set to "" by default.
20
#               Space separated list of proxies.
21
#
22
23
. /etc/rc.subr
24
25
name=salt_proxy
26
rcvar=salt_proxy_enable
27
28
load_rc_config ${name}
29
30
: ${salt_proxy_enable:=NO}
31
: ${salt_proxy_paths=/sbin:/bin:/usr/sbin:/usr/bin:%%PREFIX%%/bin:%%PREFIX%%/sbin}
32
: ${salt_proxy_eggcache=/tmp}
33
34
start_cmd=salt_proxy_start
35
36
command="%%PREFIX%%/bin/salt-proxy"
37
command_interpreter="%%PYTHON_CMD%%"
38
required_files="%%PREFIX%%/etc/salt"
39
command_args="-c ${required_files} -d"
40
41
export PATH="${salt_minion_paths}"
42
export PYTHON_EGG_CACHE="${salt_minion_eggcache}"
43
44
salt_proxy_start()
45
{
46
    if [ ! -n "${salt_proxy_list}" ]; then
47
        echo "${salt_proxy_list} is undefined"
48
        return 1
49
    fi
50
51
    local _proxy
52
53
    for _proxy in ${salt_proxy_list}; do
54
        echo "Starting salt-proxy: ${_proxy}"
55
        ${command_interpreter} ${command} --proxyid ${_proxy} ${command_args}
56
    done
57
}
58
59
run_rc_command "$1"
(-)py-salt-zmq/files/salt_syndic.in (+31 lines)
Line 0 Link Here
1
#!/bin/sh
2
3
# $FreeBSD: head/sysutils/py-salt-zmq/files/salt_syndic.in $
4
#
5
# Salt Synic startup script
6
#
7
# PROVIDE: salt_syndic
8
# REQUIRE: LOGIN
9
# KEYWORD: shutdown
10
11
# Add the following to /etc/rc.conf[.local] to enable this service
12
#
13
# salt_syndic_enable (bool):       Set to NO by default.
14
#               Set it to YES to enable salt_syndic
15
#
16
17
. /etc/rc.subr
18
19
name=salt_syndic
20
rcvar=salt_syndic_enable
21
22
load_rc_config ${name}
23
24
: ${salt_syndic_enable:=NO}
25
26
command="%%PREFIX%%/bin/salt-syndic"
27
command_interpreter="%%PYTHON_CMD%%"
28
required_files="%%PREFIX%%/etc/salt"
29
command_args="-c ${required_files} -d"
30
31
run_rc_command "$1"
(-)py-salt-zmq/pkg-descr (+7 lines)
Line 0 Link Here
1
SaltStack : Event Driven Automation Platform
2
============================================
3
4
This port provides the 0MQ trasport.
5
6
WWW: https://pypi.python.org/pypi/salt
7
WWW: http://saltstack.org/

Return to bug 220869