[MacPorts] howto/SyncingWithSVN modified
MacPorts
noreply at macports.org
Tue Nov 1 04:20:33 CET 2016
Page "howto/SyncingWithSVN" was changed by ryandesign
Diff URL: <https://trac.macports.org/wiki/howto/SyncingWithSVN?action=diff&version=22>
Revision 22
Comment: Use /opt/local/ instead of $prefix to match SyncingWithGit
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/SyncingWithSVN
=========================================================================
--- howto/SyncingWithSVN (version: 21)
+++ howto/SyncingWithSVN (version: 22)
@@ -15,8 +15,7 @@
portfiles in MacPorts. The following steps will switch your tree over to
using Subversion (over https) for syncing.
-Note: replace "$prefix" with the location of your MacPorts install,
-which defaults to /opt/local.
+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.
== Installation ==
@@ -35,7 +34,7 @@
=== Step 1: Checkout Initial Copy ===
{{{
-cd $prefix/var/macports/sources
+cd /opt/local/var/macports/sources
mkdir -p svn.macports.org/trunk/dports
cd svn.macports.org/trunk/dports
svn co https://svn.macports.org/repository/macports/trunk/dports/ .
@@ -51,15 +50,14 @@
== Configuration ==
=== Step 2: Configure MacPorts ===
-Edit $prefix/etc/macports/sources.conf to comment out the rsync entry
-and add the "file" entry:
-Note: don't forget to replace $prefix, so the initial part will start
-with "!file:///..." (three slashes).
+Edit `/opt/local/etc/macports/sources.conf` to comment out the `rsync://` entry and add the `file:///` entry:
+
+Note: if you need to replace `/opt/local` with your custom prefix, make sure the initial "!file:///..." contains three slashes.
{{{
#rsync://rsync.macports.org/macports/release/tarballs/ports.tar [default]
-file://$prefix/var/macports/sources/svn.macports.org/trunk/dports/ [default]
+file://opt/local/var/macports/sources/svn.macports.org/trunk/dports/ [default]
}}}
=== Step 3: Configure Subversion ===
@@ -71,7 +69,7 @@
needed to configure your own ~/.subversion/servers file to be able to do
the initial checkout, then you *do* need this step.
-1. If the $prefix/var/macports/home/.subversion/servers file doesn't
+1. If the /opt/local/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.)
@@ -88,13 +86,13 @@
the `--non-interactive` flag, so you won't have the opportunity to
accept the certificate then.)
-1. `mkdir -p $prefix/var/macports/home/.subversion/auth/svn.ssl.server`
+1. `mkdir -p /opt/local/var/macports/home/.subversion/auth/svn.ssl.server`
1. As a normal user, run `svn ls https://svn.macports.org/repository/macports/trunk/dports/`.
When prompted, accept the certificate permanently.
1. SVN will store the certificate in a file in the directory
`$HOME/.subversion/auth/svn.ssl.server`. In that directory, find the
file that contains the string "`https://svn.macports.org`" and copy
- it into `$prefix/var/macports/home/.subversion/auth/svn.ssl.server`.
+ it into `/opt/local/var/macports/home/.subversion/auth/svn.ssl.server`.
Or, you can use SVN over HTTP (i.e. your initial checkout was from the
!http:// URL), in which case you don't need to worry about the
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/howto/SyncingWithSVN>
MacPorts <https://www.macports.org/>
Ports system for macOS
This is an automated message. Someone added your email address to be
notified of changes on 'howto/SyncingWithSVN' page.
If it was not you, please report to admin at macports.org.
More information about the macports-changes
mailing list