Changes between Version 5 and Version 6 of howto/PortTreeTarball
- Timestamp:
- Dec 30, 2008, 11:19:32 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/PortTreeTarball
v5 v6 8 8 == Introduction == 9 9 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. 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. This document explains how to configure MacPorts to use this tarball to update your local ports tree. 11 11 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 }}} 12 Note: replace "$prefix" with the location of your macports install, which defaults to /opt/local. 33 13 34 14 == Configuration == 35 15 36 As long as you use the default rsync location, there should be no need to change any configuration. 16 Edit $prefix/etc/macports/sources.conf, comment out the rsync entry, and add a new entry as follows (don't forget to replace $prefix): 37 17 38 == TODO == 18 {{{ 19 #rsync://rsync.macports.org/release/ports/ [default] 20 http://www.macports.org/files/ports.tar.gz [default] 21 }}} 39 22 40 == = '''Automatic Install Script''' ===23 == Optional Parts == 41 24 42 It would be nice to have a shell script or installer for this that automates the process. 25 === '''Test Sync''' === 26 Run sync in debug mode and watch for the tarball being used instead of rsync: 27 28 {{{ 29 port -d sync 30 }}} 43 31 44 32 [wiki:howto <- Back to the HOWTO section]