1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/sysutils/mcollective/Makefile
Romain Tartière 412bba90bd Update to 2.12.4
With hat:	puppet
2018-10-26 10:29:36 +00:00

54 lines
1.3 KiB
Makefile

# Created by: Russell Jackson <raj@csub.edu>
# $FreeBSD$
PORTNAME= mcollective
PORTVERSION= 2.12.4
CATEGORIES= sysutils
MASTER_SITES= https://downloads.puppetlabs.com/${PORTNAME}/
MAINTAINER= puppet@FreeBSD.org
COMMENT= Modern scalable datacenter orchestration framework
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= rubygem-stomp>=0:devel/rubygem-stomp
USES= shebangfix
NO_BUILD= yes
USE_RUBY= yes
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>