[72310] trunk/dports/java/maven3/Portfile
blair at macports.org
blair at macports.org
Sun Oct 10 07:29:53 PDT 2010
Revision: 72310
http://trac.macports.org/changeset/72310
Author: blair at macports.org
Date: 2010-10-10 07:29:51 -0700 (Sun, 10 Oct 2010)
Log Message:
-----------
Reduce permissions on some files and directories. Partially resolves #25656.
Modified Paths:
--------------
trunk/dports/java/maven3/Portfile
Modified: trunk/dports/java/maven3/Portfile
===================================================================
--- trunk/dports/java/maven3/Portfile 2010-10-10 14:25:58 UTC (rev 72309)
+++ trunk/dports/java/maven3/Portfile 2010-10-10 14:29:51 UTC (rev 72310)
@@ -5,6 +5,7 @@
name maven3
version 3.0
+revision 1
categories java devel
maintainers blair kickstyle.net:gk5885
@@ -66,6 +67,16 @@
file attributes ${destroot}${prefix}/share/java/${name}/bin/$f -permissions +x
}
}
+
+ # Reduce the permissions on the distribution files.
+ file attributes ${destroot}${prefix}/share/java/${name}/conf -permissions 0755
+ file attributes ${destroot}${prefix}/share/java/${name}/conf/settings.xml -permissions 0644
+ foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/boot *.jar] {
+ file attributes $f -permissions 0644
+ }
+ foreach f [glob -directory ${destroot}${prefix}/share/java/${name}/lib *.jar] {
+ file attributes $f -permissions 0644
+ }
# Symlink maven into the bin directory
system "cd ${destroot}${prefix}/bin && ln -s ../share/java/${name}/bin/mvn mvn3"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101010/0e8feaa5/attachment.html>
More information about the macports-changes
mailing list