Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Oct 2012 21:23:03 +0200 (CEST)
From:      Beat Gätzi <beat@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/172554: [handbook] [patch] Add CVSup to portsnap migration section
Message-ID:  <201210081923.q98JN3pC057398@tinderbox.chruetertee.ch>
Resent-Message-ID: <201210092230.q99MUSVA043754@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         172554
>Category:       ports
>Synopsis:       [handbook] [patch] Add CVSup to portsnap migration section
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 09 22:30:28 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Beat Gätzi
>Release:        FreeBSD 10.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD tinderbox.chruetertee.ch 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r237414M: Fri Jun 22 10:55:48 CEST 2012 root@tinderbox.chruetertee.ch:/usr/obj/usr/home/beat/dev/src/head/sys/BEASTIE i386


	
>Description:
	Attached patch adds a new section to the handbook about the
	migration from CVSup to portsnap. This was requested by rwatson@
	and the patch was created in collaboration with tabthorpe@.
	
>How-To-Repeat:
	
>Fix:

	

--- ports-cvs-migration.diff begins here ---
Index: en_US.ISO8859-1/books/handbook/ports/chapter.xml
===================================================================
--- en_US.ISO8859-1/books/handbook/ports/chapter.xml	(Revision 39715)
+++ en_US.ISO8859-1/books/handbook/ports/chapter.xml	(Arbeitskopie)
@@ -910,6 +910,79 @@
       </procedure>
     </sect2>
 
+    <sect2 id="cvsup-migration">
+      <title>Migrating from CVSup/csup to portsnap</title>
+
+      <warning>
+	<para>By February 28, 2013 the ports tree will no longer be exported
+	  to <application>CVS</application> and therefore
+	  <application>CVSup</application> and <application>csup</application>
+	  will no longer provide updates for the ports tree.</para>
+      </warning>
+
+      <procedure>
+	<title>Migration to Portsnap</title>
+
+	<para>The migration will require about 1 GB of disk space on
+	  <filename class="directory">/usr</filename> , plus
+	  <application>Portsnap</application> requires abou 150 MB disk space
+	  on <filename class="directory">/var</filename>.</para>
+
+	<step>
+	  <para>Disable any automated ports updates you may use, such
+	    as a &man.cron.8; job calling <application>CVSup</application> or
+	    <application>csup</application>.</para>
+	</step>
+
+	<step>
+	  <para>Move the existing ports tree to a temporary location:
+	  </para>
+
+	  <screen>&prompt.root; <userinput>mv /usr/ports /usr/ports.old</userinput></screen>
+	</step>
+
+	<step>
+	  <para>Fetch the new ports tree with <application>Portsnap
+	    </application> and extract it to
+	    <filename class="directory">/usr/ports</filename>:</para>
+
+	  <screen>&prompt.root; <userinput>portsnap fetch extract</userinput></screen>
+	</step>
+
+	<step>
+	  <para>Move distfiles and saved packages to the new ports tree:
+	  </para>
+
+	  <screen>&prompt.root; <userinput>mv /usr/ports.old/distfiles /usr/ports</userinput>
+&prompt.root; <userinput>mv /usr/ports.old/packages /usr/ports</userinput></screen>
+	</step>
+
+	<step>
+	  <para>Delete the old ports tree:</para>
+
+	  <screen>&prompt.root; <userinput>rm -rf /usr/ports.old</userinput></screen>
+	</step>
+
+	<step>
+	  <para>If <application>CVSup</application> was used the before,
+	    it can be no be uninstalled:</para>
+
+	  <screen>&prompt.root; <userinput>pkg_delete -r -v cvsup-without-gui-\*</userinput></screen>
+
+	  <para>Users of <application>pkgng</application> can use the
+	    following command:</para>
+
+	  <screen>&prompt.root; <userinput>pkg remove cvsup-without-gui</userinput></screen>
+	</step>
+      </procedure>
+
+      <para>See <link linkend="updating-upgrading-portsnap">Using
+	Portsnap</link> for a detailed description of
+	<application>Portsnap</application> and how to update the
+	ports tree with <application>Portsnap</application>.</para>
+
+    </sect2>
+
     <sect2 id="ports-skeleton">
       <title>Installing Ports</title>
 
--- ports-cvs-migration.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210081923.q98JN3pC057398>