Solaris10 Package Creation with variable


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris10 Package Creation with variable
# 1  
Old 11-20-2011
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,

Code:
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


Code:
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

Last edited by DukeNuke2; 11-20-2011 at 05:37 AM..
# 2  
Old 11-20-2011
As the error message states, variables need to be defined. Use something like:
Code:
pkgmk -o -r ./tree -d /var/spool/pkg/ -f prototype dan=myuser egroup=mygroup

# 3  
Old 11-21-2011
Thankyou for the valuable input provided, was able to build the package with ease
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Dynamic Variable creation

I am trying to create some variables based on the input by the user, say if user entered 3 then 3 variables and if 5 then 5 variables. I am using a for loop for (( i=1; i <= $num; i++ )) do x="num" x+=$i done When i am using echo $x it will show num1 but now how to create variables... (3 Replies)
Discussion started by: Raj999
3 Replies

2. Solaris

SysV package creation, how to predefine DESTDIR

Hi Solaris experts How to predefine the DESTDIR in a Solaris package? Thanks (1 Reply)
Discussion started by: ./hari.sh
1 Replies

3. Solaris

Package creation problems with Source files

Hi, I am creating "LSOF" solaris package from solaris "source" files. I have compiled the source file and with that i created prototype file also. Then using pkgmk command i can make the package . In the package i am having (pkginfo pkgmap reloc) two file and one directory respectively But... (3 Replies)
Discussion started by: Kathirvel G
3 Replies

4. Emergency UNIX and Linux Support

Problem when trying to remove a package using rpm command - error: package is not installed

Hello, i have installed a package by using the command sudo rpm -i filepackage.rpm package filepackage is already installed when i try to remove it, i get an error saying "is not installed": sudo rpm -e filepackage.rpm error: package filepackage is not installed How can... (4 Replies)
Discussion started by: g_p
4 Replies

5. UNIX for Dummies Questions & Answers

Can't install rpm package with --prefix in new path.Error: package is not relocatable

Hello, i have downloaded an rpm package "hadoop-0.20.205.0-1.amd64.rpm" in /usr/local/ directory. I'm trying to install the rpm package in a new path/location (/usr/local/hadoop-0.20.205), but i can't. I did: 1st try: Didn't work sudo rpm -i --prefix=/usr/local/hadoop-0.20.205... (1 Reply)
Discussion started by: g_p
1 Replies

6. UNIX for Advanced & Expert Users

How to find dependancies of .dstream package (Solaris) & .rpm package( linux)

Friends, Please let meknow, How we can find the dependancies of .dstream package & .rpm package before installation ? For AIX, We can use the inutoc . command to create the .toc file for the bff package, What about Solaris & Linux ? (0 Replies)
Discussion started by: yb4779
0 Replies

7. AIX

mkinstallp package creation failing "no such file: ./usr/lpp/<package name>/inst_root"

Hello, I'm trying to build a (bff) package from an already installed program (clam antivirus) using mkinstallp. However, mkinstallp fails with "no such file: ./usr/lpp/<package name>/inst_root" I'm not sure why all files get created ok except for these particular ones. Any help would be... (2 Replies)
Discussion started by: omonte
2 Replies

8. Linux

how to restore original package after uninstalling the upgraded package using rpm

have following package installed rpm -qa |grep ADMIN It will give the following package installed: ADMIN-4.0.0.1 Now I will upgrade the ADMIN package using the following command. rpm --upgrade ADMIN-4.1.0.1 It will upgrade the ADMIN packagge to ADMIN-4.1.0.1 Now I want that... (0 Replies)
Discussion started by: amitpansuria
0 Replies

9. Shell Programming and Scripting

creation variable

I want to define a variable like this. Can i declare such type? I have already define this, but error is displaying sysntax error. So tell me what will be the write. int create_mailfile(int,char*,char*,char*,char*,char*,char*); (1 Reply)
Discussion started by: debasis.mishra
1 Replies
Login or Register to Ask a Question