Manpages

名 前

dh_installdeb − DEBIAN デ ィ レ ク ト リ に フ ァ イ ル を イ ン ス ト ー ル す る

書 式

dh_installdeb [debhelper options]

説 明

dh_installdeb は 、 パ ッ ケ ー ジ ビ ル ド デ ィ レ ク ト リ に あ る DEBIAN デ ィ レ ク ト リ 以 下 に 、 適 切 な 権 限 を 持 っ た 状 態 で フ ァ イ ル を イ ン ス ト ー ル す る 役 目 の debhelper プ ロ グ ラ ム で す 。

フ ァ イ ル

package.postinst
package
.preinst
package
.postrm
package
.prerm こ れ ら の メ ン テ ナ ス ク リ プ ト は DEBIAN デ ィ レ ク ト リ 以 下 に イ ン ス ト ー ル さ れ ま す 。 ス ク リ プ ト 中 の #DEBHELPER# の 文 言 は 、 他 の debhelper コ マ ン ド が 生 成 す る シ ェ ル ス ク リ プ ト の ス ニ ペ ッ ト で 置 き 換 え ら れ ま す 。
package
.triggers
package
.shlibs こ れ ら の フ ァ イ ル 群 は DEBIAN デ ィ レ ク ト リ 以 下 に イ ン ス ト ー ル さ れ ま す 。

Note that package.shlibs is only installed in compat level 9 and earlier. In compat 10, please use dh_makeshlibs(1).

package.conffiles こ の control フ ァ イ ル は DEBIAN デ ィ レ ク ト リ 以 下 に イ ン ス ト ー ル さ れ ま す 。 互 換 性 レ ベ ル が v3 以 上 の 場 合 、 パ ッ ケ ー ジ 内 の etc/ 以 下 の 全 フ ァ イ ル は 、 こ の プ ロ グ ラ ム に よ り conffile と し て 自 動 的 に フ ラ グ が つ け ら ま す 。 そ の 為 、 い ち い ち 自 分 で 列 挙 す る 必 要 は あ り ま せ ん 。
package
.maintscript

Lines in this file correspond to dpkg−maintscript−helper(1) commands and parameters. However, the "maint-script-parameters" should not be included as debhelper will add those automatically. 例 :

    # 正 解
    rm_conffile /etc/obsolete.conf 0.2~ foo
    # 不 正 解
    rm_conffile /etc/obsolete.conf 0.2~ foo −− "$@"

In compat 10 or later, any shell metacharacters will be escaped, so arbitrary shell code cannot be inserted here. For example, a line such as "mv_conffile /etc/oldconffile /etc/newconffile" will insert maintainer script snippets into all maintainer scripts sufficient to move that conffile.

It was also the intention to escape shell metacharacters in previous compat levels. However, it did not work properly and as such it was possible to embed arbitrary shell code in earlier compat levels.

The dh_installdeb tool will do some basic validation of some of the commands listed in this file to catch common mistakes. The validation is enabled as a warning since compat 10 and as a hard error in compat 12.

参 照

debhelper(7) こ の プ ロ グ ラ ム は debhelper の 一 部 で す 。

作 者

Joey Hess <joeyh [AT] debian.org>