# Created by: Russell Jackson # $FreeBSD: head/sysutils/mcollective/Makefile 413901 2016-04-23 18:51:53Z swills $ PORTNAME= mcollective PORTVERSION= 2.8.2 PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://downloads.puppetlabs.com/${PORTNAME}/ MAINTAINER= swills@FreeBSD.org COMMENT= Modern scalable datacenter orchestration framework LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= rubygem-stomp>=0:devel/rubygem-stomp NO_BUILD= yes USE_RUBY= yes USES= shebangfix USE_RC_SUBR= mcollectived SHEBANG_FILES= bin/mcollectived bin/mco CFG_FILES= client.cfg data-help.erb discovery-help.erb facts.yaml \ metadata-help.erb rpc-help.erb server.cfg # don't make .bak files REINPLACE_ARGS= -i "" SCRIPTS= mco SUB_LIST+= RUBY=${RUBY} OPTIONS_DEFINE= DOCS do-patch: @${REINPLACE_CMD} -e "s|/etc/mcollective|${ETCDIR}|" \ ${WRKSRC}/bin/mcollectived \ ${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: cd ${WRKSRC} ; ${RUBY} install.rb --destdir=${STAGEDIR} --configdir=${ETCDIR} --plugindir=${DATADIR} .for cfg in ${CFG_FILES} mv ${STAGEDIR}${ETCDIR}/${cfg} ${STAGEDIR}${ETCDIR}/${cfg}.sample .endfor .include