From beat@tinderbox.chruetertee.ch  Tue Oct  9 06:28:14 2012
Return-Path: <beat@tinderbox.chruetertee.ch>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id D66095B5
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  9 Oct 2012 06:27:51 +0000 (UTC)
	(envelope-from beat@tinderbox.chruetertee.ch)
Received: from tinderbox.chruetertee.ch (cl-104.gva-01.ch.sixxs.net [IPv6:2a02:2528:ff00:67::2])
	by mx1.freebsd.org (Postfix) with ESMTP id 096C18FC57
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  8 Oct 2012 19:23:09 +0000 (UTC)
Received: from tinderbox.chruetertee.ch (localhost [127.0.0.1])
	by tinderbox.chruetertee.ch (8.14.5/8.14.5) with ESMTP id q98JN8Wj058264
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 8 Oct 2012 21:23:08 +0200 (CEST)
	(envelope-from beat@tinderbox.chruetertee.ch)
Received: (from beat@localhost)
	by tinderbox.chruetertee.ch (8.14.5/8.14.5/Submit) id q98JN3pC057398;
	Mon, 8 Oct 2012 21:23:03 +0200 (CEST)
	(envelope-from beat)
Message-Id: <201210081923.q98JN3pC057398@tinderbox.chruetertee.ch>
Date: Mon, 8 Oct 2012 21:23:03 +0200 (CEST)
From: Beat Gtzi <beat@freebsd.org>
Reply-To: Beat Gtzi <beat@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [handbook] [patch] Add CVSup to portsnap migration section
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         172554
>Category:       docs
>Synopsis:       [handbook] [patch] Add CVSup to portsnap migration section
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bcr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 09 22:30:28 UTC 2012
>Closed-Date:    Thu Oct 11 10:06:20 UTC 2012
>Last-Modified:  Thu Oct 11 10:06:20 UTC 2012
>Originator:     Beat Gtzi
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-doc 
Responsible-Changed-By: beat 
Responsible-Changed-When: Wed Oct 10 14:34:45 UTC 2012 
Responsible-Changed-Why:  
Fix category and assignment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172554 
Responsible-Changed-From-To: freebsd-doc->bcr 
Responsible-Changed-By: bcr 
Responsible-Changed-When: Wed Oct 10 15:53:26 UTC 2012 
Responsible-Changed-Why:  
Take this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172554 
State-Changed-From-To: open->closed 
State-Changed-By: bcr 
State-Changed-When: Thu Oct 11 10:05:24 UTC 2012 
State-Changed-Why:  
A modified version of your patch was committed. Thanks to all involved. PR closed! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=172554 
>Unformatted:
