[72308] trunk/dports/java/maven2/Portfile

blair at macports.org blair at macports.org
Sun Oct 10 07:21:11 PDT 2010


Revision: 72308
          http://trac.macports.org/changeset/72308
Author:   blair at macports.org
Date:     2010-10-10 07:21:09 -0700 (Sun, 10 Oct 2010)
Log Message:
-----------
Reduce permissions on some files and directories.  Partially resolves #25656.

Modified Paths:
--------------
    trunk/dports/java/maven2/Portfile

Modified: trunk/dports/java/maven2/Portfile
===================================================================
--- trunk/dports/java/maven2/Portfile	2010-10-10 13:00:53 UTC (rev 72307)
+++ trunk/dports/java/maven2/Portfile	2010-10-10 14:21:09 UTC (rev 72308)
@@ -5,7 +5,7 @@
 
 name            maven2
 version         2.2.1
-revision        1
+revision        2
 
 categories      java devel
 maintainers     kickstyle.net:gk5885
@@ -66,6 +66,13 @@
                         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}/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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101010/bbe50efa/attachment.html>


More information about the macports-changes mailing list