patching a package, checksums
From: Marc (marc.glisse_at_gmail.com)
Date: Fri, 26 Nov 2004 22:12:47 +0000 (UTC)
After patching a package, what is the easiest way to update the pkgmap
file to have it reflect the new checksums?
Here is the context. I want to use blastwave packages on a machine where
I am not root. I am installing the packages in /tmp/csw (symlink to
somewhere in my home directory) instead of /opt/csw. I do a binary patch
of the .pkg file for that. Now at first I thought I had to install the
packages by hand: pkgtrans to turn the package into something usable,
then a script that reads pkgmap and installs whatever is necessary. But
then I realized that thanks to fakeroot I could actually use pkgadd (and
other similar tools). I actually use it with a -R option, of course.
But now pkgadd is not happy, because I cannot chown the files to root, as
the pkgmap file says. So I need to patch that file to make it use only my
login and my primary group. So the first question is whether there exists
an other way to tell pkgadd to forget about the chown and chgrp and just
keep my uid/gid.
Next, pkgadd complains because the checksums of the files it installed
are wrong (well of course, I patched them to replace /opt/csw by
/tmp/csw). Now the main question: is there an easy way to deal with that?
I looked into pkgmk, but it seems you cannot do something as easy as
using the old pkgmap file as a prototype file to generate an updated
pkgmap. By the way if there was a possibility to solve the other problem
during this step, that would be great.
If you can give me any tip, any pointer to the right documentation...