.\" dpkg manual page - deb-triggers(5) .\" .\" Copyright 息 2008 Guillem Jover .\" Copyright 息 2011 Rapha谷l Hertzog .\" .\" This is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2 of the License, or .\" (at your option) any later version. .\" .\" This is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . . .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH deb\-triggers 5 2011\-08\-14 "Debian Project" "dpkg ユーティリティ" .SH 名前 deb\-triggers \- パッケージトリガ . .SH 書式 triggers . .SH 説明 パッケージは、 control アーカイブ内に \fItriggers\fP ファイル (つまりはパッケージ生成の際の \fIDEBIAN/triggers\fP など) を含めることで、トリガに対する関連付けを定義する。 .PP このファイルには、各行ごとに 1 つのディレクティブが含まれる。行頭及び行末の空白文字と、\fB#\fP 以降の記載および空行は無視される。 .PP 現在サポートされているトリガ制御ディレクティブを以下に示す: .PP .in +5 \fBinterest\fP \fItrigger\-name\fP .PP .in +5 \fBinterest\-noawait\fP \fItrigger\-name\fP .PP .in +5 パッケージが、指定されたトリガをウォッチすることを示す。パッケージがウォッチするすべてのトリガは、トリガ制御ファイル内で本ディレクティブを用いて列挙しておく必要がある。"noawait" をつけることで、ステータスが trigger\-awaitedであっても、パッケージがトリガされなくなる。これは、トリガによって提供される機能が重要でない場合に使用すべきである。 .PP .in +5 \fBactivate\fP \fItrigger\-name\fP .PP .in +5 \fBactivate\-noawait\fP \fItrigger\-name\fP .PP .in +5 本パッケージの状態が変化した際に、指定したトリガを有効化するように設定する。トリガは次の操作の開始により有効化される: unpack, configure, remove(競合状態にあるパッケージによるものも含まれる), purge, deconfigure 。"noawait" をつけることで、ステータスが trigger\-awaited であっても、パッケージがトリガされなくなる。これは、トリガによって提供される機能が重要でない場合に使用すべきである。 .PP .in +5 他のパッケージを unpack している最中に本パッケージが削除された場合、unpack終了時に削除が確認された際に、トリガが有効化される。トリガ処理自体やtriggers\-awaited から installed への状態変化により、トリガが有効化されることはない。unpack の場合、パッケージの旧バージョンと新バージョンの両方で定義されているトリガが有効化される。 .PP 不明なディレクティブがあるとエラーが発生し、パッケージのインストールが失敗する。 .PP "\-noawait" は、dpk 1.16.1 以降でのみサポートされ、それ以前の dpkg で使用するとエラーとなる。そのため、これらのディレクティブを使用するパッケージは、"Pre\-Depends: dpkg (>= 1.16.1)" を付加することが推奨される。 . .SH 関連項目 \fBdpkg\-trigger\fP(1), \fBdpkg\fP(1), \fB/usr/share/doc/dpkg\-dev/triggers.txt.gz\fP. .SH 翻訳者 高橋 基信 . 喜瀬 浩 . 関戸 幸一 . 鍋谷 栄展 . 倉澤 望 . 石川 睦 . 鵜飼 文敏 . 中野 武雄 . .SH 翻訳校正 Debian JP Documentation ML .