Solaris10 Package Creation with variable

Dear All,

I am trying to build a solaris package with a variable, so that it can be installed with an environment. The prototype file contains the variables for user and group that can be parameterised during the package installation. The following is the prototype file and the error when building the package,

i pkginfo
i copyright
f none libiculx.so 0755 $dan $egroup
f none libicuuc.so 0755 $dan $egroup
f none libicui18n.so 0755 $dan $egroup
bash-3.00# pkgmk -o -r ./tree -d /var/spool/pkg/ -f prototype 
## Building pkgmap from package prototype file.
ERROR in prototype:
    garbled entry
    - pathname: libiculx.so
    - problem: no value defined for build variable <$dan>.
pkgmk: ERROR: unable to build pkgmap from prototype file
## Packaging was not successful.

Thanks for your valuable suggestions in advance

Sanchan

As the error message states, variables need to be defined. Use something like:

pkgmk -o -r ./tree -d /var/spool/pkg/ -f prototype dan=myuser egroup=mygroup

Thankyou for the valuable input provided, was able to build the package with ease