Changes between Version 21 and Version 22 of howto/SyncingWithSVN
- Timestamp:
- Nov 1, 2016, 3:20:33 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/SyncingWithSVN
v21 v22 16 16 using Subversion (over https) for syncing. 17 17 18 Note: replace "$prefix" with the location of your MacPorts install, 19 which defaults to /opt/local. 18 Note: 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. 20 19 21 20 … … 36 35 === Step 1: Checkout Initial Copy === 37 36 {{{ 38 cd $prefix/var/macports/sources37 cd /opt/local/var/macports/sources 39 38 mkdir -p svn.macports.org/trunk/dports 40 39 cd svn.macports.org/trunk/dports … … 52 51 53 52 === Step 2: Configure MacPorts === 54 Edit $prefix/etc/macports/sources.conf to comment out the rsync entry55 and add the "file" entry:56 53 57 Note: don't forget to replace $prefix, so the initial part will start 58 with "!file:///..." (three slashes). 54 Edit `/opt/local/etc/macports/sources.conf` to comment out the `rsync://` entry and add the `file:///` entry: 55 56 Note: if you need to replace `/opt/local` with your custom prefix, make sure the initial "!file:///..." contains three slashes. 59 57 60 58 {{{ 61 59 #rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default] 62 file:// $prefix/var/macports/sources/svn.macports.org/trunk/dports/ [default]60 file://opt/local/var/macports/sources/svn.macports.org/trunk/dports/ [default] 63 61 }}} 64 62 … … 72 70 the initial checkout, then you *do* need this step. 73 71 74 1. If the $prefix/var/macports/home/.subversion/servers file doesn't72 1. If the /opt/local/var/macports/home/.subversion/servers file doesn't 75 73 exist, create it by copying the corresponding ~/.subversion/servers 76 74 file from another user to that location. (SVN automatically creates … … 89 87 accept the certificate then.) 90 88 91 1. `mkdir -p $prefix/var/macports/home/.subversion/auth/svn.ssl.server`89 1. `mkdir -p /opt/local/var/macports/home/.subversion/auth/svn.ssl.server` 92 90 1. As a normal user, run `svn ls https://svn.macports.org/repository/macports/trunk/dports/`. 93 91 When prompted, accept the certificate permanently. … … 95 93 `$HOME/.subversion/auth/svn.ssl.server`. In that directory, find the 96 94 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`. 98 96 99 97 Or, you can use SVN over HTTP (i.e. your initial checkout was from the