summaryrefslogtreecommitdiff
path: root/sysutils/puppet-devel/files/patch-install.rb
blob: fe86bcc971991754fcdcd8d23a9c913ee89a92b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- install.rb.orig	2008-07-24 08:03:04.000000000 +0900
+++ install.rb	2008-08-01 18:48:33.000000000 +0900
@@ -98,11 +98,12 @@
 end
 
 def do_man(man, strip = 'man/')
+  return
   man.each do |mf|
     omf = File.join(InstallOptions.man_dir, mf.gsub(/#{strip}/, ''))
     om = File.dirname(omf)
     File.makedirs(om, true)
-    File.chmod(0644, om)
+    File.chmod(0755, om)
     File.install(mf, omf, 0644, true)
     gzip = %x{which gzip}
     gzip.chomp!
@@ -223,7 +224,7 @@
   else
     bindir = Config::CONFIG['bindir']
     sbindir = Config::CONFIG['sbindir']
-    mandir = Config::CONFIG['mandir']
+    mandir = ENV['PREFIX'] + "/man"
     tmpdirs << Config::CONFIG['bindir']
   end