wiki:howto/PortTreeTarball

Version 6 (modified by jmroot (Joshua Root), 15 years ago) (diff)

Update for 1.7 - tarball sync is now directly supported

<- Back to the HOWTO section

Portfile Sync via Daily Tarball

  • Audience: Users who can't use rsync or svn
  • Requires: MacPorts

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. This document explains how to configure MacPorts to use this tarball to update your local ports tree.

Note: replace "$prefix" with the location of your macports install, which defaults to /opt/local.

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):

#rsync://rsync.macports.org/release/ports/ [default]
http://www.macports.org/files/ports.tar.gz [default]

Optional Parts

Test Sync

Run sync in debug mode and watch for the tarball being used instead of rsync:

port -d sync 

<- Back to the HOWTO section