Ticket #5065: destroot.patch
File destroot.patch, 1.2 KB (added by yves@…, 19 years ago) |
---|
-
src/port1.0/portdestroot.tcl
old new 105 105 106 106 proc destroot_finish {args} { 107 107 global UI_PREFIX destroot prefix portname startupitem.create destroot::oldmask 108 global os.platform os.version 108 global os.platform os.version x11prefix 109 109 110 110 # Create startup-scripts/items 111 111 if {[tbool startupitem.create]} { 112 112 package require portstartupitem 1.0 113 113 startupitem_create 114 114 } 115 116 # Check for X11/app-defaults directory and move it if needed 117 if {[file exists ${destroot}${x11prefix}/lib/X11/app-defaults]} { 118 if {[file type ${x11prefix}/lib/X11] == "link" } { 119 xinstall -d ${destroot}/etc/X11 120 file rename -force ${destroot}${x11prefix}/lib/X11/app-defaults ${destroot}/etc/X11 121 } 122 } elseif {[file exists ${destroot}/etc/X11/app-defaults]} { 123 if {[file type ${x11prefix}/lib/X11] == "directory" } { 124 xinstall -d ${destroot}${x11prefix}/lib/X11 125 file rename -force ${destroot}/etc/X11/app-defaults ${destroot}${x11prefix}/lib/X11 126 } 127 } 115 128 116 129 # Prune empty directories in ${destroot} 117 130 set exclude_dirs [list]