[MacPorts] howto/PortTreeTarball modified

MacPorts noreply at macports.org
Tue Dec 30 03:19:33 PST 2008


Changed page "howto/PortTreeTarball" by jmr at macports.org from 123.243.246.165*
Page URL: <http://trac.macports.org/wiki/howto/PortTreeTarball>
Diff URL: <http://trac.macports.org/wiki/howto/PortTreeTarball?action=diff&version=6>
Revision 6
Comment: Update for 1.7 - tarball sync is now directly supported

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/PortTreeTarball
=========================================================================
--- howto/PortTreeTarball (version: 5)
+++ howto/PortTreeTarball (version: 6)
@@ -7,38 +7,26 @@
 
 == Introduction ==
 
-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. 
+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.
 
-== Installation ==
-
-=== Step 1: '''Go to the port tree directory''' ===
-
-{{{
-cd ${prefix}/var/macports/sources/rsync.macports.org/release/
-}}}
-
-=== Step 2: '''Download Tarball''' ===
-
-Download the tarball from [http://www.macports.org/files/ports.tar.gz ports.tar.gz]:
-
-{{{
-sudo curl -LO http://www.macports.org/files/ports.tar.gz
-}}}
-
-=== Step 3: '''Unpack the tarball''' ===
-
-{{{
-sudo tar zxvf ports.tar.gz
-}}}
+Note: replace "$prefix" with the location of your macports install, which defaults to /opt/local.
 
 == Configuration ==
 
-As long as you use the default rsync location, there should be no need to change any configuration. 
+Edit $prefix/etc/macports/sources.conf, comment out the rsync entry, and add a new entry as follows (don't forget to replace $prefix):
 
-== TODO ==
+{{{
+#rsync://rsync.macports.org/release/ports/ [default]
+http://www.macports.org/files/ports.tar.gz [default]
+}}}
 
-=== '''Automatic Install Script''' ===
+== Optional Parts ==
 
-It would be nice to have a shell script or installer for this that automates the process. 
+=== '''Test Sync''' ===
+Run sync in debug mode and watch for the tarball being used instead of rsync:
+
+{{{
+port -d sync 
+}}}
 
 [wiki:howto <- Back to the HOWTO section]

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on howto/PortTreeTarball. If it was not you, please
report to .


More information about the macports-changes mailing list