=encoding euc-jp =head1 名前 PAR::Dist - PARディストリビューションの作成と操作 =head1 概要 As a shell command: シェルコマンドで: % perl -MPAR::Dist -eblib_to_par In programs: プログラムから: use PAR::Dist; my $dist = blib_to_par(); # ./blib/を使ってPARファイルを作成 install_par($dist); # それをシステムにインストール uninstall_par($dist); # システムからアンインストール sign_par($dist); # Module::Signatureを使って署名 verify_par($dist); # Module::Signatureを使って照合 install_par("http://example.com/DBI-latest.par"); # これも動作する =head1 説明 This module creates and manipulates I. They are architecture-specific B files, containing everything under F of CPAN distributions after their C or C stage. このモジュールはIの生成と操作を行なう。 PARディストリビューションはアーキテクチャに特化したBファイルで、 CあるいはC段階が済んだCPANディストリビューションの F下にある全ファイルを含んでいる。 The naming convention for such distributions is: このようなディストリビューションに対する慣習的な名前は: NAME-VERSION-ARCH-PERL_VERSION.par For example, C corresponds to the 0.01 release of C on CPAN, built for perl 5.8.0 running on C. 例えば、Cは、 CPANのCリリース0.01、C上で実行される perl 5.8.0用にビルトされたものに対応する。 =head1 関数 Five functions are exported by default. They can take either a hash of named arguments, a single C<$dist> argument, or no arguments (in which case the first PAR file in the current directory is used). デフォルトでは五つの関数がエクスポートされる。これらの関数は、名前付き 引数のハッシュ、単一のC<$dist>引数、あるいは引数無し (現在のディレクトリにある最初のPARファイルを使う場合)のいずれかを 取ることができる。 Therefore, under a directory containing only a single F, all invocations below are equivalent: よって、ただFだけを含むディレクトリ下では、下記の呼び出しは 全て等価である: % perl -MDist::PAR -e"install_par( dist => 'test.par' )" % perl -MDist::PAR -e"install_par( 'test.par' )" % perl -MDist::PAR -einstall_par; If C<$dist> resembles a URL, C is called to mirror it locally under C<$ENV{PAR_TEMP}> (or C<$TEMP/par/> if unspecified), and the function will act on the fetched local file instead. C<$dist>がURLに似ている場合、Cが呼び出されて ローカルのC<$ENV{PAR_TEMP}>(未指定の場合はC<$TEMP/par/>)下に ミラーする。この場合そのローカルファイルに対して関数は作用する。 =head2 blib_to_par Builds a PAR distribution from the F subdirectory under C<$path>, or under the current directory if unspecified. If F does not exist, it automatically runs C, C, C or C to create it. C<$path>下、あるいは指定していなければ現在のディレクトリ下の FサブディレクトリからPARディストリビューションをビルトする。 Fが存在しない場合、そのディレクトリを作成するために C、C、CあるいはCが自動的に実行される。 Returns the filename or the generated PAR distribution. 戻り値はファイル名か生成されたPARディストリビューション。 =head2 install_par Installs a PAR distribution into the system, using C. PARディストリビューションをシステムにインストールする。これは Cを使ってなされる。 =head2 uninstall_par Uninstalls all previously installed contents of a PAR distribution, using C. 以前インストールしたPARディストリビューションをアンインストールする。 これはCを使ってなされる。 =head2 sign_par Digitally sign a PAR distribution using C or B, via B. PARディストリビューションにデジタル署名を行なう。これは Bを通じてCかBを使ってなされる。 =head2 verify_par Verify the digital signature of a PAR distribution using C or B, via B. PARディストリビューションのデジタル署名を照合する。これは Bを通じてCかBを使ってなされる。 Returns a boolean value indicating whether verification passed; C<$!> is set to the return code of C. 照合が通るかどうかを示すのにブール値が返される;C<$!>に Cの返りコードがセットされる。 =head1 参考 L, L, L, L =head1 作者 Autrijus Tang Eautrijus@autrijus.orgE PAR has a mailing list, Epar@perl.orgE, that you can write to; send an empty mail to Epar-subscribe@perl.orgE to join the list and participate in the discussion. Please send bug reports to Ebug-par@rt.cpan.orgE. =head1 著作権 Copyright 2003 by Autrijus Tang Eautrijus@autrijus.orgE. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See L