[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

pkgsrc/doc/guide/files/faq.xml: 1.2 -> 1.4



以下のページの更新をしました。ツッコミをお願いします。

pkgsrc/doc/guide/files/faq.xml: 1.2 -> 1.4

> revision 1.4
> date: 2005/01/11 16:05:20;  author: wiz;  state: Exp;  lines: +14 -12
> Improve resume section, and use complete path for /etc/mk.conf in two places.
> ----------------------------
> revision 1.3
> date: 2005/01/11 15:47:00;  author: xtraeme;  state: Exp;  lines: +28 -4
> Added section 6.5: "How to resume transferencies with pkgsrc?", while
> here fix a typos in the XFree86/X.org sections.

水曜日までに異議がなければ、 commit します。

以下、訳と原文それぞれの新旧の差分です。

--- faq.xml.orig	2006-09-05 00:38:39.000000000 +0900
+++ faq.xml	2006-09-05 00:38:39.000000000 +0900
@@ -1,6 +1,6 @@
-<!-- $NetBSD: faq.xml,v 1.2 2004/11/20 13:25:22 hubertf Exp $ -->
+<!-- $NetBSD: faq.xml,v 1.4 2005/01/11 16:05:20 wiz Exp $ -->
 <!-- Based on english version: -->
-<!-- NetBSD: faq.xml,v 1.2 2004/11/20 13:25:22 hubertf Exp   -->
+<!-- NetBSD: faq.xml,v 1.4 2005/01/11 16:05:20 wiz Exp   -->
 
 <chapter id="faq"> <?dbhtml filename="faq.html"?>
   <title>よくある質問</title>
@@ -200,6 +200,31 @@
       </ulink>をご覧ください。  </para> 
 </sect1>
 
+<sect1>
+    <title>distfile 取得時に、転送を再開する方法は?</title>
+
+    <para>標準では、pkgsrc の転送再開機能は有効になっていませんが、
+	<filename>/etc/mk.conf</filename> にオプション
+	<varname>PKG_RESUME_TRANSFERS=YES</varname> を追加すれば、
+	この機能を有効にすることができます。こうすると、fetch している最中に、
+	不完全な distfile があった場合、pkgsrc はそのファイルの残りの部分を取得しようとします。</para>
+    <para>また、<varname>FETCH_CMD</varname> 変数を変更すれば、
+	標準である ftp(1) 以外のプログラムを使うこともできます。
+	この変数を標準以外の値にした場合は、<varname>FETCH_RESUME_ARGS</varname> と
+	<varname>FETCH_OUTPUT_ARGS</varname> の設定を忘れずにしてください。</para>
+    <para>たとえば、ダウンロードの再開に <filename>wget</filename>
+	を使いたい場合は、以下のような設定が必要です。</para>
+
+    <programlisting>
+	FETCH_CMD=wget
+	.if defined(FETCH_CMD) &amp;&amp; ${FETCH_CMD} == "wget"
+	FETCH_BEFORE_ARGS=--passive-ftp
+	FETCH_RESUME_ARGS=-c
+	FETCH_OUTPUT_ARGS=-O
+	.endif
+    </programlisting>
+
+</sect1>
 
 <sect1>
     <title>pkgsrc の XFree86 をインストールあるいは使用する方法は?</title>
@@ -488,7 +513,7 @@
 
     <screen>
 ===========================================================================
-$NetBSD: faq.xml,v 1.2 2004/11/20 13:25:22 hubertf Exp $
+$NetBSD: faq.xml,v 1.4 2005/01/11 16:05:20 wiz Exp $
 
 You may wish to have the vulnerabilities file downloaded daily so that
 it remains current.  This may be done by adding an appropriate entry
Index: faq.xml
===================================================================
RCS file: /cvsroot/pkgsrc/doc/guide/files/faq.xml,v
retrieving revision 1.2
retrieving revision 1.4
diff -u -r1.2 -r1.4
--- faq.xml	20 Nov 2004 13:25:22 -0000	1.2
+++ faq.xml	11 Jan 2005 16:05:20 -0000	1.4
@@ -1,4 +1,4 @@
-<!-- $NetBSD: faq.xml,v 1.2 2004/11/20 13:25:22 hubertf Exp $ -->
+<!-- $NetBSD: faq.xml,v 1.4 2005/01/11 16:05:20 wiz Exp $ -->
 
 <chapter id="faq"> <?dbhtml filename="faq.html"?>
   <title>Frequently Asked Questions</title>
@@ -202,6 +202,32 @@
       message</ulink> for more details.  </para> 
 </sect1>
 
+<sect1>
+    <title>How to resume transfers when fetching distfiles?</title>
+
+    <para>By default resuming transfers in pkgsrc is disabled, but you
+	can enable this feature by adding the option 
+	<varname>PKG_RESUME_TRANSFERS=YES</varname> into 
+	<filename>/etc/mk.conf</filename>. If, during a fetch step, an
+	incomplete distfile is found, pkgsrc will try to resume it.</para>
+    <para>You can also use a different program than the default ftp(1) by
+	changing the <varname>FETCH_CMD</varname> variable.
+	Don't forget to set <varname>FETCH_RESUME_ARGS</varname> and
+	<varname>FETCH_OUTPUT_ARGS</varname> if you are not using default
+	values.</para>
+    <para>For example, if you want to use <filename>wget</filename> to
+	resume downloads, you'll have to use something like:</para>
+
+    <programlisting>
+	FETCH_CMD=wget
+	.if defined(FETCH_CMD) &amp;&amp; ${FETCH_CMD} == "wget"
+	FETCH_BEFORE_ARGS=--passive-ftp
+	FETCH_RESUME_ARGS=-c
+	FETCH_OUTPUT_ARGS=-O
+	.endif
+    </programlisting>
+
+</sect1>
 
 <sect1>
     <title>How can I install/use XFree86 from pkgsrc?</title>
@@ -209,7 +235,7 @@
     <para> If you want to use XFree86 from pkgsrc instead of your
       system's own X11 (<filename>/usr/X11R6</filename>,
       <filename>/usr/openwin</filename>, ...), you will have to 
-      add the following lines into <filename>mk.conf</filename>:
+      add the following line into <filename>/etc/mk.conf</filename>:
       </para>
 
     <programlisting>
@@ -224,7 +250,7 @@
     <para> If you want to use X.org from pkgsrc instead of your system's
       own X11 (<filename>/usr/X11R6</filename>,
       <filename>/usr/openwin</filename>, ...) you will have to add the
-      following lines into <filename>mk.conf</filename>: </para>
+      following line into <filename>/etc/mk.conf</filename>: </para>
 
     <programlisting>
       X11_TYPE=xorg
@@ -524,7 +550,7 @@
 
     <screen>
 ===========================================================================
-$NetBSD: faq.xml,v 1.2 2004/11/20 13:25:22 hubertf Exp $
+$NetBSD: faq.xml,v 1.4 2005/01/11 16:05:20 wiz Exp $
 
 You may wish to have the vulnerabilities file downloaded daily so that
 it remains current.  This may be done by adding an appropriate entry