为 Perl 编写的应用程序构建 .deb 安装文件的常用工具有哪些?
所以我有一些源代码,我需要将其放入 .deb 二进制文件中,以便我可以轻松地部署在我的服务器上。我似乎很难找到易于使用的好工具来帮助我做到这一点。源代码是 Perl 语言。我确实知道它的所有依赖项。
我的问题是你知道/使用这样的工具吗?您为初学者推荐哪一个?
So I have some source code and I need to put it in a .deb binary so I can easily deploy on my server. I seem to be having trouble find good easy to use tools that will enable me to do so. The source code is in Perl. And I do know all of its dependencies.
My question is do you know/use such tool? Which do you recommend for a beginner?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Debian 有一个 Perl 模块特定的 deb 构建器,形式为 dh-make-perl。 Debian Administration 有一篇文章解释如何使用它。
Debian has a Perl module specific deb builder in the form of dh-make-perl. Debian Administration has an article explaining how to use it.
我建议使用
debhelper
。你可能会看看其他 Perl 应用程序是如何打包的,特别是关于这里是我能想到的
dh_make
) 的原始列表 - 将源档案转换为 Debian 包的工具source从现有包开始:
请注意,
apt-get source
通常会在控制台上打印软件包源的开发存储库,因此您可以bzrbranch lp :....
或git clone ...
直接贡献补丁。如果您有一个 devkey(在 launchpad.net 上注册),您可以创建一个 PPA(包存档)。您可以使用 dput 上传源包,这些源包将在所有适用的发行版/架构的构建场上自动构建。
如果您想在虚拟“裸”容器中模拟构建,请查看
pdebuild
(为目标发行版/系列创建 chroot)。如果你想与常见的其他工具集成(vim、git-dch:管理变更日志)等,请查看 git-buildpackage、devscripts、vim-addon-manager、debian-keyring、debian-goodies、gnome-pkg-tools、dpkg -dev
这就是我目前的想法。我在 6 个多月的时间里艰难地学会了这一点。以下是一些有价值的资源:
Debian 新维护者指南
I'd suggest
debhelper
. You might look at how other perl application are packaged, especially with respect toHere is a raw list of what I can think of
dh_make
) - tool that converts source archives into Debian package sourceStart from existing package:
sudo apt-get build-dep <pkgname>; apt-get source <pkgname>; cd <pkgname>-<version>/; debuild -S
Note that
apt-get source
will usually print the dev repo for the package source on the console, so you can thenbzr branch lp:....
orgit clone ...
to contribute patches directly.If you have a devkey (signup for one on launchpad.net) you can create a PPA (package archive). You can upload source packages using
dput
and these will get automatically built on the build farm for all applicable distributions/architecture.If you want to mimick building in a virtual 'bare' container, look at
pdebuild
(creates chroot for the target distribution/series).If you want to integrate with common other tools (vim, git-dch: manage changelogs) etc. look at git-buildpackage, devscripts, vim-addon-manager, debian-keyring, debian-goodies, gnome-pkg-tools, dpkg-dev
That's my braindump for the moment. I learned this the hard way over the course of 6+ months. Here are some valuable resources:
Debian New Maintainers' Guide