patch -Np0 -i /path/to/where/you/saved/gnump3d_destdir_patch.diffInstead of doing "make install", do "make DESTDIR=/tmp/package-gnump3d install"After that all the files that would have been installed into "/" will be in /tmp/package-gnump3d. It also appears to create the log directories correctly.

Anyways, got some errors trying to apply the patch. Since there were some more adjustments needed, I looked in the diff file and manually copied/pasted the changes. Had to change $HERE to $(HERE) before it would make. This time it did create the /var directories.

However, now the /install directory is missing. I would have been really surprised if I didn't manage to mess up something along the way.

This simple little experiment turned out to be a great learning experience. I gained some understanding of the packaging structure. I learned workarounds and how to modify an existing package. I found that there are a lot of tools available and solutions to most problems. And most importantly: a wonderful forum with helpful people is one of the greatest assets of Vector Linux.

The re-writing of makeinstall appears to be an interesting challenge to the more advanced programmers, but it is beyond my current coding capabilities. I will be happy to test out further suggestions, but I'm marking my original question as solved.

Define solved? Is the package created? If not, I'd be happy to attempt to create a script and submit it to you to build. We all have our own ways of attacking the packages. I for one enjoy looking at other peoples methods. There is always something to learn.

Solved as in I got the package created using the steps outlined in my fourth post of this thread, thanks to easuter's reference to an intermediate directory and makepkg. I just used more steps than with the DESTDIR method.

I forgot to put (solved) in the title, but my fifth post was intended to express my satisfaction.

When the thread continued with "let's figure out why DESTDIR didn't work and how to fix that", I was happy to let the creative exchange continue and contribute what I could by being the tester. I know from personal experience, once a question enters my mind, it is hard to rest until I figure it out. As you said, there is always something to learn.