ports/sysutils/puppet/files/patch-ext__rack__config.ru
Steve Wills 117eb57076 - Update to 3.4.2 [1]
- Remove Ruby 1.9 conditional, as 1.8 is gone.

PR:		ports/185549 [1]
Submitted by:	Bartek Rutkowski <ports@robakdesign.com> [1]
2014-01-15 17:01:38 +00:00

13 lines
636 B
Ruby

--- ./ext/rack/config.ru.orig 2013-12-20 16:47:22.876896492 +0000
+++ ./ext/rack/config.ru 2013-12-20 16:47:33.826895721 +0000
@@ -14,8 +14,8 @@
# Rack applications typically don't start as root. Set --confdir and --vardir
# to prevent reading configuration from ~puppet/.puppet/puppet.conf and writing
# to ~puppet/.puppet
-ARGV << "--confdir" << "/etc/puppet"
-ARGV << "--vardir" << "/var/lib/puppet"
+ARGV << "--confdir" << "%%PREFIX%%/etc/puppet"
+ARGV << "--vardir" << "/var/puppet"
# NOTE: it's unfortunate that we have to use the "CommandLine" class
# here to launch the app, but it contains some initialization logic