Changes between Initial Version and Version 1 of howto/SyncingWithSVN


Ignore:
Timestamp:
Apr 7, 2008, 9:00:02 PM (16 years ago)
Author:
wsiegrist@…
Comment:

new howto for using svn to sync ports tree

Legend:

Unmodified
Added
Removed
Modified
  • howto/SyncingWithSVN

    v1 v1  
     1[wiki:howto <- Back to the HOWTO section]
     2
     3= How to sync your ports tree using Subversion (over HTTP) =
     4
     5 * Audience: end users who cannot use RSync (873/tcp) due to firewalls, proxies, policy, etc.
     6 * Requires: MacPorts
     7
     8== Introduction ==
     9
     10Some people live and work behind a firewall or proxy that block or otherwise break rsync, which is the primary means of getting updated portfiles in MacPorts. The following steps will switch your tree over to using subversion (over http) for syncing.
     11
     12Note: replace "$prefix" with the location of your macports install, which defaults to /opt/local.
     13
     14== Installation ==
     15
     16=== Step 1: '''Checkout Initial Copy''' ===
     17{{{
     18cd $prefix/var/macports/sources
     19mkdir -p svn.macports.org/trunk/dports
     20svn co http://svn.macports.org/trunk/dports/ .
     21}}}
     22
     23== Configuration ==
     24
     25=== Step 2: '''Configure MacPorts''' ===
     26Edit $prefix/etc/macports/sources.conf to comment out the rsync entry and add the "file" entry:
     27
     28Note: dont forget to replace $prefix
     29
     30{{{
     31#rsync://rsync.macports.org/release/ports/
     32file:///$prefix/var/macports/sources/svn.macports.org/trunk/dports/
     33}}}
     34
     35
     36
     37== Optional Parts ==
     38
     39=== Step 3: '''Test Sync''' ===
     40Run sync in debug mode and watch for "svn update" instead of "rsync" being used:
     41
     42{{{
     43port -d sync
     44}}}
     45
     46
     47[wiki:howto <- Back to the HOWTO section]