Topic
2 replies Latest Post - ‏2012-10-12T09:39:32Z by jklotz
vishal284
vishal284
1 Post
ACCEPTED ANSWER

Pinned topic sample template file for mkinstallp

‏2012-10-11T09:32:38Z |
I want to make installer but i have no knowledgw about template file
i want to copy many files in different-2 path from my package but i am unable to install.
please see below comment.
when i run follwing commands
*mkdir -p /tmp/packages/opt/HYDRAstor/hydraOST

*touch /tmp/packages/opt/HYDRAstor/hydraOST/foooop

*mkinstallp -d /tmp/packages

Using /tmp/packages as the base package directory.
Using /tmp/packages/.info to store package control files.
Cleaning intermediate files from /tmp/packages/.info.

************************************************************
Beginning interactive package input
* - required; () - example value; [] - default value

************************************************************

  • Package Name (xyz.net) []: ret.net
  • Package VRMF (1.0.0.0) []: 1.0.0.0
Update (Y/N) [N]: n
Number of filesets in ret.net (1) [1]: 1

Gathering info for new fileset (1 remaining)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  • Fileset Name (ret.net.rte) []: ret.net.rte
  • Fileset VRMF (1.0.0.0) []: 1.0.0.0
  • Fileset Description (some text) []: ok
Entering information for the USER part liblpp files
Do you want to include an installp pre_i/u script for this fileset? (Y/N) [N]: n
Do you want to include an installp post_i/u script for this fileset? (Y/N) [N]: n
Do you want to include an installp pre_rm script for this fileset? (Y/N) [N]: n
Do you want to include an installp config script for this fileset? (Y/N) [N]: n
Would you like to create ROOT part? (Y/N) [N]: n
Bosboot required (Y/N) [N]: n
License agreement acceptance required (Y/N) [N]: n
Include license files for ret.net.rte in this package (Y/N) [N]: n
Do you want to specify Requisites using a file for this fileset? (Y/N) [N]: n
Number of Requisites for ret.net.rte (1) [0]: 0
Number of filesystems requiring additional space for ret.net.rte [0]: 0

You should include any directories that you are creating in the file count.
(ie: For /usr/proj/myFile, enter 2; 1 for /usr/proj and 1 for /usr/proj/myFile)
Number of USR part files in ret.net.rte (1) [0]: 0
Do you want to make this fileset relocatable? (Y/N) [N]: n
Do you want to include an override inventory file for this fileset? (Y/N) [N]: n
Do you want to add WPAR attributes to your fileset? (Y/N) [N]: n
Using /tmp/packages/.info/ret.net.template as the template file.
ret.net 1.0.0.0 I
processing ret.net.rte
creating ./.info/liblpp.a
creating ./tmp/ret.net.1.0.0.0.bff

*installp -ld /tmp/packages/tmp/
c.net.1.0.0.0.bff io.net.1.0.0.0.bff ret.net.1.0.0.0.bff tu.net.1.0.0.0.bff
bash-3.2# installp -ld /tmp/packages/tmp/
c.net.1.0.0.0.bff io.net.1.0.0.0.bff ret.net.1.0.0.0.bff tu.net.1.0.0.0.bff
bash-3.2# installp -ld /tmp/packages/tmp/ret.net.1.0.0.0.bff
Fileset Name Level I/U Q Content
====================================================================
ret.net.rte 1.0.0.0 I N usr
  1. ok
bash-3.2# installp -ad /tmp/packages/tmp/ret.net.1.0.0.0.bff ret.net.rte
-----------------------------------------------------------------------------
Pre-installation Verification...
-----------------------------------------------------------------------------
Verifying selections...done
Verifying requisites...done
Results...

SUCCESSES

Filesets listed in this section passed pre-installation verification
and will be installed.

Selected Filesets

ret.net.rte 1.0.0.0 # ok

<< End of Success Section >>

-----------------------------------------------------------------------------
BUILDDATE Verification ...
-----------------------------------------------------------------------------
Verifying build dates...done
FILESET STATISTICS
1 Selected to be installed, of which:
1 Passed pre-installation verification
----
1 Total to be installed

-----------------------------------------------------------------------------
Installing Software...
-----------------------------------------------------------------------------

installp: APPLYING software for:
ret.net.rte 1.0.0.0

Finished processing all filesets. (Total time: 1 secs).

-----------------------------------------------------------------------------
Summaries:
-----------------------------------------------------------------------------

Installation Summary

Name Level Part Event Result

ret.net.rte 1.0.0.0 USR APPLY SUCCESS

but from the root path /opt/HYDRAstor/hydraOST
I do not found foooop file

could you suggest any sample of template file .
my problem is - when i created /tmp/package/opt/HYDRAstor/hydraOST/foooop
but after i install my pacakage i do not found foooop in this path /opt/HYDRAstor/hydraOST.
Thanks in advance.
Updated on 2012-10-12T09:39:32Z at 2012-10-12T09:39:32Z by jklotz
  • jklotz
    jklotz
    5 Posts
    ACCEPTED ANSWER

    Re: sample template file for mkinstallp

    ‏2012-10-12T09:21:20Z  in response to vishal284
    The NIM redbook contains some (basic) paragraphaphs on that topic :

    http://www.redbooks.ibm.com/abstracts/sg247296.html
    • jklotz
      jklotz
      5 Posts
      ACCEPTED ANSWER

      Re: sample template file for mkinstallp

      ‏2012-10-12T09:39:32Z  in response to jklotz
      ... and a few more informations in the C/C++ redbook :) :

      http://www.redbooks.ibm.com/redbooks/pdfs/sg245674.pdf