diff --git a/ja/ports/Makefile b/ja/ports/Makefile index c96b50daf6..575a981120 100644 --- a/ja/ports/Makefile +++ b/ja/ports/Makefile @@ -1,45 +1,65 @@ -# $Id: Makefile,v 1.13 1999-03-09 15:13:47 motoyuki Exp $ +# $Id: Makefile,v 1.14 1999-05-06 15:15:19 motoyuki Exp $ # The FreeBSD Japanese Documentation Project -# Original revision: 1.16 +# Original revision: 1.22 .if exists(../Makefile.conf) .include "../Makefile.conf" .endif -PORTINDEX= perl ${.CURDIR}/portindex +PORTINDEX= perl5 ${.CURDIR}/portindex INDEX= INDEX PINDEX= ports/${INDEX} +Y2K= YEAR2000 +PY2K= ports/${Y2K} COOKIE= ${INDEX} Makefile.gen .if exists(Makefile.gen) .include "Makefile.gen" .endif -CLEANFILES+= ${DOCS} Makefile.gen ${INDEX} packages.exists +CLEANFILES+= ${DOCS} Makefile.gen ${INDEX} ${Y2K} packages.exists cvsindex= $${CVSROOT}/${PINDEX},v -_ALLINSTALL= packages.exists ${INDEX} +cvsy2k= $${CVSROOT}/${PY2K},v +_ALLINSTALL= packages.exists ${INDEX} ${Y2K} + +.if defined(NOPORTSCVS) +${INDEX}: $${PORTSBASE}/${PINDEX} + cp ${PORTSBASE}/${PINDEX} ${INDEX} + +${Y2K}: $${PORTSBASE}/${PY2K} + cp ${PORTSBASE}/${PY2K} ${Y2K} + +.else ${INDEX}: ${cvsindex} cvs -QR co -p ${PINDEX} > ${INDEX} +${Y2K}: ${cvsy2k} + cvs -QR co -p ${PY2K} > ${Y2K} +.endif + # build the list of available packages only on the # main FreeBSD machines hostname!= hostname -packages.exists: ${cvsindex} +.if defined(NOPORTSCVS) +packages.exists: +.else +packages.exists: ${cvsindex} ${cvsy2k} +.endif .if ${hostname} == "hub.freebsd.org" || ${hostname} == "freefall.freebsd.org" sh ${.CURDIR}/../../en/ports/packages > ${.TARGET} .else touch ${.TARGET} .endif Makefile.gen: index.sgml .NOTMAIN echo DOCS= *.sgml > Makefile.gen ${MAKE} ${MAKEFLAGS} ${.IMPSRC} -index.sgml: ${INDEX} packages.exists portindex ports.inc .NOTMAIN +index.sgml: ${INDEX} ${Y2K} packages.exists portindex ports.inc .NOTMAIN rm -f *.sgml - ${PORTINDEX} ${INDEX} + ${PORTINDEX} ${INDEX} ${Y2K} .include "../../web.mk" diff --git a/ja/ports/portindex b/ja/ports/portindex index af04e7594a..d69563976e 100755 --- a/ja/ports/portindex +++ b/ja/ports/portindex @@ -1,279 +1,304 @@ #!/usr/bin/perl # convert a ports INDEX file to HTML # # by John Fieber # Mon May 13 10:31:58 EST 1996 -# $Id: portindex,v 1.13 1999-03-09 15:13:47 motoyuki Exp $ +# $Id: portindex,v 1.14 1999-05-06 15:15:20 motoyuki Exp $ # The FreeBSD Japanese Documentation Project -# Original revision: 1.23 +# Original revision: 1.25 ############################################################ # Load local config file. You can override in portindex.conf # the variables for the default web and the ftp server. This # make it easy to maintain a local web mirror and let the # URL point to yourself and not to the standard FreeBSD FTP server. $config = $0 . '.' . 'conf'; do $config if -f $config; # This is the base of where we ftp stuff from if ($ENV{'MASTER_FTP_SERVER'}) { $ftpserver = $ENV{'MASTER_FTP_SERVER'}; } else { $ftpserver = 'ftp://ftp.freebsd.org' if !$ftpserver; } $base = "$ftpserver/pub/FreeBSD/FreeBSD-current" if !$base; $baseHTTP = $base if !$baseHTTP; $urlcgi = 'http://www.freebsd.org/cgi/url.cgi' if !$urlcgi; $packagesURL = "$ftpserver/pub/FreeBSD/ports/i386/packages-stable/All/" if !$packagesURL; # support tar on the fly or gzip'ed tar on the fly $ftparchive = 'tar' if !$ftparchive; # ports download sources script $pds = 'http://www.freebsd.org/cgi/pds.cgi'; # better layout and link to the sources if ($urlcgi) { $baseHTTP = $urlcgi . '?' . $baseHTTP; } $today = &getdate; &packages_exist('packages.exists', *packages); &category_description('categories', *category_description); +&y2k_statements; &main; +sub y2k_statements { + + open(Y2K, $ARGV[1]); + while() { + chop(); + ( $dir, $url ) = split(/\s+/); + $dir = $base . "/" . $dir; + $y2k{$dir} = $url; + + } + close(Y2K); + +} + sub getdate { # @months = ("January", "February", "March", "April", "May","June", # "July", "August", "September", "October", "November", "December"); ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); $year += 1900; # return "Updated $months[$mon] $mday, $year"; $mon++; return "$year 年 $mon 月 $mday 日に更新されました."; } sub header { local ($fh, $htext) = @_; print $fh ""; print $fh "$today\">\n"; print $fh ""; print $fh "\n"; print $fh "\n"; print $fh ""; print $fh "%includes;\n"; print $fh "]>\n"; print $fh "&header;\n"; } sub footer { local ($fh, $ftext) = @_; print $fh "\n$ftext\n"; print $fh "&footer;\n"; print $fh "\n\n"; } sub packages_exist { local($file, *p) = @_; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot create packages links\n"; return 1; }; while(

) { chop; $p{$_} = 1; } close P; return 0; } sub category_description { local($file, *p) = @_; open(P, $file) || do { warn "open $file: $!\n"; warn "Cannot find category description\n"; return 1; }; local($category, $description); while(

) { # ignore comments next if /^\s*#/; ($category, $description) = /^\s*"([^"]+)",\s*"([^"]+)/; $p{$category} = $description; } close P; return 0; } sub main { $sep = ":"; # 'COMMENT' translation database if (open(COMF, "comments.ja")) { while () { ($a, $b) = split('\|'); next if !defined($b); chop($b); $b =~ s/&/&/g; $b =~ s//>/g; $descLANG{$a} = $b; } } - while (<>) { + open(INDEX, $ARGV[0]); + while () { chop; s/&/&/g; s//>/g; # Read a record ($name, $loc, $prefix, $desc, $ldesc, $owner, $cats, - $bdep, $rdep) = split('\|'); + $bdep, $rdep, $www) = split('\|'); # Check for double hyphens in the name (--). $name =~ s/--/-/g; # Split the categories into an array @cat = split("[ \t]+", $cats); $catkey{$name} = $cat[0]; local($sourcepath) = $loc; $sourcepath =~ s%/usr/%%; # desc translation ($lloc = $loc) =~ s@^/usr/ports/@@; $desc = $descLANG{$lloc} if ($descLANG{$lloc} ne ''); foreach $i (@cat) { $stats{$i}++; # figure out the FTP url $loc =~ s/\/usr/$base/; $ldesc =~ s/\/usr/$baseHTTP/; # The name description and maintainer $data{$i} .= "

$name "; $data{$i} .= "
$desc
詳しい説明"; if ($packages{"$name.tgz"}) { $data{$i} .= qq{ | パッケージ}; } $data{$i} .= qq{ | ソース}; + if ($y2k{"$loc"}) { + $data{$i} .= qq{ | Y2K}; + } + + if ($www ne "") { + $data{$i} .= qq{ | Main Web Site}; + } + $ownerurl = $owner; $ownerurl =~ s/<//g; $data{$i} .= "
保守担当者: $owner"; # If there are any dependencies, list them if ($bdep ne "" || $rdep ne "") { $data{$i} .= "
必要なもの: "; @dep = split(/ /, "$bdep $rdep"); local($last) = ''; foreach $j (sort @dep) { next if $j eq $last; $last = $j; $data{$i} .= " $j,"; } # remove the trailing comma chop $data{$i}; } # If the port is listed in more than one category, throw # in some cross references if ($#cat > 0) { $data{$i} .= "
ここにも含まれています: "; foreach $j (@cat) { if ($j ne $i) { if ($j eq $cat[0]) { $data{$i} .= " \u$j,"; } else { $data{$i} .= " \u$j,"; } } } # remove the trailing comma chop($data{$i}); } $data{$i} .= "

\n" } # Add an entry to the master index # workaround for SGML bug, `--' is not allowed in comments local($sname) = $name; $sname =~ s/--/-=/g; $master[$portnumber] = "$name " . " -- $desc
\n"; $portnumber++; } open(MOUTF, ">index.sgml"); &header(MOUTF, "FreeBSD Ports"); # print MOUTF "\n"; print MOUTF "&blurb;"; print MOUTF "

FreeBSD Ports コレクションには, 現時点で $portnumber 個の ports が提供されています.
全ての $portnumber 個の ports を tar でまとめて gzip したもの (およそ 5 メガバイト) をダウンロードするか, 以下の分類からたどってください:\n"; print MOUTF "

\n"; print MOUTF "\n"; &footer(MOUTF, ""); close(MOUTF); # Create the master index file open(MINDEX, ">master-index.sgml"); &header(MINDEX, "FreeBSD Ports コレクション 一覧"); print MINDEX "

\n"; print MINDEX sort @master; print MINDEX "

"; &footer(MINDEX, "
Port の分類
"); close(MINDEX); + close(INDEX); } diff --git a/ja/ports/ports.inc b/ja/ports/ports.inc index f5701957e0..1e35f203a2 100644 --- a/ja/ports/ports.inc +++ b/ja/ports/ports.inc @@ -1,113 +1,117 @@ - + - +

FreeBSD の Ports と Packages のコレクションは, ユーザや管理者が簡単にアプリケーショ ンのインストールを簡単に行う方法を提供します. -ここに並べられている各 ``port'' には, FreeBSD でオリジナルのアプリケー +ports コレクションは驚異的な速度で +その数を増してきました. + +

ここに並べられている各 ``port'' には, FreeBSD でオリジナルのアプリケー ションのソースコードをコンパイルし実行するために必要なパッチが全て含ま れています. アプリケーションのインストールは簡単で, port をダウンロードし, それを 展開し, port ディレクトリで make と打つだけです. より便利にするためには, インストール時に - + ports 階層全体 をインストール (あるいは CVSup を使ってこれらを最新のものに 更新) すれば, 何千ものアプリケーションがすぐに使えるようになります. 各 ports の Makefileは自動的に, ローカルディスクや CDROM, ftp 経由で アプリケーションのソースコードを取ってきて, あなたのシステム上で展開し, パッチをあて, コンパイルします. 問題がないようなら, あとはmake installとするだけでアプリケー ションをインストールして package システムへ登録できます.

ほとんどの ports には, あらかじめコンパイルされた package もあるので, すべてをコンパイルする時間を節約することができます. それぞれの port には対応する package へのリンクがあるので, そのファイルをダウンロードして pkg_add コマンドを 実行することもできますし, また pkg_add ではファイル名 と同じく FTP URL を使うこともできるのでリンク先を pkg_add することもできます.

ports についてもう少し詳しく知りたい場合には, ports コレクション を参照してくだ さい. 新しい ports を作るには, フリーソフトウェアの移植 を参照 してください. どちらも FreeBSD ハンドブック の一部です.

これらの web ページにリストされている ports は常に更新され続けています. まず最初に, あなたが使っているバージョンの FreeBSD のリリース以降に 開発された ports を使うためには FreeBSD システムのいくつかのファイルを 更新する必要があるかもしれません. 以下のリストの中から, あなたが使っている release にあったものをインストール してください. ここ数日のものより以前の FreeBSD-stable や FreeBSD-current を使っている 場合にも, 適切なアップグレードキットをインストールするのをお勧めします. ports システムは時により非常に速く変更されます.

2.2.1 から 2.2-stable へのアップグレードキット
2.2.1-release もしくは 2.2.1-release から 2.2.2-release の間の 2.2-stable ユーザ用
2.2.2 から 2.2-stable へのアップグレードキット
2.2.2-release もしくは 2.2.2-release から 2.2.5-release の間の 2.2-stable ユーザ用
2.2.5 から 2.2-stable へのアップグレードキット
2.2.5-release もしくは 2.2.5-release から 2.2.6-release の間の 2.2-stable ユーザ用
2.2.7 から 2.2-stable へのアップグレードキット
2.2.6-release, 2.2.7-release, 2.2.8-release もしくは 2.2.6-release 以降の 2.2-stable ユーザ用
3.0 から 3.1-stable へのアップグレードキット
3.0-release もしくは 3.0-release 以降の 3.0-stable ユーザ用
3.1 から 3.1-stable へのアップグレードキット
3.1-release もしくは 3.1-release 以降の 3.1-stable ユーザ用

これらは FreeBSD のパッケージになっています. インストールには pkg_add を使ってください. これでここに載っている全ての ports を使うことができるようになります. このアップグレードキットは ports やパッケージを使うのに必要なファイル だけを更新します. 3.1-stable への完全なアップグレードについては, ハンドブックの インターネットを通じたソースツリーの同期を参照してください. 完全なアップグレードが (まだ 2.2.7-release より前のバージョンを使っている 場合は特に)推奨されています. さらに, 2.2.X 系列は現在 ports-current では公式にはサポートされていません. ここにリストされている ports を使う場合は, たとえあなたの 2.2.X システムの リリースに含まれているものであっても, ``自分の責任で'' 行なってください.

多くの ports はコンパイルと実行に X Window System を必要とします. ports は XFree86 上でテ ストされています. 最新のリリースは 3.3.3.1 です. いくつかの ports は古い リリースでは動作しないかも知れません.

ports/packages の追加, 更新, 削除についての情報や, アプリケーションが ports/packages となっているかの検索は FreeBSD Ports 更新 ページを参照してください.

検索: