How to modify a binary package
From Linux Mint
In this howto, we're using Opera as an example:
- Download latest .deb from opera.com (version for Ubuntu)
- Decompress it (right click --> Extract here)
- Decompress control.gz and rename the folder as DEBIAN
- Decompress data.gz and rename the folder as debian
- Delete all files just keep the two folders (debian and DEBIAN).
- Put DEBIAN into debian as in ./debian/DEBIAN
- in DEBIAN/control change version (for example 9.62-mint1)
- remove any existing DEBIAN/md5sum
- make your changes to the content of the package
- Go in the top level folder (for instance ~/Desktop/opera_9.63/)
- Type "dpkg-deb --build debian"
- Rename the resulting .deb file (for instance opera_9.63-mint1_i386.deb)
Useful link: http://thedarkmaster.wordpress.com/2008/05/24/how-to-create-manipulate-a-deb-file-of-a-compiled-application/

