Changes between Version 23 and Version 24 of howto/SyncingWithSVN


Ignore:
Timestamp:
Nov 1, 2016, 3:42:43 AM (7 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Remove references to HTTP and require HTTPS

Legend:

Unmodified
Added
Removed
Modified
  • howto/SyncingWithSVN

    v23 v24  
    11[wiki:howto <- Back to the HOWTO section]
    22
    3 = How to sync your ports tree using Subversion (over HTTP(s)) =
     3= How to sync your ports tree using Subversion over HTTPS
    44
    55- Audience: end users who cannot use rsync (873/tcp) due to firewalls,
     
    1111== Introduction ==
    1212
    13 Some people live and work behind a firewall or proxy that blocks or
    14 otherwise breaks rsync, which is the primary means of getting updated
    15 portfiles in MacPorts. The following steps will switch your tree over to
    16 using Subversion (over https) for syncing.
     13Some people live and work behind a firewall or proxy that blocks or otherwise breaks rsync, which is the primary means of getting updated Portfiles in MacPorts. The following steps will switch your tree over to using Subversion over HTTPS for syncing.
    1714
    1815Note: if you are using a custom prefix, you will have to replace the default of `/opt/local` with the location of your MacPorts install in the instructions below.
     
    4037svn co https://svn.macports.org/repository/macports/trunk/dports/ .
    4138}}}
    42 If you prefer, the repository is also available via HTTP, which requires
    43 less configuration, but is seen as less secure (subject to a man in the
    44 middle attack).
    45 {{{
    46 svn co http://svn.macports.org/repository/macports/trunk/dports/ .
    47 }}}
    4839
    4940
     
    5849{{{
    5950#rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]
    60 file://opt/local/var/macports/sources/svn.macports.org/trunk/dports/ [default]
     51file:///opt/local/var/macports/sources/svn.macports.org/trunk/dports/ [default]
    6152}}}
    6253
    6354=== Step 3: Configure Subversion ===
    6455
    65 First, tell subversion to use your proxy to connect to the server.  This
    66 should not be necessary if your initial SVN checkout was from the http
    67 or https URL's (and the checkout worked), so most people should not have
     56First, tell Subversion to use your proxy to connect to the server.  This
     57should not be necessary if your initial Subversion checkout worked, so most people should not have
    6858to do this.  If initial checkout failed, you will need this.  If you
    6959needed to configure your own ~/.subversion/servers file to be able to do
     
    72621. If the /opt/local/var/macports/home/.subversion/servers file doesn't
    7363   exist, create it by copying the corresponding ~/.subversion/servers
    74    file from another user to that location.  (SVN automatically creates
     64   file from another user to that location.  (Subversion automatically creates
    7565   this file if it doesn't exist, so you probably already have one.)
    76661. Edit the file and set a proxy for hosts at `*.macports.org`.
     
    8070   http-proxy-host and http-proxy-port.
    8171
    82 Finally, if you want to use SVN over HTTPS to access the repository
    83 (i.e. if your initial SVN checkout was the !https:// URL), you'll need to
    84 tell SVN to trust the MacPorts signature.  (SVN doesn't trust the
    85 authority that issued it, and `port sync` below invokes `svn up` with
    86 the `--non-interactive` flag, so you won't have the opportunity to
    87 accept the certificate then.)
     72Finally, if you're using the copy of `svn` that comes bundled with OS X 10.7 or later, you'll need to tell Subversion to trust the MacPorts signature.  (Apple's `svn` doesn't trust any SSL certificates, and `port sync` below invokes `svn up` with the `--non-interactive` flag, so you won't have the opportunity to accept the certificate then.)
    8873
    89741. `mkdir -p /opt/local/var/macports/home/.subversion/auth/svn.ssl.server`
    90751. As a normal user, run `svn ls https://svn.macports.org/repository/macports/trunk/dports/`.
    9176   When prompted, accept the certificate permanently.
    92 1. SVN will store the certificate in a file in the directory
     771. Subversion will store the certificate in a file in the directory
    9378   `$HOME/.subversion/auth/svn.ssl.server`.  In that directory, find the
    9479   file that contains the string "`https://svn.macports.org`" and copy
    9580   it into `/opt/local/var/macports/home/.subversion/auth/svn.ssl.server`.
    96 
    97 Or, you can use SVN over HTTP (i.e. your initial checkout was from the
    98 !http:// URL), in which case you don't need to worry about the
    99 certificate.
    10081
    10182=== Step 4: Sync ===
     
    11192== See also ==
    11293
    113 Additional topics related to MacPorts and SVN:
     94Additional topics related to MacPorts and Subversion:
    11495
    11596- Creating and testing ports not yet submitted to MacPorts: