2013-06-25 04:57:53 +02:00
|
|
|
# Created by: Russell Jackson <raj@csub.edu>
|
2011-08-13 16:28:34 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mcollective
|
2014-03-12 17:47:50 +01:00
|
|
|
PORTVERSION= 2.4.1
|
2011-08-13 16:28:34 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://downloads.puppetlabs.com/${PORTNAME}/
|
|
|
|
|
2011-10-31 23:36:25 +01:00
|
|
|
MAINTAINER= swills@FreeBSD.org
|
2011-08-13 16:28:34 +02:00
|
|
|
COMMENT= A modern scalable datacenter orchestration framework
|
|
|
|
|
|
|
|
RUN_DEPENDS= rubygem-stomp>=0:${PORTSDIR}/devel/rubygem-stomp
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
USE_RUBY= yes
|
|
|
|
USE_RC_SUBR= mcollectived
|
2011-08-16 02:16:18 +02:00
|
|
|
|
2012-06-27 21:53:01 +02:00
|
|
|
RUBY_SHEBANG_FILES= bin/mcollectived bin/mco bin/mc-call-agent
|
|
|
|
|
2011-08-16 02:16:18 +02:00
|
|
|
# don't make .bak files
|
|
|
|
REINPLACE_ARGS= -i ""
|
2011-08-13 16:28:34 +02:00
|
|
|
|
2011-12-31 20:42:58 +01:00
|
|
|
SCRIPTS= mco mc-call-agent
|
2011-08-13 16:28:34 +02:00
|
|
|
|
2012-08-30 05:08:13 +02:00
|
|
|
SUB_LIST+= RUBY=${RUBY}
|
|
|
|
|
2011-08-13 16:28:34 +02:00
|
|
|
do-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s|/etc/mcollective|${ETCDIR}|" \
|
2012-06-17 21:24:50 +02:00
|
|
|
${WRKSRC}/bin/mcollectived \
|
2011-08-13 16:28:34 +02:00
|
|
|
${WRKSRC}/etc/server.cfg.dist \
|
|
|
|
${WRKSRC}/etc/client.cfg.dist \
|
|
|
|
${WRKSRC}/lib/mcollective/config.rb \
|
|
|
|
${WRKSRC}/lib/mcollective/util.rb \
|
|
|
|
${WRKSRC}/lib/mcollective/rpc.rb
|
|
|
|
@${REINPLACE_CMD} -e "s|/usr/libexec/mcollective|${PREFIX}/share|" \
|
|
|
|
${WRKSRC}/etc/server.cfg.dist \
|
|
|
|
${WRKSRC}/etc/client.cfg.dist
|
|
|
|
|
|
|
|
do-install:
|
2014-03-12 17:47:50 +01:00
|
|
|
@(cd ${WRKSRC}/lib && ${COPYTREE_SHARE} \* ${STAGEDIR}${RUBY_SITELIBDIR})
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
@(cd ${WRKSRC}/plugins/mcollective && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR})
|
2011-08-13 16:28:34 +02:00
|
|
|
|
|
|
|
.for script in ${SCRIPTS}
|
2014-03-12 17:47:50 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/${script} ${STAGEDIR}${PREFIX}/bin/
|
2011-08-13 16:28:34 +02:00
|
|
|
.endfor
|
2014-03-12 17:47:50 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/mcollectived ${STAGEDIR}${PREFIX}/sbin/mcollectived
|
2011-08-13 16:28:34 +02:00
|
|
|
|
2014-03-12 17:47:50 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/client.cfg.dist ${STAGEDIR}${ETCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/server.cfg.dist ${STAGEDIR}${ETCDIR}
|
2011-08-13 16:28:34 +02:00
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
2014-03-12 17:47:50 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
|
2011-08-13 16:28:34 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|