Revision
38809
Author
ryandesign@macports.org
Date
2008-07-31 15:58:23 -0700 (Thu, 31 Jul 2008)

Log Message

cotvnc: fix installation for non-root users; closes #15898 (maintainer timeout)

Modified Paths

Diff

Modified: trunk/dports/aqua/cotvnc/Portfile (38808 => 38809)


--- trunk/dports/aqua/cotvnc/Portfile	2008-07-31 22:53:03 UTC (rev 38808)
+++ trunk/dports/aqua/cotvnc/Portfile	2008-07-31 22:58:23 UTC (rev 38809)
@@ -25,10 +25,21 @@
 xcode.destroot.settings	SKIP_INSTALL=NO
 
 # Fix non-root destroot.
-# (this is a workaround for bug radr://5071108).
+# (this is a workaround for bug rdar://5071108).
 pre-destroot {
-	system "chmod -R u+w ${worksrcpath}/build/"
+    fs-traverse dir ${worksrcpath}/build {
+        if {[file isdirectory ${dir}]} {
+            file attributes ${dir} -permissions u+w
+        }
+    }
 }
+post-destroot {
+    fs-traverse dir ${destroot} {
+        if {[file isdirectory ${dir}]} {
+            file attributes ${dir} -permissions u+w
+        }
+    }
+}
 
 livecheck.check	sourceforge
 livecheck.distname	cotvnc Chicken of the VNC