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

Documentation/pkgsrc/using/chapter.xml: 1.6 -> 1.9



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

Documentation/pkgsrc/using/chapter.xml: 1.6 -> 1.9

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

> revision 1.9
> date: 2003/06/20 10:53:28;  author: grant;  state: Exp;  lines: +2 -3
> simplify a sentence
> ----------------------------
> revision 1.8
> date: 2003/06/20 05:17:35;  author: grant;  state: Exp;  lines: +2 -2
> add a <link>
> ----------------------------
> revision 1.7
> date: 2003/06/20 05:15:57;  author: grant;  state: Exp;  lines: +14 -11
> modify install example to use just-in-time su

以下、訳と原文の差分です。

--- Documentation/pkgsrc/using/chapter.xml.orig	2006-03-31 00:32:38.000000000 +0900
+++ Documentation/pkgsrc/using/chapter.xml	2006-03-31 00:32:38.000000000 +0900
@@ -1,6 +1,6 @@
-<!-- $NetBSD: chapter.xml,v 1.6 2003/06/20 05:02:09 grant Exp $ -->
+<!-- $NetBSD: chapter.xml,v 1.9 2003/06/20 10:53:28 grant Exp $ -->
 <!-- Based on english version: -->
-<!-- NetBSD: chapter.xml,v 1.6 2003/06/20 05:02:09 grant Exp   -->
+<!-- NetBSD: chapter.xml,v 1.9 2003/06/20 10:53:28 grant Exp   -->
 
 <chapter id="using"> <?dbhtml filename="using.html"?>
 <title>NetBSD パッケージシステムを使う</title>
@@ -86,8 +86,7 @@
 <title>Building packages from source</title>
 <para>
 ここでは、パッケージがすでにNetBSDパッケージシステムに含まれていると仮定
-しています。もし、そうでなれば、このドキュメントの第二部「パッケージ構築者
-ガイド」を読む事をお勧めします。
+しています。もし、そうでなれば、<xref linkend="developers-guide"/>をご覧ください。
 </para>
 
 <sect2>
@@ -191,22 +190,24 @@
 <sect3>
 <title>構築とインストール方法</title>
 <para>
-配布ファイルの取得(前節参照)が完了したら、rootになり適切なディレクトリーに
-移動してください。そして、シェルプロンプト上で以下のようにタイプしてくだ
-さい。
+配布ファイルが取得してあれば、パッケージの構築は、
+パッケージのディレクトリーに移動して make を実行するだけです。
 
-<screen><prompt>%</prompt> <userinput>make</userinput></screen>
+<screen><prompt>%</prompt> <userinput>cd editors/vim</userinput>
+<prompt>%</prompt> <userinput>make</userinput></screen>
 </para>
 
 <para>
-これで、パッケージのさまざまなコンポーネントが構築されます。それから、
+パッケージをシステムにインストールするには root 権限が必要です。
+ただし、pkgsrc には<emphasis>必要な時のみ</emphasis> su する機能があり、
+実際のインストール時にのみ root になることができます。
+たとえば、
 
-<screen><prompt>#</prompt> <userinput>make install</userinput></screen>
-</para>
-
-<para>
-とシェルプロンプト上でタイプしてください。これにより、さまざまなコンポー
-ネントが適切な場所にインストールされます。
+<screen><prompt>%</prompt> <userinput>make install</userinput>
+===> Installing for top-3.5beta5
+===> Becoming root@mofo to install top-3.5beta5.
+/usr/bin/su Password: <userinput>&lt;password&gt;</userinput>
+[...インストールがおこなわれます...]</screen>
 </para>
 
 <para>
Index: Documentation/pkgsrc/using/chapter.xml
===================================================================
RCS file: /cvsroot/htdocs/Documentation/pkgsrc/using/Attic/chapter.xml,v
retrieving revision 1.6
retrieving revision 1.9
diff -u -r1.6 -r1.9
--- Documentation/pkgsrc/using/chapter.xml	20 Jun 2003 05:02:09 -0000	1.6
+++ Documentation/pkgsrc/using/chapter.xml	20 Jun 2003 10:53:28 -0000	1.9
@@ -1,4 +1,4 @@
-<!-- $NetBSD: chapter.xml,v 1.6 2003/06/20 05:02:09 grant Exp $ -->
+<!-- $NetBSD: chapter.xml,v 1.9 2003/06/20 10:53:28 grant Exp $ -->
 
 <chapter id="using"> <?dbhtml filename="using.html"?>
 <title>Using The NetBSD package system</title>
@@ -85,8 +85,7 @@
 <title>Building packages from source</title>
 <para>
 This assumes that the package is already part of the NetBSD package system.
-If it is not, then you are advised to read part II of this document,
-"Package Constructor's Guide".
+If it is not, see <xref linkend="developers-guide"/>.
 </para>
 
 <sect2>
@@ -190,21 +189,24 @@
 <sect3>
 <title>How to build and install</title>
 <para>
-Assuming that the distfile has been fetched (see previous section), become
-root and change into the relevant directory. Then you can type
+Once the distfile(s) have been fetched, building a package is as
+simple as changing into the package directory and running make:
 
-<screen><prompt>%</prompt> <userinput>make</userinput></screen>
+<screen><prompt>%</prompt> <userinput>cd editors/vim</userinput>
+<prompt>%</prompt> <userinput>make</userinput></screen>
 </para>
 
 <para>
-at the shell prompt to build the various components of the package, and
+Installing the package on your system requires you to be root.
+However, pkgsrc has a <emphasis>just-in-time</emphasis> su feature,
+which allows you to only become root for the actual installation step.
+e.g.
 
-<screen><prompt>#</prompt> <userinput>make install</userinput></screen>
-</para>
-
-<para>
-at the shell prompt to install the various components into the correct
-places on your system.
+<screen><prompt>%</prompt> <userinput>make install</userinput>
+===> Installing for top-3.5beta5
+===> Becoming root@mofo to install top-3.5beta5.
+/usr/bin/su Password: <userinput>&lt;password&gt;</userinput>
+[...installation continues...]</screen>
 </para>
 
 <para>