Changes between Version 5 and Version 6 of howto/PortTreeTarball


Ignore:
Timestamp:
Dec 30, 2008, 11:19:32 AM (16 years ago)
Author:
jmroot (Joshua Root)
Comment:

Update for 1.7 - tarball sync is now directly supported

Legend:

Unmodified
Added
Removed
Modified
  • howto/PortTreeTarball

    v5 v6  
    88== Introduction ==
    99
    10 Some networks and proxies prevent or break the use of rsync or svn via http. For people on these networks, getting an updated port tree can be difficult. The rsync server makes a tarball daily and stores it on www.macports.org.
     10Some networks and proxies prevent or break the use of rsync or svn via http. For people on these networks, getting an updated port tree can be difficult. The rsync server makes a tarball daily and stores it on www.macports.org. This document explains how to configure MacPorts to use this tarball to update your local ports tree.
    1111
    12 == Installation ==
    13 
    14 === Step 1: '''Go to the port tree directory''' ===
    15 
    16 {{{
    17 cd ${prefix}/var/macports/sources/rsync.macports.org/release/
    18 }}}
    19 
    20 === Step 2: '''Download Tarball''' ===
    21 
    22 Download the tarball from [http://www.macports.org/files/ports.tar.gz ports.tar.gz]:
    23 
    24 {{{
    25 sudo curl -LO http://www.macports.org/files/ports.tar.gz
    26 }}}
    27 
    28 === Step 3: '''Unpack the tarball''' ===
    29 
    30 {{{
    31 sudo tar zxvf ports.tar.gz
    32 }}}
     12Note: replace "$prefix" with the location of your macports install, which defaults to /opt/local.
    3313
    3414== Configuration ==
    3515
    36 As long as you use the default rsync location, there should be no need to change any configuration.
     16Edit $prefix/etc/macports/sources.conf, comment out the rsync entry, and add a new entry as follows (don't forget to replace $prefix):
    3717
    38 == TODO ==
     18{{{
     19#rsync://rsync.macports.org/release/ports/ [default]
     20http://www.macports.org/files/ports.tar.gz [default]
     21}}}
    3922
    40 === '''Automatic Install Script''' ===
     23== Optional Parts ==
    4124
    42 It would be nice to have a shell script or installer for this that automates the process.
     25=== '''Test Sync''' ===
     26Run sync in debug mode and watch for the tarball being used instead of rsync:
     27
     28{{{
     29port -d sync
     30}}}
    4331
    4432[wiki:howto <- Back to the HOWTO section]