Changes between Version 23 and Version 24 of howto/SyncingWithSVN
- Timestamp:
- Nov 1, 2016, 3:42:43 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/SyncingWithSVN
v23 v24 1 1 [wiki:howto <- Back to the HOWTO section] 2 2 3 = How to sync your ports tree using Subversion (over HTTP(s)) =3 = How to sync your ports tree using Subversion over HTTPS 4 4 5 5 - Audience: end users who cannot use rsync (873/tcp) due to firewalls, … … 11 11 == Introduction == 12 12 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. 13 Some 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. 17 14 18 15 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. … … 40 37 svn co https://svn.macports.org/repository/macports/trunk/dports/ . 41 38 }}} 42 If you prefer, the repository is also available via HTTP, which requires43 less configuration, but is seen as less secure (subject to a man in the44 middle attack).45 {{{46 svn co http://svn.macports.org/repository/macports/trunk/dports/ .47 }}}48 39 49 40 … … 58 49 {{{ 59 50 #rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default] 60 file:// opt/local/var/macports/sources/svn.macports.org/trunk/dports/ [default]51 file:///opt/local/var/macports/sources/svn.macports.org/trunk/dports/ [default] 61 52 }}} 62 53 63 54 === Step 3: Configure Subversion === 64 55 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 56 First, tell Subversion to use your proxy to connect to the server. This 57 should not be necessary if your initial Subversion checkout worked, so most people should not have 68 58 to do this. If initial checkout failed, you will need this. If you 69 59 needed to configure your own ~/.subversion/servers file to be able to do … … 72 62 1. If the /opt/local/var/macports/home/.subversion/servers file doesn't 73 63 exist, create it by copying the corresponding ~/.subversion/servers 74 file from another user to that location. (S VNautomatically creates64 file from another user to that location. (Subversion automatically creates 75 65 this file if it doesn't exist, so you probably already have one.) 76 66 1. Edit the file and set a proxy for hosts at `*.macports.org`. … … 80 70 http-proxy-host and http-proxy-port. 81 71 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.) 72 Finally, 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.) 88 73 89 74 1. `mkdir -p /opt/local/var/macports/home/.subversion/auth/svn.ssl.server` 90 75 1. As a normal user, run `svn ls https://svn.macports.org/repository/macports/trunk/dports/`. 91 76 When prompted, accept the certificate permanently. 92 1. S VNwill store the certificate in a file in the directory77 1. Subversion will store the certificate in a file in the directory 93 78 `$HOME/.subversion/auth/svn.ssl.server`. In that directory, find the 94 79 file that contains the string "`https://svn.macports.org`" and copy 95 80 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 the98 !http:// URL), in which case you don't need to worry about the99 certificate.100 81 101 82 === Step 4: Sync === … … 111 92 == See also == 112 93 113 Additional topics related to MacPorts and S VN:94 Additional topics related to MacPorts and Subversion: 114 95 115 96 - Creating and testing ports not yet submitted to MacPorts: