Puppet 5 and 6 currently use Ruby 2.7, as that is the default Ruby version. Puppet 6 can probably run on Ruby 3.0 after a distpatch, but Puppet 5 would require additional backporting (how much is unknown). Both Puppet 5 and 6 depend on facter and mcollective, and all must use the same Ruby version. So setting all four ports to use Ruby 2.7 seems like the simplest way to continue to keep things working when the default Ruby version is switched to Ruby 3.0. While here, add install patches for Puppet 5, 6, and mcollective to build with Ruby 3.0, and add backport a distpatch from Puppet 7 to Puppet 6 to allow Puppet 6 to run on Ruby 3.0. This will make a future switch to Ruby 3.0 easier. These changes should not have a runtime effect on Puppet 5 or 6. The Puppet 6 port is bumped, due to the backported patch, but that patch should not change runtime behavior on Ruby 2.7. review from sebastia@ (Puppet 5 maintainer) OK kn@ (Puppet 6 maintainer)
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.59 2021/08/30 19:23:38 jeremy Exp $
|
|
|
|
BROKEN-alpha= SIGABRT during make fake
|
|
COMMENT= framework for server orchestration/parallel job execution
|
|
DISTNAME= mcollective-2.12.5
|
|
|
|
REVISION= 0
|
|
|
|
CATEGORIES= sysutils
|
|
|
|
HOMEPAGE= https://puppet.com/docs/mcollective/current/index.html
|
|
|
|
MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
|
|
|
|
# Apache 2.0
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
MASTER_SITES= http://downloads.puppetlabs.com/mcollective/
|
|
|
|
MODULES= lang/ruby
|
|
|
|
NO_BUILD= Yes
|
|
BUILD_DEPENDS= lang/ruby/${MODRUBY_REV}
|
|
RUN_DEPENDS= net/ruby-stomp,${MODRUBY_FLAVOR}>=1.4.4
|
|
|
|
PKG_ARCH= *
|
|
NO_TEST= Yes
|
|
SUBST_VARS += RUBY
|
|
|
|
MODRUBY_REV = 2.7
|
|
MODRUBY_ADJ_FILES=mco mcollectived
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/ext/Makefile \
|
|
${WRKSRC}/etc/server.cfg.dist \
|
|
${WRKSRC}/etc/client.cfg.dist \
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${ALL_FAKE_FLAGS} ${RUBY} install.rb \
|
|
--no-rdoc \
|
|
--destdir=${WRKINST} \
|
|
--plugindir=${TRUEPREFIX}/libexec/mcollective/
|
|
mv ${WRKINST}${SYSCONFDIR}/mcollective \
|
|
${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-mcollective/
|
|
|
|
.include <bsd.port.mk>
|