Changes between Version 21 and Version 22 of howto/SyncingWithSVN


Ignore:
Timestamp:
Nov 1, 2016, 3:20:33 AM (8 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Use /opt/local/ instead of $prefix to match SyncingWithGit

Legend:

Unmodified
Added
Removed
Modified
  • howto/SyncingWithSVN

    v21 v22  
    1616using Subversion (over https) for syncing.
    1717
    18 Note: replace "$prefix" with the location of your MacPorts install,
    19 which defaults to /opt/local.
     18Note: 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.
    2019
    2120
     
    3635=== Step 1: Checkout Initial Copy ===
    3736{{{
    38 cd $prefix/var/macports/sources
     37cd /opt/local/var/macports/sources
    3938mkdir -p svn.macports.org/trunk/dports
    4039cd svn.macports.org/trunk/dports
     
    5251
    5352=== Step 2: Configure MacPorts ===
    54 Edit $prefix/etc/macports/sources.conf to comment out the rsync entry
    55 and add the "file" entry:
    5653
    57 Note: don't forget to replace $prefix, so the initial part will start
    58 with "!file:///..." (three slashes).
     54Edit `/opt/local/etc/macports/sources.conf` to comment out the `rsync://` entry and add the `file:///` entry:
     55
     56Note: if you need to replace `/opt/local` with your custom prefix, make sure the initial "!file:///..." contains three slashes.
    5957
    6058{{{
    6159#rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]
    62 file://$prefix/var/macports/sources/svn.macports.org/trunk/dports/ [default]
     60file://opt/local/var/macports/sources/svn.macports.org/trunk/dports/ [default]
    6361}}}
    6462
     
    7270the initial checkout, then you *do* need this step.
    7371
    74 1. If the $prefix/var/macports/home/.subversion/servers file doesn't
     721. If the /opt/local/var/macports/home/.subversion/servers file doesn't
    7573   exist, create it by copying the corresponding ~/.subversion/servers
    7674   file from another user to that location.  (SVN automatically creates
     
    8987accept the certificate then.)
    9088
    91 1. `mkdir -p $prefix/var/macports/home/.subversion/auth/svn.ssl.server`
     891. `mkdir -p /opt/local/var/macports/home/.subversion/auth/svn.ssl.server`
    92901. As a normal user, run `svn ls https://svn.macports.org/repository/macports/trunk/dports/`.
    9391   When prompted, accept the certificate permanently.
     
    9593   `$HOME/.subversion/auth/svn.ssl.server`.  In that directory, find the
    9694   file that contains the string "`https://svn.macports.org`" and copy
    97    it into `$prefix/var/macports/home/.subversion/auth/svn.ssl.server`.
     95   it into `/opt/local/var/macports/home/.subversion/auth/svn.ssl.server`.
    9896
    9997Or, you can use SVN over HTTP (i.e. your initial checkout was from the