Changes between Version 3 and Version 4 of HP-UX


Ignore:
Timestamp:
Jan 24, 2011, 7:23:12 AM (13 years ago)
Author:
Josh
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HP-UX

    v3 v4  
    5050== Make depot for HP-UX software distribution ==
    5151
    52  * Create pb psf(product specification file)
    53 {{{
    54 #vi pb.psf
     52 * Create control files for ProjectBuilder
     53{{{
     54# vi postinstall
     55"postinstall" 11 lines, 860 characters
     56pod2man --section=1 ./bin/pbdistrocheck > /opt/perl_32/man/man1/pbdistrocheck.1
     57pod2man --section=3 ./lib/ProjectBuilder/Base.pm > /opt/perl_32/man/man3/ProjectBuilder::Base.3
     58pod2man --section=3 ./lib/ProjectBuilder/Conf.pm > /opt/perl_32/man/man3/ProjectBuilder::Conf.3
     59pod2man --section=3 ./lib/ProjectBuilder/Display.pm > /opt/perl_32/man/man3/ProjectBuilder::Display.3
     60pod2man --section=3 ./lib/ProjectBuilder/Distrobution.pm > /opt/perl_32/man/man3/ProjectBuilder::Distrobution.3
     61pod2man --section=3 ./lib/ProjectBuilder/Log/Item.pm > /opt/perl_32/man/man3/ProjectBuilder::Item.3
     62pod2man --section=3 ./lib/ProjectBuilder/Log.pm > /opt/perl_32/man/man3/ProjectBuilder::Log.3
     63pod2man --section=3 ./lib/ProjectBuilder/Version.pm > /opt/perl_32/man/man3/ProjectBuilder::Version.3
     64pod2man --section=5 ./etc/pb.conf.pod > /usr/local/share/man/man5/pb.conf.5
     65# vi postremove
     66"postremove" 11 lines, 458 characters
     67rm -f /opt/perl_32/man/man1/pbdistrocheck.1
     68rm -f /opt/perl_32/man/man3/ProjectBuilder::Base.3
     69rm -f /opt/perl_32/man/man3/ProjectBuilder::Conf.3
     70rm -f /opt/perl_32/man/man3/ProjectBuilder::Display.3
     71rm -f /opt/perl_32/man/man3/ProjectBuilder::Distrobution.3
     72rm -f /opt/perl_32/man/man3/ProjectBuilder::Item.3
     73rm -f /opt/perl_32/man/man3/ProjectBuilder::Log.3
     74rm -f /opt/perl_32/man/man3/ProjectBuilder::Version.3
     75rm -f /usr/local/share/man/man5/pb.conf.5
     76}}}
     77 
     78 * Create pb psf(product specification file) for ProjectBuilder
     79{{{
     80# vi pb.psf
     81"pb.psf" 41 lines, 874 characters
    5582        depot
    5683                layout_version   1.0
     
    5885        vendor
    5986                tag              HP
    60                 description      HP EMEA CME Solution Center
    61                 title            HP Intel Redhat Open Source Solutions Initiative
     87                description      HP EMEA CME solution center
     88                title            HP Intel Redhat Lab
    6289
    6390        category
    6491                tag              package_tool
    65                 description      packages source code to different OS platform
     92                description      packags source code to different OS platform
    6693
    6794        product
    68                 tag             pb
     95                tag             PB
    6996                architecture    HP-UX_B.11.23_32/64
    7097                category        package_tool
    7198        #       copyright       <copyright
    72                 description     "package tool to distribute source code for
     99                description     "PB part of package tool to distribute source code for
    73100                                different OS platform"
    74                 directory       /opt/pb
     101                directory       /opt/perl_32
    75102                is_locatable    false
    76103                is_patch        false
     
    78105                os_name         HP-UX
    79106                os_release      ?.11.23.*
    80                 revision        0.9.10
    81                 title           project-builder
     107                revision        0.10.1
     108                title           ProjectBuilder
    82109                vendor_tag      HP
    83110        fileset
    84                 tag             command
     111                tag             commands
    85112                architecture    HP-UX_B.11.23_32/64
    86113        #       prerequisites
    87                 directory       ./blib/bin=/opt/pb/bin
     114                postinstall     ./postinstall
     115                postremove      ./postremove
     116                directory       ./bin=/opt/perl_32/bin
     117                file            pbdistrocheck
     118                directory       ./lib/ProjectBuilder=/opt/perl_32/lib/5.8.8/ProjectBuilder
     119                file            *
     120
     121}}}
     122
     123 * Create control files for project-builder
     124{{{
     125# vi postinstall
     126"postinstall" 9 lines, 576 characters
     127pod2man --section=1 ./bin/pb > /opt/perl_32/man/man1/pb.1
     128pod2man --section=1 ./bin/pbg > /opt/perl_32/man/man1/pbg.1
     129pod2man --section=1 ./bin/pbvi > /opt/perl_32/man/man1/pbvi.1
     130pod2man --section=3 ./lib/ProjectBuilder/Changelog.pm > /opt/perl_32/man/man3/ProjectBuilder::Changelog.3
     131pod2man --section=3 ./lib/ProjectBuilder/CMS.pm > /opt/perl_32/man/man3/ProjectBuilder::CMS.3
     132pod2man --section=3 ./lib/ProjectBuilder/Env.pm > /opt/perl_32/man/man3/ProjectBuilder::Env.3
     133pod2man --section=3 ./lib/ProjectBuilder/Filter.pm > /opt/perl_32/man/man3/ProjectBuilder::Filter.3
     134# vi postremove
     135"postremove" 7 lines, 311 characters
     136rm -f /opt/perl_32/man/man1/pb.1
     137rm -f /opt/perl_32/man/man1/pbg.1
     138rm -f /opt/perl_32/man/man1/pbvi.1
     139rm -f /opt/perl_32/man/man3/ProjectBuilder::Changelog.3
     140rm -f /opt/perl_32/man/man3/ProjectBuilder::CMS.3
     141rm -f /opt/perl_32/man/man3/ProjectBuilder::Env.3
     142rm -f /opt/perl_32/man/man3/ProjectBuilder::Filter.3
     143}}}
     144
     145 * Create pb psf(product specification file) for project-builder
     146{{{
     147# vi p-b.psf
     148"p-b.psf" 41 lines, 874 characters
     149        depot
     150                layout_version   1.0
     151
     152        vendor
     153                tag              HP
     154        depot
     155                layout_version   1.0
     156
     157        vendor
     158                tag              HP
     159                description      HP EMEA CME solution center
     160                title            HP Intel Redhat Lab
     161
     162        category
     163                tag              package_tool
     164                description      packags source code to different OS platform
     165               
     166        product
     167                tag             p-b     
     168                architecture    HP-UX_B.11.23_32/64
     169                category        package_tool
     170        #       copyright       <copyright
     171                description     "PB part of package tool to distribute source code for
     172                                different OS platform"
     173                directory       /opt/perl_32
     174                is_locatable    false
     175                is_patch        false
     176                machine_type    *
     177                os_name         HP-UX
     178                os_release      ?.11.23.*
     179                revision        0.10.1
     180                title           project-builder
     181                vendor_tag      HP     
     182        fileset
     183                tag             commands
     184                architecture    HP-UX_B.11.23_32/64
     185        #       prerequisites
     186                postinstall     ./postinstall
     187                postremove      ./postremove
     188                directory       ./bin=/opt/perl_32/bin
    88189                file            pb
    89190                file            pbg
    90191                file            pbvi
    91                 directory       ./blib/lib/ProjectBuilder=/opt/perl_32/lib/5.8.8/ProjectBuilder
    92                 file            CMS.pm
    93                 file            Changelog.pm
    94                 file            Env.pm
    95                 file            Filter.pm
    96                 file            Version.pm
    97                 directory       ./blib/man1=/usr/share/man/man1
    98                 file            pb.1
    99                 directory       ./blib/man3=/usr/share/man/man3
    100                 file            ProjectBuilder::CMS.3
    101                 file            ProjectBuilder::Changelog.3
    102                 file            ProjectBuilder::Env.3
    103                 file            ProjectBuilder::Filter.3
    104 }}}
    105  * Package pb as HPUX-SD format based on its psf file
    106 {{{
    107 #swpackage –vv –s ./pb.psf –d /tmp/pb.depot
    108 #swreg -l depot /tmp/pb.depot
    109 }}}
     192                directory       ./lib/ProjectBuilder=/opt/perl_32/lib/5.8.8/ProjectBuilder
     193                file            *
     194}}}
     195
     196 * Package pb as HPUX-SD format based on its psf file then register into depository
     197{{{
     198# swpackage -s pb.psf -d /tmp/pb.depot
     199
     200=======  01/24/11 12:50:50 EAT  BEGIN swpackage SESSION
     201
     202       * Session started for user "root@ux14230".
     203         
     204       * Source:        ux14230:pb.psf
     205       * Target:        ux14230:/tmp/pb.depot
     206       * Software selections:
     207             *
     208
     209
     210       * Beginning Selection Phase.
     211       * Reading the Product Specification File (PSF) "pb.psf".
     212       * Reading the product "PB" at line 13.
     213       * Reading the fileset "commands" at line 30.
     214
     215       * Selection Phase succeeded.
     216
     217
     218       * Beginning Analysis Phase.
     219NOTE:    The estimated free disk space required on filesystem "/tmp" is
     220         112 Kbyte blocks.  This requirement will leave 2077472 Kbyte
     221         blocks of free disk space on the filesystem after the
     222         packaging session completes.
     223       * Analysis Phase succeeded.
     224
     225
     226       * Beginning Package Phase.
     227       * Packaging the product "PB".
     228       * Packaging the fileset "PB.commands".
     229       * Package Phase succeeded.
     230
     231=======  01/24/11 12:50:51 EAT  END swpackage SESSION
     232# swpackage -s p-b.psf -d /tmp/pb.depot
     233
     234=======  01/24/11 13:36:30 EAT  BEGIN swpackage SESSION
     235
     236       * Session started for user "root@ux14230".
     237         
     238       * Source:        ux14230:p-b.psf
     239       * Target:        ux14230:/tmp/pb.depot
     240       * Software selections:
     241             *
     242
     243
     244       * Beginning Selection Phase.
     245       * Reading the Product Specification File (PSF) "p-b.psf".
     246       * Reading the product "p-b" at line 13.
     247       * Reading the fileset "commands" at line 30.
     248
     249       * Selection Phase succeeded.
     250
     251
     252       * Beginning Analysis Phase.
     253NOTE:    The estimated free disk space required on filesystem "/tmp" is
     254         248 Kbyte blocks.  This requirement will leave 2077152 Kbyte
     255         blocks of free disk space on the filesystem after the
     256         packaging session completes.
     257       * Analysis Phase succeeded.
     258
     259
     260       * Beginning Package Phase.
     261       * Packaging the product "p-b".
     262       * Packaging the fileset "p-b.commands".
     263       * Package Phase succeeded.
     264
     265=======  01/24/11 13:36:30 EAT  END swpackage SESSION
     266
     267# swreg -l depot /tmp/pb.depot
     268
     269=======  01/24/11 13:38:37 EAT  BEGIN swreg SESSION (non-interactive)
     270
     271       * Session started for user "root@ux14230".
     272         
     273       * Beginning Selection
     274       * Targets:                ux14230
     275       * Objects:                /tmp/pb.depot
     276       * Selection succeeded.
     277         
     278         
     279
     280=======  01/24/11 13:38:37 EAT  END swreg SESSION (non-interactive)
     281
     282}}}
     283
    110284 * install pb.depot on HPUX platform (Make sure the swinstall option “make install incompatible software in target” is true.)
    111285{{{
    112286#swinstall -s /temp/pb.depot -x allow_incompatible=true
    113 }}}
     287
     288┌ ===             SD Install - Software Selection (ux14230) (1)                ┐ 
     289│File View Options Actions                                                Help │ 
     290│                       Press CTRL-K for keyboard help.                        │ 
     291│Source: ux14230:/tmp/pb.depot                                                 │ 
     292│Target:  ux14230:/                                                            │ 
     293│                                                                              │ 
     294│All software on the source is available for selection.                        │               
     295│──────────────────────────────────────────────────────────────────────────────│               
     296│Top (Bundles and Products)                                     0 of 3 selected│               
     297│──────────────────────────────────────────────────────────────────────────────│               
     298│  Marked?    Name                  Revision        Information       Size(    │               
     299│┌───────────────────────────────────────────────────────────────────────────┐ │               
     300││            PB               ->   0.10.1          ProjectBuilder           ^ │               
     301││            p-b              ->   0.10.1          project-builder        1   │               
     302││            pb               ->   0.9.10          project-builder            │               
     303││                                                                             │               
     304││                                                                             │               
     305││                                                                             │               
     306││                                                                             │               
     307││                                                                             │               
     308││                                                                           v │               
     309│ <─────────────────────────────────────────────────────────────────────────>┘ │               
     310│                                                                              │ 
     311└──────────────────────────────────────────────────────────────────────────────┘ 
     312
     313}}}
     314then follow the instruction to install pb project.
     315
     316 * to check the product of pb installed successfully by swlist command or run the command pb
     317{{{
     318}}}
     319