Changes between Version 16 and Version 17 of howto/SyncingWithSVN


Ignore:
Timestamp:
Jun 18, 2015, 3:37:01 PM (9 years ago)
Author:
rogerpack2005@…
Comment:

prefer HTTPS

Legend:

Unmodified
Added
Removed
Modified
  • howto/SyncingWithSVN

    v16 v17  
    11[wiki:howto <- Back to the HOWTO section]
    22
    3 = How to sync your ports tree using Subversion (over HTTP) =
     3= How to sync your ports tree using Subversion (over HTTP(s)) =
    44
    55 * Audience: end users who cannot use rsync (873/tcp) due to firewalls, proxies, policy, etc.
     
    2626mkdir -p svn.macports.org/trunk/dports
    2727cd svn.macports.org/trunk/dports
     28svn co https://svn.macports.org/repository/macports/trunk/dports/ .
     29}}}
     30If you prefer, the repository is also available via HTTP, which requires less configuration, but is seen as less secure (subject to a man in the middle attack).
     31{{{
    2832svn co http://svn.macports.org/repository/macports/trunk/dports/ .
    29 }}}
    30 If you prefer, the repository is also available via HTTPS, though this will require an extra config step, for automatic updates.
    31 {{{
    32 svn co https://svn.macports.org/repository/macports/trunk/dports/ .
    3333}}}
    3434
     
    4747=== Step 3: '''Configure Subversion''' ===
    4848
    49 First, tell subversion to use your proxy to connect to the server.  This should not be necessary if your initial SVN checkout was from an http or https URL (and the checkout worked), so most people should not have to do this.  If you needed to configure your own ~/.subversion/servers file to be able to do the initial checkout, then you *do* need this step.
     49First, tell subversion to use your proxy to connect to the server.  This should not be necessary if your initial SVN checkout was from the http or https URL's (and the checkout worked), so most people should not have to do this.  If initial checkout failed, you will need this.  If you needed to configure your own ~/.subversion/servers file to be able to do the initial checkout, then you *do* need this step.
    50501. If the $prefix/var/macports/home/.subversion/servers file doesn't exist, create it by copying the corresponding ~/.subversion/servers file from another user to that location.  (SVN automatically creates this file if it doesn't exist, so you probably already have one.)
    51512. Edit the file and set a proxy for hosts at `*.macports.org`.  Different proxy configurations require different sets of options here, but the file is pretty well commented, so it should be easy to figure out what you need.  At a minimum you'll need settings for http-proxy-host and http-proxy-port.
     
    6666}}}
    6767
    68 
    6968== See also ==
    7069