-
安装工具与依赖
# apt install build-essential devscripts
-
基于源码包制作:
$ tar xf foo-0.1.tar.gz $ cd foo-0.1 $ ls foo.c Makefile $ dh_make -f ../foo-0.1.tar.gz $ ls debian foo.c Makefile $ ls ../ foo_0.1 foo_0.1-1_mips64el.buildinfo foo_0.1.orig.tar.gz foo_0.1-1.dsc foo-0.1.tar.gz foo_0.1-1_mips64el.changes foo_0.1-1_mips64el.build foo_0.1-1_mips64el.deb 指定要的安装文件及路径 $ vim debian/foo.install foo /opt/foo-0.1 修改debian/control 的Architecture: 类型。 all 所有架构 any 本地架构 $ vim debian/control Architecture: any 编译打包 $ debuild -us -uc $ ls ../ foo_0.1 foo_0.1-1.debian.tar.xz foo_0.1-1_mips64el.buildinfo foo_0.1.orig.tar.gz foo-0.1.tar.gz foo_0.1-1.dsc foo_0.1-1_mips64el.changes foo_0.1-1_mips64el.build foo_0.1-1_mips64el.deb foo-dbgsym_0.1-1_mips64el.deb foo_0.1-1.debian.tar.xz 里面是debian 文件
-
基于二进制包制作:
$ cd foo-0.2 $ ls foo $ dh_make --native $ ls debian foo $ debuild -us -uc $ ls ../ foo_0.2.dsc foo_0.2_mips64el.buildinfo foo_0.2.tar.xz foo_0.2_mips64el.deb foo_0.2_mips64el.build foo_0.2_mips64el.changes foo-dbgsym_0.2_mips64el.deb
-
参考文档
https://www.debian.org/doc/manuals/maint-guide/index.zh-cn.html
如何制作deb包(基于源码包与二进包)
最新推荐文章于 2024-05-18 11:03:52 发布