94bd6e5ed0
- Fix user.present states with non-string fullname (issue 9085) - Fix virt.init return value on failure (issue 6870) - Fix reporting of file.blockreplace state when test=True - Fix network.interfaces when used in cron (issue 7990) - Fix bug in pkgrepo when switching to/from mirrorlist-based repo def (issue 9121) - Fix infinite recursion when cache file is corrupted - Add checking for rev and mirror/bare args in git.latest (issue 9107) - Add cmd.watch alias (points to cmd.wait) (issue 8612) - Fix stacktrace when prereq is not formed as a list (issue 8235) - Fix stdin issue with lvdisplay command (issue 9128) - Add pre-check function for range matcher (issue 9236) - Add exception handling for psutil for processes that go missing (issue 9274) - Allow _in requisites to match both on ID and name (issue 9061) - Fix multiple client timeout issues (issue 7157 and issue 9302, probably others) - Fix ZMQError: Operation cannot be accomplished in current state errors (issue 6306) - Multiple optimization in minion auth routines - Clarify logs for minion ID caching PR: ports/186149 Submitted by: Christer Edwards <christer.edwards@gmail.com> (maintainer)
66 lines
2.1 KiB
Makefile
66 lines
2.1 KiB
Makefile
# Created by: Christer Edwards <christer.edwards@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= salt
|
|
PORTVERSION= 0.17.5
|
|
CATEGORIES= sysutils python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= christer.edwards@gmail.com
|
|
COMMENT= Distributed remote execution and configuration management system
|
|
|
|
LICENSE= APACHE20
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}yaml>=0:${PORTSDIR}/devel/py-yaml \
|
|
${PYTHON_PKGNAMEPREFIX}pyzmq>=2.1.9:${PORTSDIR}/devel/py-pyzmq \
|
|
${PYTHON_PKGNAMEPREFIX}pycrypto>=0:${PORTSDIR}/security/py-pycrypto \
|
|
${PYTHON_PKGNAMEPREFIX}Jinja2>=0:${PORTSDIR}/devel/py-Jinja2 \
|
|
${PYTHON_PKGNAMEPREFIX}msgpack>=0.1.9:${PORTSDIR}/devel/py-msgpack \
|
|
${PYTHON_PKGNAMEPREFIX}m2crypto>=0:${PORTSDIR}/security/py-m2crypto \
|
|
sshpass>=0:${PORTSDIR}/security/sshpass
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
USE_PYTHON= 2
|
|
USE_PYDISTUTILS=yes
|
|
|
|
PYDISTUTILS_INSTALLARGS+=\
|
|
--prefix=${PREFIX} \
|
|
--salt-root-dir=/ \
|
|
--salt-config-dir=${ETCDIR} \
|
|
--salt-cache-dir=/var/cache/salt \
|
|
--salt-sock-dir=/var/run/salt \
|
|
--salt-srv-root-dir=${ETCDIR} \
|
|
--salt-base-file-roots-dir=${ETCDIR}/states \
|
|
--salt-base-pillar-roots-dir=${ETCDIR}/pillar \
|
|
--salt-base-master-roots-dir=${ETCDIR}/salt-master \
|
|
--salt-logs-dir=/var/log/salt \
|
|
--salt-pidfile-dir=/var/run
|
|
|
|
USE_RC_SUBR= salt_master \
|
|
salt_minion \
|
|
salt_syndic
|
|
|
|
SUB_LIST+= PYTHON_CMD=${PYTHON_CMD}
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
post-patch:
|
|
.for file in conf/minion conf/master doc/man/salt-key.1 \
|
|
doc/man/salt-cp.1 doc/man/salt-minion.1 doc/man/salt-syndic.1 \
|
|
doc/man/salt-master.1 doc/man/salt-run.1 doc/man/salt.7 doc/man/salt.1 \
|
|
doc/man/salt-call.1 salt/config.py \
|
|
salt/modules/mysql.py salt/utils/parsers.py salt/modules/tls.py \
|
|
salt/modules/postgres.py salt/utils/migrations.py
|
|
@${REINPLACE_CMD} -e 's|/etc/salt|${PREFIX}/etc/salt|' \
|
|
-e 's|/srv/salt|${PREFIX}/etc/salt/states|' \
|
|
-e 's|/srv/pillar|${PREFIX}/etc/salt/pillar|' ${WRKSRC}/${file}
|
|
.endfor
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/conf/master ${STAGEDIR}${ETCDIR}/master.sample
|
|
${INSTALL_DATA} ${WRKSRC}/conf/minion ${STAGEDIR}${ETCDIR}/minion.sample
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|