You can list the contents of a deb file by running
dpkg-deb --contents package.deb
dpkg-deb
can show a whole lot of information about a deb package. You can see the other options by running dpkg-deb --help
.
Unfortunately, you can't determine what files a Makefile will install. However, you can install to a temporary directory by setting the DESTDIR
variable. Note that this works well mainly on Makefiles generated by autotools
ie. the ./configure
script. For example:
cd sourcecode-1.2
./configure --prefix=/usr #Just the usual compiling stuff
make
mkdir /tmp/installedfiles #Create a temporary directory for the files
make DESTDIR=/tmp/installedfiles install
That last make
line will install the files in /tmp/installedfiles
. You can then see the files that would be created, although those files and directories will all be relative to the prefix specified in the configure script. In other words, /tmp/installedfiles/bin/mainprogram
would be installed as /usr/bin/mainprogram
.
I hope I answered your question :)
dpkg-deb --contents
will be installed. If you runmake install
, only the files listed in/tmp/installedfiles
will be installed. How was the list different between the two? Could you edit your question and add that? Also, could you post the package you are referring to? – Andrew Gunnerson Jul 06 '11 at 06:00debian/rules
file like this http://paste.ubuntu.com/638925/ – Andrew Gunnerson Jul 06 '11 at 15:26apt-get source gnash
and change your configure options indebian/rules
starting from line 34. – Andrew Gunnerson Jul 06 '11 at 15:28