freebsd-ports/sysutils/mcollective/Makefile

59 lines
1.7 KiB
Makefile
Raw Normal View History

2013-06-25 04:57:53 +02:00
# Created by: Russell Jackson <raj@csub.edu>
# $FreeBSD$
PORTNAME= mcollective
PORTVERSION= 2.4.1
CATEGORIES= sysutils
MASTER_SITES= http://downloads.puppetlabs.com/${PORTNAME}/
MAINTAINER= swills@FreeBSD.org
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
RUBY_SHEBANG_FILES= bin/mcollectived bin/mco bin/mc-call-agent
# don't make .bak files
REINPLACE_ARGS= -i ""
2011-12-31 20:42:58 +01:00
SCRIPTS= mco mc-call-agent
SUB_LIST+= RUBY=${RUBY}
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}/lib && ${COPYTREE_SHARE} \* ${STAGEDIR}${RUBY_SITELIBDIR})
${MKDIR} ${STAGEDIR}${DATADIR}
@(cd ${WRKSRC}/plugins/mcollective && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR})
.for script in ${SCRIPTS}
${INSTALL_SCRIPT} ${WRKSRC}/bin/${script} ${STAGEDIR}${PREFIX}/bin/
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/bin/mcollectived ${STAGEDIR}${PREFIX}/sbin/mcollectived
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/etc/client.cfg.dist ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/etc/server.cfg.dist ${STAGEDIR}${ETCDIR}
.if !defined(NOPORTDOCS)
${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${STAGEDIR}${DOCSDIR})
.endif
.include <bsd.port.mk>