Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pkgmk/pkgadd Solaris 9 1

Status
Not open for further replies.

jhahs

Technical User
Oct 19, 2004
29
US
I am trying to use pkgadd to perform updates to a home grown program. It consists of just copping a couple of files and creating the directories if needed. I can get the pkgmk to complete, but when I run the pkgadd, it says it completed, but the files are not transfered. Do I need a script to do the install? Or am I barking up the wrong tree?
Below are the pkinfo and pkginfo and prototype files.

prototype:
!search /export/home2/csp/CSPPKG/csp/bin /export/home2/csp/CSPPKG/csp/bin/AATESTDIR
i pkginfo=/export/home2/csp/InfoFiles/pkginfo

d none csp 755 csp other
d none csp/bin 755 csp other
d none csp/bin/AATESTDIR 755 csp other
f none csp/bin/AATESTDIR/aatest.exp 755 csp other
f none csp/bin/AATESTDIR/aatest.tcl 755 csp other
f none csp/bin/dactest 755 csp other

pkginfo:
PKG="VBZcsp"
ARCH="sparc"
VERSION="release 2.0"
NAME="Test package add for csp"
CATEGORY="application"
BASEDIR="/export/home2/csp"
CLASSES="NONE"
 
You don't need a script to do the install, the pkgadd should do that automatically.

Are the files making it into your package file in the first place? Try using pkgtrans to convert it from a package file to a package directory and examining the contents.

I notice you specify a basedir which includes csp, and then refer to another csp directory under that in the pkginfo file, i.e. the dactest file would go in /export/home2/csp/csp/bin/dactest. Was that intentional? If not, that could explain the problem, if you are running the pkgmk from /export/home2/csp and it is looking for csp/bin/dactest instead of bin/dactest then it may not find it and include it in the package.

Annihilannic.
 
The file appears to be making it into the package. The directory structure of the package is "/var/spool/pkg/VBZcsp/reloc/csp/bin/dactest".
Yes, the "/export/home2/csp/csp/bin" is the intended directory. The pkgchk comes back with "Package VBZcsp is installed but empty
 
I copied your pkginfo and prototype and fiddled around a bit... eventually got it to install. I think the problem is that you have specified CLASSES="NONE" but listed the files as being part of class "none", which appears to be case sensitive. In my own pkginfo files I don't usually specify CLASSES at all, so it must default to "none". Try changing or removing that line from pkginfo.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top