Can the changes be automated so that the package gets rebuilt with my custom options on each upgrade?
PaulCarroty
[ Editor ]
Easy way
Unpack data:
dpkg -x ~./tmp/some-prog-123.deb ./someprog
Unpack control information:
mkdir ~/tmp/someprog/DEBIAN
dpkg -e ~/tmp/some-prog-123.deb ./someprog/DEBIAN
Change file or settings …
Build the package with new file/option:
dpkg -b ./someprog ~/tmp/some-prog-123-new.deb
This is not about rebuilding from source but rather about modifying an existing binary package. If this is really what you want to do, you can script it to some extend using the “customdeb” package.
It still does not do something automatically upon upgrade, though.