[140698] trunk/dports/archivers/p7zip/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Wed Sep 30 05:43:51 PDT 2015


Revision: 140698
          https://trac.macports.org/changeset/140698
Author:   mcalhoun at macports.org
Date:     2015-09-30 05:43:50 -0700 (Wed, 30 Sep 2015)
Log Message:
-----------
p7zip: prevent permission errors when not installing as root

Modified Paths:
--------------
    trunk/dports/archivers/p7zip/Portfile

Modified: trunk/dports/archivers/p7zip/Portfile
===================================================================
--- trunk/dports/archivers/p7zip/Portfile	2015-09-30 12:05:36 UTC (rev 140697)
+++ trunk/dports/archivers/p7zip/Portfile	2015-09-30 12:43:50 UTC (rev 140698)
@@ -4,6 +4,7 @@
 
 name            p7zip
 version         9.38.1
+revision        1
 categories      archivers
 # contains unrar code which has a restrictive license
 license         LGPL-2.1+ Restrictive/Distributable
@@ -27,6 +28,14 @@
 
 variant universal {}
 
+post-patch {
+    # if not root, installing with restricted permissions causes errors
+    #     when attempting to remove work directory
+    # see http://www.linuxfromscratch.org/blfs/view/svn/general/p7zip.html
+    reinplace "s|chmod 444|chmod 644|g" ${worksrcpath}/install.sh
+    reinplace "s|chmod 555|chmod 755|g" ${worksrcpath}/install.sh
+}
+
 configure {
     copy -force ${worksrcpath}/makefile.macosx_32bits ${worksrcpath}/makefile.machine
     reinplace "s|^CXX=c++|CXX=${configure.cxx}|g" \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150930/1f6c6be6/attachment.html>


More information about the macports-changes mailing list