
debをビルドするときに、独立したデータ(プラグインファイルなど)を別の.debにどのようにパッケージ化しますか?
答え1
Debian パッケージングでは、このcontrol
ファイルにはソースパッケージから生成されるバイナリパッケージの詳細が含まれています。制御ファイルにアーキテクチャ依存パッケージとアーキテクチャ独立パッケージを指定する必要があります。
を使用すると、debhelper
ソフトウェアのビルドシステムをdebian / tmpにインストールしようとします。これを行う方法は、ソフトウェアのビルドシステムによって異なります。たとえば、ソフトウェアのビルドシステムが使用されている場合は、GNU autotools
次の簡単なルールを使用しますdebhelper
。
override_dh_auto_configure:
./configure \
--prefix=/tmp
dh_install
ここでは、パッケージングのためにそのファイルを適切なディレクトリに移動しようとします。これを行うには、という名前のバイナリパッケージごとにファイルを生成する必要があります<package_name>.install
。このファイルには、パッケージに含めるファイル名またはパターンが含まれている必要があります。
マンページの例は次のとおりですdh_install
。
EXAMPLE Suppose your package's upstream Makefile installs a binary, a man page, and a library into appropriate subdirectories of debian/tmp. You want to put the library into package libfoo, and the rest into package foo. Your rules file will run "dh_install --sourcedir=debian/tmp". Make debian/foo.install contain: usr/bin usr/share/man/man1 While debian/libfoo.install contains: usr/lib/libfoo*.so.* If you want a libfoo-dev package too, debian/libfoo-dev.install might contain: usr/include usr/lib/libfoo*.so usr/share/man/man3