Having only a binary package at hand, how would I construct a new (updated) package from the base one?
What I did:
md pac-2.0
cd pac-2.0
ar x ../<package>.deb (-> control.tar.gz, data.tar.gz, and debian-binary)
tar -xf data.tar.gz (-> files in ./bin, ./share)
md debian
cd debian
tar -xf ../control.tar.gz (some control files)
cd ..
dh_make --addmissing
rm <no_longer_used_extracted_files_from_deb_package>
ls (->seeing ./debian, ./bin, and ./share)
dpkg-buildpackage --build=binary
The usual files are created but pac_2.0-*.deb does not contain the files from data.tar.gz.
As I'm pretty new to this, this might be the complete wrong way of doing this; however, I don't want to ressort to using dpkg-deb --raw-extract/--build...