2021-07-21 16:40:28 +02:00
|
|
|
# $NetBSD: Makefile,v 1.5 2021/07/21 14:40:31 taca Exp $
|
2012-08-12 11:15:57 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= mcollective-2.1.1
|
2021-07-21 16:40:28 +02:00
|
|
|
PKGREVISION= 2
|
2012-08-12 11:15:57 +02:00
|
|
|
CATEGORIES= sysutils
|
|
|
|
MASTER_SITES= http://downloads.puppetlabs.com/mcollective/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= imil@NetBSD.org
|
|
|
|
HOMEPAGE= http://puppetlabs.com/mcollective/
|
|
|
|
COMMENT= Framework to build server orchestration
|
|
|
|
LICENSE= apache-2.0
|
|
|
|
|
|
|
|
DEPENDS+= ${RUBY_PKGPREFIX}-stomp>=1.2.5:../../devel/ruby-stomp
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
USE_TOOLS+= pax
|
|
|
|
|
|
|
|
RCD_SCRIPTS= mcollectived
|
|
|
|
|
|
|
|
REPLACE_RUBY= bin/mcollectived bin/mco bin/mc-call-agent \
|
|
|
|
lib/mcollective/vendor/json/*/* \
|
|
|
|
lib/mcollective/vendor/json/*
|
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/mcollective
|
|
|
|
|
|
|
|
INSTALLATION_DIRS= bin sbin share/doc/mcollective share/mcollective
|
|
|
|
INSTALLATION_DIRS+= ${RUBY_VENDORLIB}/mcollective
|
2017-08-07 11:42:32 +02:00
|
|
|
INSTALLATION_DIRS+= ${EGDIR}
|
|
|
|
|
|
|
|
PKG_SYSCONFSUBDIR= mcollective
|
|
|
|
OWN_DIRS= ${PKG_SYSCONFDIR}/ssl
|
2012-08-12 11:15:57 +02:00
|
|
|
|
|
|
|
CONF_FILES+= ${EGDIR}/server.cfg.dist \
|
2017-08-07 11:42:32 +02:00
|
|
|
${PKG_SYSCONFDIR}/server.cfg
|
2012-08-12 11:15:57 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/client.cfg.dist \
|
2017-08-07 11:42:32 +02:00
|
|
|
${PKG_SYSCONFDIR}/client.cfg
|
2012-08-12 11:15:57 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= confpath
|
|
|
|
SUBST_FILES.confpath= ${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
|
2017-08-07 11:42:32 +02:00
|
|
|
SUBST_SED.confpath= -e "s,/etc/mcollective,${PKG_SYSCONFDIR},"
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.confpath= pre-configure
|
2012-08-12 11:15:57 +02:00
|
|
|
|
|
|
|
SUBST_CLASSES+= sharepath
|
|
|
|
SUBST_FILES.sharepath= ${WRKSRC}/etc/server.cfg.dist \
|
|
|
|
${WRKSRC}/etc/client.cfg.dist
|
|
|
|
SUBST_SED.sharepath= -e "s,/usr/libexec/mcollective,${PREFIX}/share,"
|
2018-07-04 15:40:07 +02:00
|
|
|
SUBST_STAGE.sharepath= pre-configure
|
2012-08-12 11:15:57 +02:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/mcollectived ${DESTDIR}${PREFIX}/sbin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/mco ${DESTDIR}${PREFIX}/bin
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/mc-call-agent ${DESTDIR}${PREFIX}/bin
|
|
|
|
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/server.cfg.dist \
|
|
|
|
${DESTDIR}${EGDIR}/server.cfg.dist
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/etc/client.cfg.dist \
|
|
|
|
${DESTDIR}${EGDIR}/client.cfg.dist
|
|
|
|
|
|
|
|
cd ${WRKSRC}/plugins/mcollective && \
|
|
|
|
${PAX} -wr * ${DESTDIR}${PREFIX}/share/mcollective
|
|
|
|
|
|
|
|
cd ${WRKSRC}/doc && \
|
|
|
|
${PAX} -wr * ${DESTDIR}${PREFIX}/share/doc/mcollective
|
|
|
|
|
|
|
|
cd ${WRKSRC}/lib && \
|
|
|
|
${PAX} -wr * ${DESTDIR}${PREFIX}/${RUBY_VENDORLIB}
|
|
|
|
|
|
|
|
.include "../../lang/ruby/modules.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|