home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat1 / installf.z / installf
Encoding:
Text File  |  1998-10-20  |  15.3 KB  |  263 lines

  1.  
  2.  
  3.  
  4. iiiinnnnssssttttaaaallllllllffff((((1111MMMM))))                                                      iiiinnnnssssttttaaaallllllllffff((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff - add a file to the software installation database
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff [_----_cccc _c_l_a_s_s] _p_k_g_i_n_s_t _p_a_t_h_n_a_m_e [_f_t_y_p_e [[_m_a_j_o_r _m_i_n_o_r]
  13.           [_m_o_d_e _o_w_n_e_r _g_r_o_u_p]]]
  14.      _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff [_----_cccc _c_l_a_s_s] _p_k_g_i_n_s_t _----
  15.      _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff _----_ffff [_----_cccc _c_l_a_s_s] _p_k_g_i_n_s_t
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff informs the system that a pathname not listed in the _pppp_kkkk_gggg_mmmm_aaaa_pppp file
  19.      is being created or modified.  It should be invoked before any file
  20.      modifications have occurred.
  21.  
  22.      When the second synopsis is used, the pathname descriptions will be read
  23.      from standard input.  These descriptions are the same as would be given
  24.      in the first synopsis but the information is given in the form of a list.
  25.      (The descriptions should be in the form:  _p_a_t_h_n_a_m_e [_f_t_y_p_e [[_m_a_j_o_r _m_i_n_o_r]
  26.      [_m_o_d_e _o_w_n_e_r _g_r_o_u_p]]].)
  27.  
  28.  
  29.  
  30.  
  31.  
  32.      After all files have been appropriately created and/or modified, _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff
  33.      should be invoked with the _----_ffff synopsis to indicate that installation is
  34.      final.  Links will be created at this time and, if attribute information
  35.      for a pathname was not specified during the original invocation of
  36.      _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff or was not already stored on the system, the current attribute
  37.      values for the pathname will be stored.  Otherwise, _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff verifies
  38.      that attribute values match those given on the command line, making
  39.      corrections as necessary.  In all cases, the current content information
  40.      is calculated and stored appropriately.
  41.  
  42.      _----_cccc _c_l_a_s_s  Class to which installed objects should be associated.  Default
  43.                class is _nnnn_oooo_nnnn_eeee.
  44.  
  45.      _p_k_g_i_n_s_t   Name of package instance with which the pathname should be
  46.                associated.
  47.  
  48.      _p_a_t_h_n_a_m_e  Pathname that is being created or modified.  Special
  49.                characters, such as an equal sign (_====), are included in
  50.                pathnames by surrounding the entire pathname in single quotes
  51.                (as in, for example, _''''_////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_~~~~_====_'''').  When a pathname is
  52.                specified on a shell command line, the single quotes must be
  53.                preceded by backslashes so they're not interpreted by the
  54.                shell.
  55.  
  56.      _f_t_y_p_e     A one-character field that indicates the file type.  Possible
  57.                file types include:
  58.  
  59.  
  60.  
  61.  
  62.                                                                         PPPPaaaaggggeeee 1111
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. iiiinnnnssssttttaaaallllllllffff((((1111MMMM))))                                                      iiiinnnnssssttttaaaallllllllffff((((1111MMMM))))
  70.  
  71.  
  72.  
  73.                    _ffff  a standard executable or data file
  74.                    _eeee  a file to be edited upon installation or removal
  75.                    _vvvv  volatile file (one whose contents are expected to
  76.                       change)
  77.                    _dddd  directory
  78.                    _xxxx  an exclusive directory
  79.                    _llll  linked file
  80.                    _pppp  named pipe
  81.                    _cccc  character special device
  82.                    _bbbb  block special device
  83.                    _ssss  symbolic link
  84.  
  85.      _m_a_j_o_r     The major device number.  The field is only specified for block
  86.                or character special devices.
  87.  
  88.      _m_i_n_o_r     The minor device number.  The field is only specified for block
  89.                or character special devices.
  90.  
  91.      _m_o_d_e      The octal mode of the file (for example, 0664).  A question
  92.                mark (?)  indicates that the mode will be left unchanged,
  93.                implying that the file already exists on the target machine.
  94.                This field is not used for linked or symbolically linked files.
  95.  
  96.      _o_w_n_e_r     The owner of the file (for example, _bbbb_iiii_nnnn or _rrrr_oooo_oooo_tttt).  The field is
  97.                limited to 14 characters in length.  A question mark (?)
  98.                indicates that the owner will be left unchanged, implying that
  99.                the file already exists on the target machine.  This field is
  100.                not used for linked or symbolically linked files.
  101.  
  102.      _g_r_o_u_p     The group to which the file belongs (for example, _bbbb_iiii_nnnn or _ssss_yyyy_ssss).
  103.                The field is limited to 14 characters in length.  A question
  104.                mark (?) indicates that the group will be left unchanged,
  105.                implying that the file already exists on the target machine.
  106.                This field is not used for linked or symbolically linked files.
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.                                                                         PPPPaaaaggggeeee 2222
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135. iiiinnnnssssttttaaaallllllllffff((((1111MMMM))))                                                      iiiinnnnssssttttaaaallllllllffff((((1111MMMM))))
  136.  
  137.  
  138.  
  139.      _----_ffff        Indicates that installation is complete.  This option is used
  140.                with the final invocation of _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff (for all files of a given
  141.                class).
  142.  
  143. NNNNOOOOTTTTEEEESSSS
  144.      When _f_t_y_p_e is specified, all applicable fields, as shown below, must be
  145.      defined:
  146.           cf2 cf2 lf4 lf4.  ftype     Required Fields p x d f v or _eeee _mmmm_oooo_dddd_eeee
  147.           _oooo_wwww_nnnn_eeee_rrrr _gggg_rrrr_oooo_uuuu_pppp _cccc or _bbbb    _mmmm_aaaa_jjjj_oooo_rrrr _mmmm_iiii_nnnn_oooo_rrrr _mmmm_oooo_dddd_eeee _oooo_wwww_nnnn_eeee_rrrr _gggg_rrrr_oooo_uuuu_pppp
  148.  
  149.  
  150.      The _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff command will create directories, named pipes and special
  151.      devices on the original invocation.  Links are created when _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff is
  152.      invoked with the _----_ffff option to indicate installation is complete.
  153.  
  154.      Links should be specified as _p_a_t_h_1_====_p_a_t_h_2.  _p_a_t_h_1 indicates the
  155.      destination and _p_a_t_h_2 indicates the source file.
  156.  
  157.      For symbolically linked files, _p_a_t_h_2 can be a relative pathname, such as
  158.      _...._//// or _...._...._////.  For example, if you enter a line such as
  159.  
  160.           _ssss _////_ffff_oooo_oooo_////_bbbb_aaaa_rrrr_////_eeee_tttt_cccc_////_mmmm_oooo_uuuu_nnnn_tttt_====_...._...._////_uuuu_ssss_rrrr_////_ssss_bbbb_iiii_nnnn_////_mmmm_oooo_uuuu_nnnn_tttt
  161.  
  162.      _p_a_t_h_2 (_////_ffff_oooo_oooo_////_bbbb_aaaa_rrrr_////_eeee_tttt_cccc_////_mmmm_oooo_uuuu_nnnn_tttt) will be a symbolic link to _...._...._////_uuuu_ssss_rrrr_////_ssss_bbbb_iiii_nnnn_////_mmmm_oooo_uuuu_nnnn_tttt.
  163.  
  164.      Files installed with _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff will be placed in the class _n_o_n_e, unless a
  165.      class is defined with the command.  Subsequently, they will be removed
  166.      when the associated package is deleted.  If this file should not be
  167.      deleted at the same time as the package, be certain to assign it to a
  168.      class which is ignored at removal time.  If special action is required
  169.      for the file before removal, a class must be defined with the command and
  170.      an appropriate class action script delivered with the package.
  171.  
  172.      When classes are used, _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff must be used as follows:
  173.        _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff _----_cccc _cccc_llll_aaaa_ssss_ssss_1111 _.... _.... _....  _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff _----_ffff _----_cccc _cccc_llll_aaaa_ssss_ssss_1111 _.... _.... _....  _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff _----_cccc
  174.        _cccc_llll_aaaa_ssss_ssss_2222 _.... _.... _....  _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff _----_ffff _----_cccc _cccc_llll_aaaa_ssss_ssss_2222 _.... _.... _....
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.                                                                         PPPPaaaaggggeeee 3333
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199. iiiinnnnssssttttaaaallllllllffff((((1111MMMM))))                                                      iiiinnnnssssttttaaaallllllllffff((((1111MMMM))))
  200.  
  201.  
  202.  
  203. EEEEXXXXAAAAMMMMPPPPLLLLEEEE
  204.      The following example shows the use of _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff invoked from an optional
  205.      preinstall or postinstall script:
  206.  
  207.      _####_cccc_rrrr_eeee_aaaa_tttt_eeee _////_dddd_eeee_vvvv_////_xxxx_tttt _dddd_iiii_rrrr_eeee_cccc_tttt_oooo_rrrr_yyyy
  208.      _####_((((_nnnn_eeee_eeee_dddd_ssss _tttt_oooo _bbbb_eeee _dddd_oooo_nnnn_eeee _bbbb_eeee_ffff_oooo_rrrr_eeee _dddd_rrrr_vvvv_iiii_nnnn_ssss_tttt_aaaa_llll_llll_))))
  209.      _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff _$$$$_PPPP_KKKK_GGGG_IIII_NNNN_SSSS_TTTT _////_dddd_eeee_vvvv_////_xxxx_tttt _dddd _7777_5555_5555 _rrrr_oooo_oooo_tttt _ssss_yyyy_ssss _||||_||||
  210.           _eeee_xxxx_iiii_tttt _2222
  211.      _mmmm_aaaa_jjjj_nnnn_oooo_====_````_////_uuuu_ssss_rrrr_////_ssss_bbbb_iiii_nnnn_////_dddd_rrrr_vvvv_iiii_nnnn_ssss_tttt_aaaa_llll_llll _----_mmmm _////_eeee_tttt_cccc_////_mmmm_aaaa_ssss_tttt_eeee_rrrr_...._dddd_////_xxxx_tttt
  212.           _----_dddd _$$$$_BBBB_AAAA_SSSS_EEEE_DDDD_IIII_RRRR_////_dddd_aaaa_tttt_aaaa_////_xxxx_tttt_...._oooo _----_vvvv_1111_...._0000_```` _||||_||||
  213.           _eeee_xxxx_iiii_tttt _2222
  214.      _iiii_====_0000_0000
  215.      _wwww_hhhh_iiii_llll_eeee _[[[[ _$$$$_iiii _----_llll_tttt _$$$$_llll_iiii_mmmm_iiii_tttt _]]]]
  216.      _dddd_oooo
  217.        _ffff_oooo_rrrr _jjjj _iiii_nnnn _0000 _1111 _2222 _3333 _4444 _5555 _6666 _7777
  218.        _dddd_oooo
  219.          _eeee_cccc_hhhh_oooo _////_dddd_eeee_vvvv_////_xxxx_tttt_$$$$_iiii_$$$$_jjjj _cccc _$$$$_mmmm_aaaa_jjjj_nnnn_oooo _````_eeee_xxxx_pppp_rrrr _$$$$_iiii _**** _8888 _++++ _$$$$_jjjj_```` _6666_4444_4444 _rrrr_oooo_oooo_tttt _ssss_yyyy_ssss
  220.          _eeee_cccc_hhhh_oooo _////_dddd_eeee_vvvv_////_xxxx_tttt_$$$$_iiii_$$$$_jjjj_====_////_dddd_eeee_vvvv_////_xxxx_tttt_////_$$$$_iiii_$$$$_jjjj
  221.        _dddd_oooo_nnnn_eeee
  222.        _iiii_====_````_eeee_xxxx_pppp_rrrr _$$$$_iiii _++++ _1111_````
  223.        _[[[[ _$$$$_iiii _----_llll_eeee _9999 _]]]] _&&&&_&&&& _iiii_====_""""_0000_$$$$_iiii_"""" _####_aaaa_dddd_dddd _llll_eeee_aaaa_dddd_iiii_nnnn_gggg _zzzz_eeee_rrrr_oooo
  224.      _dddd_oooo_nnnn_eeee _|||| _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff _$$$$_PPPP_KKKK_GGGG_IIII_NNNN_SSSS_TTTT _---- _||||_|||| _eeee_xxxx_iiii_tttt _2222
  225.      _#### _ffff_iiii_nnnn_aaaa_llll_iiii_zzzz_eeee_dddd _iiii_nnnn_ssss_tttt_aaaa_llll_llll_aaaa_tttt_iiii_oooo_nnnn_,,,, _cccc_rrrr_eeee_aaaa_tttt_eeee _llll_iiii_nnnn_kkkk_ssss
  226.      _iiii_nnnn_ssss_tttt_aaaa_llll_llll_ffff _----_ffff _$$$$_PPPP_KKKK_GGGG_IIII_NNNN_SSSS_TTTT _||||_|||| _eeee_xxxx_iiii_tttt _2222
  227.  
  228. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  229.      _pppp_kkkk_gggg_aaaa_dddd_dddd(1M), _pppp_kkkk_gggg_aaaa_ssss_kkkk(1M), _pppp_kkkk_gggg_cccc_hhhh_kkkk(1), _pppp_kkkk_gggg_iiii_nnnn_ffff_oooo(1), _pppp_kkkk_gggg_mmmm_kkkk(1), _pppp_kkkk_gggg_pppp_aaaa_rrrr_aaaa_mmmm(1),
  230.      _pppp_kkkk_gggg_pppp_rrrr_oooo_tttt_oooo(1), _pppp_kkkk_gggg_tttt_rrrr_aaaa_nnnn_ssss(1), _pppp_kkkk_gggg_rrrr_mmmm(1M), _rrrr_eeee_mmmm_oooo_vvvv_eeee_ffff(1M)
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.                                                                         PPPPaaaaggggeeee 4444
  259.  
  260.  
  261.  
  262.