[69021] contrib/mpab/mpab-functions

jmr at macports.org jmr at macports.org
Sun Jun 20 16:00:06 PDT 2010


Revision: 69021
          http://trac.macports.org/changeset/69021
Author:   jmr at macports.org
Date:     2010-06-20 16:00:05 -0700 (Sun, 20 Jun 2010)
Log Message:
-----------
mpab: add (currently useless) separate lists of files needed per OS version, and run portindex after installing base

Modified Paths:
--------------
    contrib/mpab/mpab-functions

Modified: contrib/mpab/mpab-functions
===================================================================
--- contrib/mpab/mpab-functions	2010-06-20 22:34:04 UTC (rev 69020)
+++ contrib/mpab/mpab-functions	2010-06-20 23:00:05 UTC (rev 69021)
@@ -115,8 +115,19 @@
    # Paths to create within the chroot
    pathsToCreate="private/etc private/var/folders private/var/log private/var/spool private/var/run private/var/tmp private/var/db/dyld private/tmp"
 
+   os_major=$(uname -r | sed 's/\..*//')
    # Paths to copy to the chroot
-   pathsToCopy="private/etc/bashrc private/etc/group private/etc/hosts private/etc/pam.d private/etc/passwd private/etc/profile private/etc/shells private/var/root bin sbin etc tmp var usr/bin usr/include usr/lib usr/libexec usr/sbin usr/share usr/X11 usr/X11R6 Developer/Headers Developer/Library Developer/Makefiles Developer/Platforms Developer/Private Developer/SDKs Developer/Tools Developer/usr System/Library/CoreServices System/Library/Filesystems System/Library/Frameworks System/Library/Java System/Library/Perl System/Library/PrivateFrameworks System/Library/Tcl Developer/Applications/Xcode.app"
+   if [[ $os_major -eq 8 ]]; then
+      # XXX these are just copied from the leopard list and so are probably wrong for tiger
+      pathsToCopy="private/etc/bashrc private/etc/group private/etc/hosts private/etc/pam.d private/etc/passwd private/etc/profile private/etc/shells private/var/root bin sbin etc tmp var usr/bin usr/include usr/lib usr/libexec usr/sbin usr/share usr/X11 usr/X11R6 Developer/Headers Developer/Library Developer/Makefiles Developer/Platforms Developer/Private Developer/SDKs Developer/Tools Developer/usr System/Library/CoreServices System/Library/Filesystems System/Library/Frameworks System/Library/Java System/Library/Perl System/Library/PrivateFrameworks System/Library/Tcl Developer/Applications/Xcode.app"
+   fi
+   if [[ $os_major -eq 9 ]]; then
+      pathsToCopy="private/etc/bashrc private/etc/group private/etc/hosts private/etc/pam.d private/etc/passwd private/etc/profile private/etc/shells private/var/root bin sbin etc tmp var usr/bin usr/include usr/lib usr/libexec usr/sbin usr/share usr/X11 usr/X11R6 Developer/Headers Developer/Library Developer/Makefiles Developer/Platforms Developer/Private Developer/SDKs Developer/Tools Developer/usr System/Library/CoreServices System/Library/Filesystems System/Library/Frameworks System/Library/Java System/Library/Perl System/Library/PrivateFrameworks System/Library/Tcl Developer/Applications/Xcode.app"
+   fi
+   # update this for future releases
+   if [[ $os_major -ge 10 ]]; then
+      pathsToCopy="private/etc/bashrc private/etc/group private/etc/hosts private/etc/pam.d private/etc/passwd private/etc/profile private/etc/shells private/var/root bin sbin etc tmp var usr/bin usr/include usr/lib usr/libexec usr/sbin usr/share usr/X11 usr/X11R6 Developer/Headers Developer/Library Developer/Makefiles Developer/Platforms Developer/Private Developer/SDKs Developer/Tools Developer/usr System/Library/CoreServices System/Library/Filesystems System/Library/Frameworks System/Library/Java System/Library/Perl System/Library/PrivateFrameworks System/Library/Tcl Developer/Applications/Xcode.app"
+   fi
 
    # Size of the disk images (hdiutil nomenclature)
    imageSize="32g"
@@ -234,6 +245,8 @@
       mv ${chrootPath}/opt/local/etc/macports/macports.conf.new ${chrootPath}/opt/local/etc/macports/macports.conf
    fi
 
+   chrootExec recreateportindex
+
    return 0
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100620/10b035bf/attachment.html>


More information about the macports-changes mailing list