我有一个非常简单的命令行程序,它实际上由一个python脚本和一些辅助shell脚本组成。我想了解打包这个程序,尽管它是微不足道的。checkinstall创建无用的deb?
从我收集的内容中,我找到了configure/make/install路径。由于我没有有什么配置,或任何做,我简单的创建一个Makefile与只不过是安装部分:
install:
cp ./myProgram /usr/bin/my-program
chown root:root /usr/bin/my-program
chmod 777 /usr/bin/my-program
cp -r ./ProgramResources /usr/lib/my-program
chown -hR root:root /usr/lib/my-program
chmod -R 777 /usr/lib/my-program
在这一点上,我的程序安装并运行正常使用sudo make install的。
然后,我试图让使用checkinstall一个deb文件,如下所示:
sudo checkinstall sudo make install
这似乎让过去的安装部分,因为它报告它成功,但随后失败:
======================== Installation successful ==========================
cp: cannot stat `//var/tmp/tmp.jKCmESc0v7/newfiles.tmp': No such file or directory
Copying files to the temporary directory...OK
Stripping ELF binaries and libraries...OK
Compressing man pages...OK
Building file list... FAILED!
Building Debian package...OK
Installing Debian package...OK
Erasing temporary files...OK
Deleting temp dir...OK
**********************************************************************
Done. The new package has been installed and saved to
...
该程序已安装,但据我所知,这个新创建的.deb文件什么都不做。的dpkg -L我的计划产量仅
/.
,并手动删除它,然后在DEB文件安装不出现做任何事情 - 它实际上并没有放任何文件的任何地方。
所以,(1)我的方法有什么问题吗? (2)如何解决checkinstall问题?
非常感谢您的回答,尽管我很擅长使用代码,但我从来不知道有关打包/分发的任何信息。