Build Debian Package - stereoboy/Study GitHub Wiki
References
- Guide for Debian Maintainers
- Debian New Maintainers' Guide (Old version)
{pre,post}{inst,rm}
Debugging preinst
postinst
scripts and Rebuild by dpkg-deb
mkdir tmp
dpkg-deb -R original.deb tmp
# edit DEBIAN/postinst
dpkg-deb -b tmp fixed.deb
Version and Name Rule
$ dpkg --compare-versions '1.0-0~201~ubuntu14.04.1' lt '1.0+r201~daily~ubuntu14.04.1' && echo less than
less than
with debmake
debian/debhello/usr/bin/hello
src/hello
tar czvf debhello-0.0.tar.gz ./debhello-0.0
with dpkg-buildpackage -us -uc
dpkg-buildpackage -b -us -uc // -b binary only
fakeroot debian/rules binary
or
fakeroot debian/rules build