A good starting point is the Debian Binary Package Building HOWTO. The postinst and prerm scripts can be placed in /DEBIAN/ and dpkg-deb will do the right thing when building the package.
The ubuntu wiki also has a nice introduction.
Tags: deb, debian, dpkg-deb, howto, introduction, package, postinst, prerm, ubuntu
Leave a comment