freebsd-ports/sysutils/mcollective/Makefile
2016-08-14 02:03:39 +00:00

53 lines
1.3 KiB
Makefile

# Created by: Russell Jackson <raj@csub.edu>
# $FreeBSD$
PORTNAME= mcollective
PORTVERSION= 2.9.0
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 <bsd.port.mk>