blob: 4d111a86a4b04a3f24cf04c577dfb381177959ea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
PORTNAME= mcollective
PORTVERSION= 2.12.5
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
BROKEN_RUBY30= yes
BROKEN_RUBY31= yes
RUN_DEPENDS= rubygem-stomp>=0:devel/rubygem-stomp
USES= cpe shebangfix
CPE_VENDOR= puppet
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
post-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>
|