ports/sysutils/puppetserver6/files/patch-ext__bin__puppetserver
Romain Tartière ea5dcc2fb1 Update to 6.6.0
- Unbreak on FreeBSD 12+ (this version bundles an updated version of jRuby
  which allows running the PuppetServer on hosts with 64 bits inodes);
- Override the jRuby bundled ffi.rb to workaround a NullPointerException when
  trying to open an inexistent file;
- Remove deprecated Java flags;

Release notes:
https://puppet.com/docs/puppetserver/latest/release_notes.html#puppet-server-660

With hat:	puppet
2019-09-23 18:02:11 +00:00

15 lines
606 B
Text

--- ext/bin/puppetserver.orig 2018-10-03 16:18:58 UTC
+++ ext/bin/puppetserver
@@ -15,6 +15,12 @@ elif [ `uname` == "OpenBSD" ] ; then
USER="_puppet"
INSTALL_DIR="/opt/puppetlabs/server/apps/puppetserver"
CONFIG="/etc/puppetlabs/puppetserver/conf.d"
+elif [ `uname` == "FreeBSD" ] ; then
+ JAVA_BIN="%%JAVA%%"
+ JAVA_ARGS="-Xms2g -Xmx2g"
+ USER="puppet"
+ INSTALL_DIR="%%DATADIR%%"
+ CONFIG="%%ETCDIR%%/conf.d"
else
echo "You seem to be missing some important configuration files; could not find /etc/default/puppetserver or /etc/sysconfig/puppetserver" >&2
exit 1