- Merge the following from the English version:

r54009 -> r54447	head/ja_JP.eucJP/books/handbook/ports/chapter.xml
This commit is contained in:
Ryusuke SUZUKI 2020-08-30 08:22:34 +00:00
parent 9562c272a7
commit a5fcf47dea
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=54448

View file

@ -3,7 +3,7 @@
The FreeBSD Documentation Project
The FreeBSD Japanese Documentation Project
Original revision: r54009
Original revision: r54447
$FreeBSD$
-->
<chapter xmlns="http://docbook.org/ns/docbook"
@ -878,9 +878,10 @@ security/sudo</screen>
<para>&os; のベースシステムには、<application>Portsnap</application>
が含まれています。
これは Ports Collection
これは Ports Collection
を取得するための速くて使いやすく、
多くのユーザに推奨されるツールです。
多くのユーザ (&os.current; を使っているユーザは除きます)
に推奨されるツールです。
このユーティリティは、&os; のサイトに接続し、セキュリティキーを検証し、
Ports Collection の最新版をダウンロードします。
セキュリティキーは、
@ -924,7 +925,8 @@ security/sudo</screen>
<title>Subversion を用いる方法</title>
<para>ports ツリーの管理が必要な場合や、
ローカルで変更点をメンテナンスする必要がある場合には、
ローカルで変更点をメンテナンスする必要がある場合、
および &os.current; を使用している場合には、
<application>Subversion</application> を使って
Ports Collection を取得する方法があります。
<application>Subversion</application> のより詳細な説明については、
@ -1662,52 +1664,54 @@ The deinstallation will free 229 kB
デフォルトでは、<command>uname</command>
で表示されるアーキテクチャに設定されます。</para>
<screen>&prompt.root; <userinput>poudriere jail -c -j <replaceable>10amd64</replaceable> -v <replaceable>10.0-RELEASE</replaceable></userinput>
====&gt;&gt; Creating 10amd64 fs... done
====&gt;&gt; Fetching base.txz for FreeBSD 10.0-RELEASE amd64
/poudriere/jails/10amd64/fromftp/base.txz 100% of 59 MB 1470 kBps 00m42s
====&gt;&gt; Extracting base.txz... done
====&gt;&gt; Fetching src.txz for FreeBSD 10.0-RELEASE amd64
/poudriere/jails/10amd64/fromftp/src.txz 100% of 107 MB 1476 kBps 01m14s
====&gt;&gt; Extracting src.txz... done
====&gt;&gt; Fetching games.txz for FreeBSD 10.0-RELEASE amd64
/poudriere/jails/10amd64/fromftp/games.txz 100% of 865 kB 734 kBps 00m01s
====&gt;&gt; Extracting games.txz... done
====&gt;&gt; Fetching lib32.txz for FreeBSD 10.0-RELEASE amd64
/poudriere/jails/10amd64/fromftp/lib32.txz 100% of 14 MB 1316 kBps 00m12s
====&gt;&gt; Extracting lib32.txz... done
====&gt;&gt; Cleaning up... done
====&gt;&gt; Jail 10amd64 10.0-RELEASE amd64 is ready to be used</screen>
<screen>&prompt.root; <userinput>poudriere jail -c -j <replaceable>11amd64</replaceable> -v <replaceable>11.4-RELEASE</replaceable></userinput>
[00:00:00] Creating 11amd64 fs at /poudriere/jails/11amd64... done
[00:00:00] Using pre-distributed MANIFEST for FreeBSD 11.4-RELEASE amd64
[00:00:00] Fetching base for FreeBSD 11.4-RELEASE amd64
/poudriere/jails/11amd64/fromftp/base.txz 125 MB 4110 kBps 31s
[00:00:33] Extracting base... done
[00:00:54] Fetching src for FreeBSD 11.4-RELEASE amd64
/poudriere/jails/11amd64/fromftp/src.txz 154 MB 4178 kBps 38s
[00:01:33] Extracting src... done
[00:02:31] Fetching lib32 for FreeBSD 11.4-RELEASE amd64
/poudriere/jails/11amd64/fromftp/lib32.txz 24 MB 3969 kBps 06s
[00:02:38] Extracting lib32... done
[00:02:42] Cleaning up... done
[00:02:42] Recording filesystem state for clean... done
[00:02:42] Upgrading using ftp
/etc/resolv.conf -&gt; /poudriere/jails/11amd64/etc/resolv.conf
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from update4.freebsd.org... done.
Fetching metadata signature for 11.4-RELEASE from update4.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 124 patches.....10....20....30....40....50....60....70....80....90....100....110....120.. done.
Applying patches... done.
Fetching 6 files... done.
The following files will be added as part of updating to
11.4-RELEASE-p1:
/usr/src/contrib/unbound/.github
/usr/src/contrib/unbound/.github/FUNDING.yml
/usr/src/contrib/unbound/contrib/drop2rpz
/usr/src/contrib/unbound/contrib/unbound_portable.service.in
/usr/src/contrib/unbound/services/rpz.c
/usr/src/contrib/unbound/services/rpz.h
/usr/src/lib/libc/tests/gen/spawnp_enoexec.sh
The following files will be updated as part of updating to
11.4-RELEASE-p1:
[&hellip;]
Installing updates...Scanning //usr/share/certs/blacklisted for certificates...
Scanning //usr/share/certs/trusted for certificates...
done.
11.4-RELEASE-p1
[00:04:06] Recording filesystem state for clean... done
[00:04:07] Jail 11amd64 11.4-RELEASE-p1 amd64 is ready to be used</screen>
<screen>&prompt.root; <userinput>poudriere ports -c -p <replaceable>local</replaceable></userinput>
====&gt;&gt; Creating local fs... done
====&gt;&gt; Extracting portstree "local"...
Looking up portsnap.FreeBSD.org mirrors... 7 mirrors found.
Fetching public key from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Tue Feb 11 01:07:15 CET 2014:
94a3431f0ce567f6452ffde4fd3d7d3c6e1da143efec76100% of 69 MB 1246 kBps 00m57s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Tue Feb 11 01:07:15 CET 2014 to Tue Feb 11 16:05:20 CET 2014.
Fetching 4 metadata patches... done.
Applying metadata patches... done.
Fetching 0 metadata files... done.
Fetching 48 patches.
(48/48) 100.00% done.
done.
Applying patches...
done.
Fetching 1 new ports or files... done.
/poudriere/ports/tester/CHANGES
/poudriere/ports/tester/COPYRIGHT
[...]
Building new INDEX files... done.</screen>
<screen>&prompt.root; <userinput>poudriere ports -c -p <replaceable>local</replaceable> -m svn+https</userinput>
[00:00:00] Creating local fs at /poudriere/ports/local... done
[00:00:00] Checking out the ports tree... done</screen>
<para>一つのコンピュータ上で、
複数の設定、複数の jails、異なる port ツリーから
@ -1722,14 +1726,14 @@ Building new INDEX files... done.</screen>
<filename>make.conf</filename>
<filename>/usr/local/etc/poudriere.d</filename> に置いてください。
この例でのファイル名
<filename><replaceable>10amd64-local-workstation</replaceable>-make.conf</filename>
<filename><replaceable>11amd64-local-workstation</replaceable>-make.conf</filename>
は、jail 名、port 名そして、セット名の組み合わせで付けられています。
システムの <filename>make.conf</filename>
と、この新しいファイルは、ビルド時に結合され、構築した jail
で用いられる <filename>make.conf</filename> を作成します。</para>
<para>ビルドする package を
<filename><replaceable>10amd64-local-workstation</replaceable>-pkglist</filename> に記載してください。</para>
<filename><replaceable>11amd64-local-workstation</replaceable>-pkglist</filename> に記載してください。</para>
<programlisting>editors/emacs
devel/git
@ -1739,12 +1743,12 @@ ports-mgmt/pkg
<para>特定の ports に対し、
オプションや依存を設定してください。</para>
<screen>&prompt.root; <userinput>poudriere options -j <replaceable>10amd64</replaceable> -p <replaceable>local</replaceable> -z <replaceable>workstation</replaceable> -f <replaceable>10amd64-local-workstation-pkglist</replaceable></userinput></screen>
<screen>&prompt.root; <userinput>poudriere options -j <replaceable>11amd64</replaceable> -p <replaceable>local</replaceable> -z <replaceable>workstation</replaceable> -f <replaceable>11amd64-local-workstation-pkglist</replaceable></userinput></screen>
<para>最後に packages を構築し、
package リポジトリを生成してください。</para>
<screen>&prompt.root; <userinput>poudriere bulk -j <replaceable>10amd64</replaceable> -p <replaceable>local</replaceable> -z <replaceable>workstation</replaceable> -f <replaceable>10amd64-local-workstation-pkglist</replaceable></userinput></screen>
<screen>&prompt.root; <userinput>poudriere bulk -j <replaceable>11amd64</replaceable> -p <replaceable>local</replaceable> -z <replaceable>workstation</replaceable> -f <replaceable>11amd64-local-workstation-pkglist</replaceable></userinput></screen>
<para>このコマンドの実行中に <keycombo
action="simul"><keycap>Ctrl</keycap><keycap>t</keycap></keycombo>
@ -1784,18 +1788,18 @@ ports-mgmt/pkg
<para>通常は、HTTP 経由で poudriere
リポジトリをクライアントコンピュータに公開すると簡単です。
package ディレクトリ (たとえば、
<filename>/usr/local/poudriere/data/packages/<replaceable>10amd64</replaceable></filename>
<filename>/usr/local/poudriere/data/packages/<replaceable>11amd64</replaceable></filename>
) を公開するようにウェブサーバを設定してください。
この例で <filename>10amd64</filename> は構築名です。</para>
この例で <filename>11amd64</filename> は構築名です。</para>
<para>もし、package リポジトリの URL が
<literal>http://pkg.example.com/10amd64</literal> であれば、
<literal>http://pkg.example.com/11oamd64</literal> であれば、
リポジトリの設定ファイルである
<filename>/usr/local/etc/pkg/repos/custom.conf</filename> は、
以下のようになります。</para>
<programlisting>custom: {
url: "<replaceable>http://pkg.example.com/10amd64</replaceable>",
url: "<replaceable>http://pkg.example.com/11amd64</replaceable>",
enabled: yes,
}</programlisting>
</sect2>