Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
portssubversionprimer [2017/12/13 16:50] – JohnMarkGurneyportssubversionprimer [2022/10/29 23:45] (current) – Update ports-secteam links KubilayKocak
Line 1: Line 1:
 ====== Subversion for FreeBSD Ports ====== ====== Subversion for FreeBSD Ports ======
 +
 +This page is now historical, as the ports repository was converted from SVN to Git.
  
 ====== Introduction ====== ====== Introduction ======
Line 12: Line 14:
  
 <code> <code>
-% svn checkout svn+ssh://svn.freebsd.org/ports/head /usr/ports+% svn checkout svn+ssh://repo.freebsd.org/ports/head /usr/ports
 </code> </code>
  
-If your %%FreeBSD%% login name is different from your login name on your local machine, you must either include it in the URL (for example ''%%svn+ssh://jarjar@svn.freebsd.org/ports/head%%''), or add an entry to your ''%%~/.ssh/config%%'' in the form:+If your %%FreeBSD%% login name is different from your login name on your local machine, you must either include it in the URL (for example ''%%svn+ssh://jarjar@repo.freebsd.org/ports/head%%''), or add an entry to your ''%%~/.ssh/config%%'' in the form:
  
 <code> <code>
-Host svn.freebsd.org+Host repo.freebsd.org
  User jarjar  User jarjar
 </code> </code>
  
-In ''%%svn+ssh://svn.freebsd.org/base%%'', base refers to the source tree. Similarly, ports refers to the ports tree, and so on. These are separate repositories with their own change number sequences, access controls and commit mail.+In ''%%svn+ssh://repo.freebsd.org/base%%'', base refers to the source tree. Similarly, ports refers to the ports tree, and so on. These are separate repositories with their own change number sequences, access controls and commit mail.
  
 For the ports repository, head refers to the current ports tree. For example, ''%%head/www/firefox%%'' is what would go into ''%%/usr/ports/www/firefox%%'' in the ports tree. Some other key locations are: For the ports repository, head refers to the current ports tree. For example, ''%%head/www/firefox%%'' is what would go into ''%%/usr/ports/www/firefox%%'' in the ports tree. Some other key locations are:
Line 49: Line 51:
  
 <code> <code>
-% svn checkout svn+ssh://svn.freebsd.org/ports/head /usr/ports+% svn checkout svn+ssh://repo.freebsd.org/ports/head /usr/ports
 </code> </code>
  
Line 55: Line 57:
  
 <code> <code>
-% svn co --depth=empty svn+ssh://svn.freebsd.org/ports /usr/ports+% svn co --depth=empty svn+ssh://repo.freebsd.org/ports /usr/ports
 % cd /usr/ports % cd /usr/ports
 % svn up head % svn up head
Line 66: Line 68:
 **Not secure** **Not secure**
  
-The data transferred by these commands are unverified.  If you do not have a secure and safe connection to svn.freebsd.org, your computer(s) maybe compromised by running code obtained with them.  Install security/ca_root_nss port and use https for secure transfers.+The data transferred by these commands are unverified.  If you do not have a secure and safe connection to repo.freebsd.org, your computer(s) maybe compromised by running code obtained with them.  Install security/ca_root_nss port and use https for secure transfers.
  
 It is possible to anonymously check out the %%FreeBSD%% repository with Subversion. This will give access to a read-only tree that can be updated, but not committed to. To do this, use one of the following commands: It is possible to anonymously check out the %%FreeBSD%% repository with Subversion. This will give access to a read-only tree that can be updated, but not committed to. To do this, use one of the following commands:
  
 <code> <code>
-% svn co svn://svn.freebsd.org/ports/head /usr/ports 
 % svn co http://svn.freebsd.org/ports/head /usr/ports % svn co http://svn.freebsd.org/ports/head /usr/ports
 </code> </code>
Line 80: Line 81:
  
 <code> <code>
-% svn checkout --depth empty svn+ssh://svn.freebsd.org/ports/head /usr/ports+% svn checkout --depth empty svn+ssh://repo.freebsd.org/ports/head /usr/ports
 % cd /usr/ports % cd /usr/ports
 % svn update --set-depth files % svn update --set-depth files
Line 275: Line 276:
  
 <code> <code>
-% svn co svn+ssh://svn.freebsd.org/ports/head/category +% svn co svn+ssh://repo.freebsd.org/ports/head/category 
-% svn cp 'svn+ssh://svn.freebsd.org/ports/head/category/port@{YYYY-MM-DD}' port+% svn cp 'svn+ssh://repo.freebsd.org/ports/head/category/port@{YYYY-MM-DD}' port
 </code> </code>
  
Line 372: Line 373:
  
 <code> <code>
-% svn merge -r179454:179453 svn+ssh://svn.freebsd.org/ports/head/UPDATING+% svn merge -r179454:179453 svn+ssh://repo.freebsd.org/ports/head/UPDATING
 </code> </code>
  
Line 378: Line 379:
  
 <code> <code>
-% svn copy svn+ssh://svn.freebsd.org/ports/head/UPDATING@179454+% svn copy svn+ssh://repo.freebsd.org/ports/head/UPDATING@179454
 % svn commit % svn commit
 </code> </code>
Line 385: Line 386:
  
 <code> <code>
-% svn copy svn+ssh://svn.freebsd.org/ports/head/UPDATING@179454 svn+ssh://svn.freebsd.org/ports/head/UPDATING+% svn copy svn+ssh://repo.freebsd.org/ports/head/UPDATING@179454 svn+ssh://repo.freebsd.org/ports/head/UPDATING
 </code> </code>
  
Line 394: Line 395:
 ==== Quarterly Branch ==== ==== Quarterly Branch ====
  
-Commits that are [[Quarterly_Branch|Quarterly Branch]] (MFH) candidates should be merged to their respective branch after being committed to HEAD.+Commits that are [[Ports/QuarterlyBranch|quarterly branch]] (MFH) candidates should be merged to their respective branch after being committed to HEAD.
  
 The process is as follows: The process is as follows:
  
   - **Commit** to HEAD, adding ''%%MFH: XXXXQN%%'' and ''%%Security: CVE-YYYY-NNNN%%'' in the commit log message body   - **Commit** to HEAD, adding ''%%MFH: XXXXQN%%'' and ''%%Security: CVE-YYYY-NNNN%%'' in the commit log message body
-    * Adding ''%%MFH: XXXXQN%%'' automatically sends a notification email to [[ports-secteam]] +    * Adding ''%%MFH: XXXXQN%%'' automatically sends a notification email to [[PortsSecteam|ports-secteam]] 
-  - **Check** for Approval. If the change has [[ports-secteam#Blanket_Approval|Blanket Approval]], **go to Step 4.**+  - **Check** for Approval. If the change has Blanket Approval((Approvals are no longer necessary)), **go to Step 4.**
   - **Wait** for ports-secteam to approve the MFH request they received in Step 1   - **Wait** for ports-secteam to approve the MFH request they received in Step 1
     - If you forgot to put **MFH: XXXXQN** in the commit message:     - If you forgot to put **MFH: XXXXQN** in the commit message:
-      * Forward the mailing list commit email to ports-secteam@ asking them for approval+      * Forward the mailing list commit email to [[PortsSecteam#contact|ports-secteam]] asking them for approval
   - **Merge** the commit with the correct //Approved by// line (see below), using the ''%%Tools/scripts/mfh%%'' script:   - **Merge** the commit with the correct //Approved by// line (see below), using the ''%%Tools/scripts/mfh%%'' script:
     * If the change has Blanket Approval (See Step 2), Add ''%%Approved by: ports-secteam (blanket)%%'' to the commit log message body     * If the change has Blanket Approval (See Step 2), Add ''%%Approved by: ports-secteam (blanket)%%'' to the commit log message body
Line 417: Line 418:
 <code> <code>
 % cd /usr/ports % cd /usr/ports
-% svn switch svn+ssh://svn.FreeBSD.org/ports/branches/RELENG_8_4_1+% svn switch svn+ssh://repo.FreeBSD.org/ports/branches/RELENG_8_4_1
 </code> </code>
  
Line 525: Line 526:
  
 <code> <code>
-% svn copy svn+ssh://svn.FreeBSD.org/ports/head/@295095 svn+ssh://svn.FreeBSD.org/ports/tags/RELEASE_x_y_z+% svn copy svn+ssh://repo.FreeBSD.org/ports/head/@295095 svn+ssh://repo.FreeBSD.org/ports/tags/RELEASE_x_y_z
 </code> </code>
  
Line 535: Line 536:
  
 <code> <code>
-% svn copy svn+ssh://svn.FreeBSD.org/ports/head/@297395 svn+ssh://svn.FreeBSD.org/ports/branches/RELENG_8_4_1+% svn copy svn+ssh://repo.FreeBSD.org/ports/head/@297395 svn+ssh://repo.FreeBSD.org/ports/branches/RELENG_8_4_1
 </code> </code>
  
Line 543: Line 544:
  
 <code> <code>
-% svn copy svn+ssh://svn.FreeBSD.org/ports/branches/RELENG_8_4_1 svn+ssh://svn.FreeBSD.org/ports/tags/RELEASE_8_4_1+% svn copy svn+ssh://repo.FreeBSD.org/ports/branches/RELENG_8_4_1 svn+ssh://repo.FreeBSD.org/ports/tags/RELEASE_8_4_1
 </code> </code>
  
 ===== Enable Feature Freeze ===== ===== Enable Feature Freeze =====
  
-To enable a feature freeze change the FEATURE_FREEZE variable in ''%%svn.FreeBSD.org/ports/svnadmin/conf/featurefreeze.conf%%'' to 1.+To enable a feature freeze change the FEATURE_FREEZE variable in ''%%repo.FreeBSD.org/ports/svnadmin/conf/featurefreeze.conf%%'' to 1.
  
 ---- ----
  
-{{tag>HowTo}}+{{tag>HowTo Historical}}
  
  • portssubversionprimer.1513183824.txt.gz
  • Last modified: 2017/12/13 16:50
  • by JohnMarkGurney