0

我使用dpkg-buildpackage为我的应用程序构建 debian 和 Ubuntu 软件包。到目前为止这工作正常,但我想知道为什么我安装的一些文件(*.json 和 *.md)/usr/share/doc/最终通过 apt 或 dpkg 安装为目标机器上的 *.gz。

例如,我${PACKAGE_ROOT}/usr/share/doc/samba-exporter/grafana/SambaService.jsondebian/rules构建脚本中安装了一个示例 json 文件。但是当创建包时,我/usr/share/doc/samba-exporter/grafana/SambaService.json.gz在包中找到。该文件也作为压缩版本安装在目标机器上。

我在文件夹中看到我的“更大”(超过 5kB)文件的这种行为/usr/share/doc/*。较小的按原样安装。

我想知道这是否是因为https://www.debian.org/doc/debian-policy/ch-docs.html#additional-documentation?那里的Debian团队告诉Plain text documentation should be compressed with gzip -9 unless it is small

我可以看到原因,但在现代,我认为 5kB 或 20kB 的文件很小。

那么,有人知道为什么会发生这种情况,以及如何覆盖这种行为吗?

感谢您提供任何帮助。
伊克

PS:您可能想在这里检查一个示例包:https ://github.com/imker25/samba_exporter/releases/download/1.6.2-pre/samba-exporter_1.6.2-pre.ppa1.debian11_amd64.deb

4

0 回答 0