backup and restore without losing pkinfo

I have a server that I'm about to upgrade from Sol8 to Sol10.

One of the application on the server was installed using pkgadd - so pkginfo still displays the info. The files for that package is no longer available.

What files or contents do I need to backup, then restore later if I want to be able to display that application using pkginfo?

Thanks.

There is a script which will rebuild a package from the pkginfo & pkgmap.

Unfortunately I cant remember where I saw it. You could try googling for it and reinstall the pakage afterwards.

There is a script which will rebuild a package from the pkginfo & pkgmap.

Unfortunately I cant remember where I saw it. You could try googling for it and reinstall the pakage afterwards.

The package information is in /var/sadm/pkg IIRC. There will also be package related lines in /var/sadm/install/contents, use "grep <pkgname> /var/sadm/install/contents" to pull out the files directories and symbolic links realtiing to your package.
Reconstructing the package as mentioned by reborg above would be the best policy.