Date: Sun, 10 Feb 2019 18:17:58 +0000 (UTC) From: Zach Leslie <zleslie@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r492626 - in head/sysutils/puppetserver6: . files Message-ID: <201902101817.x1AIHwPn055756@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: zleslie Date: Sun Feb 10 18:17:58 2019 New Revision: 492626 URL: https://svnweb.freebsd.org/changeset/ports/492626 Log: Without this change, the puppetserver foreground is non-functional. This is a useful command when trying to debug ruby inside of the JVM. Approved by: mat(mentor) Differential Revision: D19137 Added: head/sysutils/puppetserver6/files/patch-ext__cli__foreground (contents, props changed) head/sysutils/puppetserver6/files/patch-ext__ezbake-functions.sh (contents, props changed) Modified: head/sysutils/puppetserver6/Makefile head/sysutils/puppetserver6/pkg-plist Modified: head/sysutils/puppetserver6/Makefile ============================================================================== --- head/sysutils/puppetserver6/Makefile Sun Feb 10 18:17:14 2019 (r492625) +++ head/sysutils/puppetserver6/Makefile Sun Feb 10 18:17:58 2019 (r492626) @@ -15,7 +15,8 @@ RUN_DEPENDS= bash>=0:shells/bash \ jruby>=9.1:lang/jruby \ puppet6>=0:sysutils/puppet6 \ rubygem-puppetserver-ca>=1:sysutils/rubygem-puppetserver-ca \ - rubygem-semantic_puppet>=1:devel/rubygem-semantic_puppet + rubygem-semantic_puppet>=1:devel/rubygem-semantic_puppet \ + sudo>=1:security/sudo USES= shebangfix USE_RC_SUBR= puppetserver @@ -42,7 +43,7 @@ post-patch: ext/config/conf.d/web-routes.conf ext/config/conf.d/webserver.conf \ ext/config/conf.d/auth.conf ext/config/services.d/ca.cfg \ ext/system-config/services.d/bootstrap.cfg ext/bin/puppetserver \ - ext/cli_defaults/cli-defaults.sh + ext/cli_defaults/cli-defaults.sh ext/cli/foreground @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \ -e 's|%%RUBY_SITELIBDIR%%|${RUBY_SITELIBDIR}|' \ -e 's|%%RUBY_VER%%|${RUBY_VER}|' \ @@ -61,6 +62,8 @@ do-install: @${MKDIR} ${STAGEDIR}${PREFIX}/etc/puppet/code @${MKDIR} ${STAGEDIR}/var/log/puppetserver @${MKDIR} ${STAGEDIR}/var/puppet/server + @${MKDIR} ${STAGEDIR}/var/puppet/server/data + @${MKDIR} ${STAGEDIR}/var/run/puppetserver ${INSTALL_DATA} ${WRKSRC}/puppet-server-release.jar ${STAGEDIR}${DATADIR}/puppet-server-release.jar ${INSTALL_DATA} ${WRKSRC}/ext/config/conf.d/global.conf ${STAGEDIR}${ETCDIR}/conf.d/global.conf.sample ${INSTALL_DATA} ${WRKSRC}/ext/config/logback.xml ${STAGEDIR}${ETCDIR}/logback.xml.sample Added: head/sysutils/puppetserver6/files/patch-ext__cli__foreground ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/puppetserver6/files/patch-ext__cli__foreground Sun Feb 10 18:17:58 2019 (r492626) @@ -0,0 +1,19 @@ +--- ext/cli/foreground.orig 2019-02-08 20:38:48.978660000 -0800 ++++ ext/cli/foreground 2019-02-08 21:31:43.683308000 -0800 +@@ -1,6 +1,6 @@ + #!/usr/bin/env bash + +-restartfile="/opt/puppetlabs/server/data/puppetserver/restartcounter" ++restartfile="/var/puppet/server/data/puppetserver/restartcounter" + cli_defaults=${INSTALL_DIR}/cli/cli-defaults.sh + + if [ ! -e "${INSTALL_DIR}/ezbake-functions.sh" ]; then +@@ -31,7 +31,7 @@ + -Djava.security.egd=/dev/urandom \ + -cp "$CLASSPATH" \ + clojure.main -m puppetlabs.trapperkeeper.main \ +- --config ${CONFIG} --bootstrap-config ${BOOTSTRAP_CONFIG} \ ++ --config ${CONFIG} --bootstrap-config %%ETCDIR%%/services.d \ + --restart-file "${restartfile}" \ + ${TK_ARGS} \ + ${@}" Added: head/sysutils/puppetserver6/files/patch-ext__ezbake-functions.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/puppetserver6/files/patch-ext__ezbake-functions.sh Sun Feb 10 18:17:58 2019 (r492626) @@ -0,0 +1,11 @@ +--- ext/ezbake-functions.sh.orig 2019-02-08 21:16:18.212575000 -0800 ++++ ext/ezbake-functions.sh 2019-02-08 21:16:49.208798000 -0800 +@@ -126,7 +126,7 @@ + local group="${GROUP:-puppet}" + + if [ ! -e "$restartfile" ]; then +- /usr/bin/install --directory --owner=$user --group=$group --mode=755 "$restart_file_base_dir" ++ /usr/bin/install -d -o $user -g $group -m 755 "$restart_file_base_dir" + if [ $? -ne 0 ]; then + echo "Unable to create or set permissions for restart file at ${restart_file_base_dir}" 1>&2 + return 1 Modified: head/sysutils/puppetserver6/pkg-plist ============================================================================== --- head/sysutils/puppetserver6/pkg-plist Sun Feb 10 18:17:14 2019 (r492625) +++ head/sysutils/puppetserver6/pkg-plist Sun Feb 10 18:17:58 2019 (r492626) @@ -24,3 +24,5 @@ @dir(puppet,puppet,750) /var/log/puppetserver @dir(puppet,puppet,755) /var/puppet @dir(puppet,puppet,750) /var/puppet/server +@dir(puppet,puppet,750) /var/puppet/server/data +@dir(puppet,puppet,750) /var/run/puppetserver
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902101817.x1AIHwPn055756>